From 05ff67e6fd665894a980a22e1bea417385d3320a Mon Sep 17 00:00:00 2001 From: xiepeng Date: Tue, 19 Mar 2024 14:02:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=BF=87=E6=88=B7=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E6=8A=A5=E5=BA=9F=E7=AE=A1=E7=90=86=20=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E7=94=9F=E4=BA=A7=E5=80=BC=E7=8F=AD=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=20=E7=94=9F=E4=BA=A7=E8=AE=BE=E5=A4=87=E8=AE=BE?= =?UTF-8?q?=E6=96=BD=E5=8F=B0=E8=B4=A6=20=E5=8A=B3=E5=8A=A8=E9=98=B2?= =?UTF-8?q?=E6=8A=A4=E7=94=A8=E5=93=81=E5=8F=91=E6=94=BE=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=20=E6=B6=88=E9=98=B2=E8=AE=BE=E5=A4=87=E8=AE=BE=E6=96=BD?= =?UTF-8?q?=E5=8F=B0=E8=B4=A6=20=E4=B8=8A=E6=8A=A5=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=8F=B0=E8=B4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AssignedManageController.java | 12 + .../EnterpriseSafetyProductionController.java | 138 +++++++ .../EquipmentFacilityController.java | 144 +++++++ ...refightingEquipmentFacilityController.java | 144 +++++++ .../FirefightingMaintainController.java | 156 ++++++++ .../LabourEntrenchThingController.java | 136 +++++++ .../maintain/MaintainController.java | 158 ++++++++ .../OperatingVehiclesController.java | 43 +- .../ReportedIncidentController.java | 156 ++++++++ .../TaxationManageController.java | 1 + .../EnterpriseSafetyProductionMapper.java | 35 ++ .../EquipmentFacilityMapper.java | 35 ++ .../FirefightingMaintainMapper.java | 37 ++ .../FirefightingEquipmentFacilityMapper.java | 35 ++ .../LabourEntrenchThingMapper.java | 35 ++ .../datasource/maintain/MaintainMapper.java | 37 ++ .../OperatingVehiclesMapper.java | 2 + .../ReportedIncidentMapper.java | 78 ++++ .../EnterpriseSafetyProductionService.java | 35 ++ ...EnterpriseSafetyProductionServiceImpl.java | 46 +++ .../EquipmentFacilityService.java | 35 ++ .../impl/EquipmentFacilityServiceImpl.java | 46 +++ .../FirefightingEquipmentFacilityService.java | 35 ++ ...efightingEquipmentFacilityServiceImpl.java | 44 +++ .../FirefightingMaintainService.java | 37 ++ .../impl/FirefightingMaintainServiceImpl.java | 51 +++ .../LabourEntrenchThingService.java | 35 ++ .../impl/LabourEntrenchThingServiceImpl.java | 46 +++ .../service/maintain/MaintainService.java | 37 ++ .../maintain/impl/MaintainServiceImpl.java | 51 +++ .../OperatingVehiclesService.java | 1 + .../impl/OperatingVehiclesServiceImpl.java | 5 + .../ReportedIncidentService.java | 79 ++++ .../impl/ReportedIncidentServiceImpl.java | 109 +++++ .../EnterpriseSafetyProductionMapper.xml | 356 +++++++++++++++++ .../EquipmentFacilityMapper.xml | 366 +++++++++++++++++ .../FirefightingEquipmentFacilityMapper.xml | 366 +++++++++++++++++ .../FirefightingMaintainMapper.xml | 351 +++++++++++++++++ .../LabourEntrenchThingMapper.xml | 372 ++++++++++++++++++ .../datasource/maintain/MaintainMapper.xml | 351 +++++++++++++++++ .../OperatingVehiclesMapper.xml | 9 + .../ReportedIncidentMapper.xml | 202 ++++++++++ .../taxationManage/TaxationManageMapper.xml | 12 +- 43 files changed, 4445 insertions(+), 14 deletions(-) create mode 100644 src/main/java/com/zcloud/controller/enterpriseSafetyProduction/EnterpriseSafetyProductionController.java create mode 100644 src/main/java/com/zcloud/controller/equipmentFacility/EquipmentFacilityController.java create mode 100644 src/main/java/com/zcloud/controller/firefightingEquipmentFacility/FirefightingEquipmentFacilityController.java create mode 100644 src/main/java/com/zcloud/controller/firefightingMaintain/FirefightingMaintainController.java create mode 100644 src/main/java/com/zcloud/controller/labourEntrenchThing/LabourEntrenchThingController.java create mode 100644 src/main/java/com/zcloud/controller/maintain/MaintainController.java create mode 100644 src/main/java/com/zcloud/controller/reportedIncident/ReportedIncidentController.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/enterpriseSafetyProduction/EnterpriseSafetyProductionMapper.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/equipmentFacility/EquipmentFacilityMapper.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/firedifhtingMaintain/FirefightingMaintainMapper.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/firefightingEquipmentFacility/FirefightingEquipmentFacilityMapper.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/labourEntrenchThing/LabourEntrenchThingMapper.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/maintain/MaintainMapper.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/reportedIncident/ReportedIncidentMapper.java create mode 100644 src/main/java/com/zcloud/service/enterpriseSafetyProduction/EnterpriseSafetyProductionService.java create mode 100644 src/main/java/com/zcloud/service/enterpriseSafetyProduction/impl/EnterpriseSafetyProductionServiceImpl.java create mode 100644 src/main/java/com/zcloud/service/equipmentFacility/EquipmentFacilityService.java create mode 100644 src/main/java/com/zcloud/service/equipmentFacility/impl/EquipmentFacilityServiceImpl.java create mode 100644 src/main/java/com/zcloud/service/firefightingEquipmentFacility/FirefightingEquipmentFacilityService.java create mode 100644 src/main/java/com/zcloud/service/firefightingEquipmentFacility/impl/FirefightingEquipmentFacilityServiceImpl.java create mode 100644 src/main/java/com/zcloud/service/firefightingMaintain/FirefightingMaintainService.java create mode 100644 src/main/java/com/zcloud/service/firefightingMaintain/impl/FirefightingMaintainServiceImpl.java create mode 100644 src/main/java/com/zcloud/service/labourEntrenchThing/LabourEntrenchThingService.java create mode 100644 src/main/java/com/zcloud/service/labourEntrenchThing/impl/LabourEntrenchThingServiceImpl.java create mode 100644 src/main/java/com/zcloud/service/maintain/MaintainService.java create mode 100644 src/main/java/com/zcloud/service/maintain/impl/MaintainServiceImpl.java create mode 100644 src/main/java/com/zcloud/service/reportedIncident/ReportedIncidentService.java create mode 100644 src/main/java/com/zcloud/service/reportedIncident/impl/ReportedIncidentServiceImpl.java create mode 100644 src/main/resources/mybatis/datasource/enterpriseSafetyProduction/EnterpriseSafetyProductionMapper.xml create mode 100644 src/main/resources/mybatis/datasource/equipmentFacility/EquipmentFacilityMapper.xml create mode 100644 src/main/resources/mybatis/datasource/firefightingEquipmentFacility/FirefightingEquipmentFacilityMapper.xml create mode 100644 src/main/resources/mybatis/datasource/firefightingMaintain/FirefightingMaintainMapper.xml create mode 100644 src/main/resources/mybatis/datasource/labourEntrenchThing/LabourEntrenchThingMapper.xml create mode 100644 src/main/resources/mybatis/datasource/maintain/MaintainMapper.xml create mode 100644 src/main/resources/mybatis/datasource/reportedIncident/ReportedIncidentMapper.xml diff --git a/src/main/java/com/zcloud/controller/assignedManage/AssignedManageController.java b/src/main/java/com/zcloud/controller/assignedManage/AssignedManageController.java index eee2aa5..9b9aef3 100644 --- a/src/main/java/com/zcloud/controller/assignedManage/AssignedManageController.java +++ b/src/main/java/com/zcloud/controller/assignedManage/AssignedManageController.java @@ -4,6 +4,7 @@ import com.zcloud.controller.base.BaseController; import com.zcloud.entity.Page; import com.zcloud.entity.PageData; import com.zcloud.service.assignedManage.AssignedManageService; +import com.zcloud.service.system.ImgFilesService; import com.zcloud.service.taxationManage.TaxationManageService; import com.zcloud.util.*; import org.springframework.beans.factory.annotation.Autowired; @@ -28,6 +29,9 @@ public class AssignedManageController extends BaseController { @Autowired private Smb smb; + @Autowired + private ImgFilesService imgfilesService; + /**新增 * @param * @throws Exception @@ -120,6 +124,14 @@ public class AssignedManageController extends BaseController { pd = this.getPageData(); pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); pd = assignedManageService.findById(pd); + + pd.put("FOREIGN_KEY", pd.getString("ASSIGNED_ID")); + pd.put("TYPE",120); + List nowVehicleOperationCertificateImgs = imgfilesService.listAll(pd);//车头照片 + pd.put("TYPE",121); + List nowDrivinglicenseImg = imgfilesService.listAll(pd);//行驶证照片 + map.put("nowVehicleOperationCertificateImgs", nowVehicleOperationCertificateImgs); + map.put("nowDrivinglicenseImg", nowDrivinglicenseImg); map.put("pd", pd); map.put("result", errInfo); return map; diff --git a/src/main/java/com/zcloud/controller/enterpriseSafetyProduction/EnterpriseSafetyProductionController.java b/src/main/java/com/zcloud/controller/enterpriseSafetyProduction/EnterpriseSafetyProductionController.java new file mode 100644 index 0000000..8b9b59f --- /dev/null +++ b/src/main/java/com/zcloud/controller/enterpriseSafetyProduction/EnterpriseSafetyProductionController.java @@ -0,0 +1,138 @@ +package com.zcloud.controller.enterpriseSafetyProduction; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.service.enterpriseSafetyProduction.EnterpriseSafetyProductionService; +import com.zcloud.service.freighttrailer.FreightTrailerService; +import com.zcloud.service.operatingvehicles.OperatingVehiclesService; +import com.zcloud.service.scrapManage.ScrapManageService; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Jurisdiction; +import com.zcloud.util.Smb; +import com.zcloud.util.Tools; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Controller +@RequestMapping("/enterprisesafetyproduction") +public class EnterpriseSafetyProductionController extends BaseController { + + @Autowired + private EnterpriseSafetyProductionService enterpriseSafetyProductionService; + + @Autowired + private Smb smb; + + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + public Object add() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("SAFETYPRODUCTION_ID", this.get32UUID()); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除) + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id + pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人名字 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id + pd.put("OPERATORNAME", Jurisdiction.getUsername()); // 修改人名字 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间 + enterpriseSafetyProductionService.save(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + /**删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/delete") + @ResponseBody + public Object delete() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DELETOR", Jurisdiction.getUSER_ID()); + pd.put("DELETORNAME", Jurisdiction.getUsername()); + pd.put("DELETTIME", DateUtil.date2Str(new Date())); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + enterpriseSafetyProductionService.delete(pd); + map.put("result", errInfo); //返回结果 + return map; + } + + /**修改 + * @param + * @throws Exception + */ + @RequestMapping(value="/edit") + @ResponseBody + public Object edit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除) + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id + pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人名字 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id + pd.put("OPERATORNAME", Jurisdiction.getUsername()); // 修改人名字 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间 + enterpriseSafetyProductionService.edit(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + /**去修改页面获取数据 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + pd = enterpriseSafetyProductionService.findById(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + @RequestMapping(value="/list") + @ResponseBody + public Object list(Page page) throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件 + if(Tools.notEmpty(KEYWORDS))pd.put("KEYWORDS", KEYWORDS.trim()); + page.setPd(pd); + List varList = enterpriseSafetyProductionService.list(page); //列出MajorDangerSource列表 + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + +} diff --git a/src/main/java/com/zcloud/controller/equipmentFacility/EquipmentFacilityController.java b/src/main/java/com/zcloud/controller/equipmentFacility/EquipmentFacilityController.java new file mode 100644 index 0000000..dbf7f48 --- /dev/null +++ b/src/main/java/com/zcloud/controller/equipmentFacility/EquipmentFacilityController.java @@ -0,0 +1,144 @@ +package com.zcloud.controller.equipmentFacility; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.service.enterpriseSafetyProduction.EnterpriseSafetyProductionService; +import com.zcloud.service.equipmentFacility.EquipmentFacilityService; +import com.zcloud.service.system.ImgFilesService; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Jurisdiction; +import com.zcloud.util.Smb; +import com.zcloud.util.Tools; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Controller +@RequestMapping("/equipmentfacilitycontroller") +public class EquipmentFacilityController extends BaseController { + + @Autowired + private EquipmentFacilityService equipmentFacilityService; + + @Autowired + private Smb smb; + + @Autowired + private ImgFilesService imgfilesService; + + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + public Object add() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("PRODUCTIONFACILITY_ID", this.get32UUID()); //车船税主键 + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除) + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id + pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人名字 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id + pd.put("OPERATORNAME", Jurisdiction.getUsername()); // 修改人名字 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间 + equipmentFacilityService.save(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + /**删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/delete") + @ResponseBody + public Object delete() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DELETOR", Jurisdiction.getUSER_ID()); + pd.put("DELETORNAME", Jurisdiction.getUsername()); + pd.put("DELETTIME", DateUtil.date2Str(new Date())); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + equipmentFacilityService.delete(pd); + map.put("result", errInfo); //返回结果 + return map; + } + + /**修改 + * @param + * @throws Exception + */ + @RequestMapping(value="/edit") + @ResponseBody + public Object edit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除) + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id + pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人名字 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id + pd.put("OPERATORNAME", Jurisdiction.getUsername()); // 修改人名字 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间 + equipmentFacilityService.edit(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + /**去修改页面获取数据 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + pd = equipmentFacilityService.findById(pd); + pd.put("FOREIGN_KEY", pd.getString("PRODUCTIONFACILITY_ID")); + pd.put("TYPE",150); + List equipmentFacility = imgfilesService.listAll(pd); //设备设施 + map.put("equipmentFacility", equipmentFacility); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + @RequestMapping(value="/list") + @ResponseBody + public Object list(Page page) throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件 + if(Tools.notEmpty(KEYWORDS))pd.put("KEYWORDS", KEYWORDS.trim()); + page.setPd(pd); + List varList = equipmentFacilityService.list(page); //列出MajorDangerSource列表 + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + +} diff --git a/src/main/java/com/zcloud/controller/firefightingEquipmentFacility/FirefightingEquipmentFacilityController.java b/src/main/java/com/zcloud/controller/firefightingEquipmentFacility/FirefightingEquipmentFacilityController.java new file mode 100644 index 0000000..5eab23c --- /dev/null +++ b/src/main/java/com/zcloud/controller/firefightingEquipmentFacility/FirefightingEquipmentFacilityController.java @@ -0,0 +1,144 @@ +package com.zcloud.controller.firefightingEquipmentFacility; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.service.enterpriseSafetyProduction.EnterpriseSafetyProductionService; +import com.zcloud.service.firefightingEquipmentFacility.FirefightingEquipmentFacilityService; +import com.zcloud.service.system.ImgFilesService; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Jurisdiction; +import com.zcloud.util.Smb; +import com.zcloud.util.Tools; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Controller +@RequestMapping("/firefightingequipmentfacility") +public class FirefightingEquipmentFacilityController extends BaseController { + + @Autowired + private FirefightingEquipmentFacilityService firefightingEquipmentFacilityService; + + @Autowired + private Smb smb; + + @Autowired + private ImgFilesService imgfilesService; + + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + public Object add() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("FIREFIGHTINGFACILITY_ID", this.get32UUID()); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除) + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id + pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人名字 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id + pd.put("OPERATORNAME", Jurisdiction.getUsername()); // 修改人名字 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间 + firefightingEquipmentFacilityService.save(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + /**删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/delete") + @ResponseBody + public Object delete() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DELETOR", Jurisdiction.getUSER_ID()); + pd.put("DELETORNAME", Jurisdiction.getUsername()); + pd.put("DELETTIME", DateUtil.date2Str(new Date())); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + firefightingEquipmentFacilityService.delete(pd); + map.put("result", errInfo); //返回结果 + return map; + } + + /**修改 + * @param + * @throws Exception + */ + @RequestMapping(value="/edit") + @ResponseBody + public Object edit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除) + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id + pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人名字 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id + pd.put("OPERATORNAME", Jurisdiction.getUsername()); // 修改人名字 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间 + firefightingEquipmentFacilityService.edit(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + /**去修改页面获取数据 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + pd = firefightingEquipmentFacilityService.findById(pd); + pd.put("FOREIGN_KEY", pd.getString("FIREFIGHTINGFACILITY_ID")); + pd.put("TYPE",120); + List firefightingequipmentImg = imgfilesService.listAll(pd); //设备设施 + map.put("firefightingequipmentImg", firefightingequipmentImg); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + @RequestMapping(value="/list") + @ResponseBody + public Object list(Page page) throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件 + if(Tools.notEmpty(KEYWORDS))pd.put("KEYWORDS", KEYWORDS.trim()); + page.setPd(pd); + List varList = firefightingEquipmentFacilityService.list(page); //列出MajorDangerSource列表 + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + +} diff --git a/src/main/java/com/zcloud/controller/firefightingMaintain/FirefightingMaintainController.java b/src/main/java/com/zcloud/controller/firefightingMaintain/FirefightingMaintainController.java new file mode 100644 index 0000000..1882728 --- /dev/null +++ b/src/main/java/com/zcloud/controller/firefightingMaintain/FirefightingMaintainController.java @@ -0,0 +1,156 @@ +package com.zcloud.controller.firefightingMaintain; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.service.firefightingMaintain.FirefightingMaintainService; +import com.zcloud.service.maintain.MaintainService; +import com.zcloud.service.system.ImgFilesService; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Jurisdiction; +import com.zcloud.util.Smb; +import com.zcloud.util.Tools; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Controller +@RequestMapping("/firefightingmaintain") +public class FirefightingMaintainController extends BaseController { + + @Autowired + private FirefightingMaintainService firefightingMaintainService; + + @Autowired + private Smb smb; + @Autowired + private ImgFilesService imgfilesService; + + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + public Object add() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("FIREFIGHTINGMAINTAIN_ID", this.get32UUID()); + pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除) + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id + pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人名字 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id + pd.put("OPERATORNAME", Jurisdiction.getUsername()); // 修改人名字 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间 + firefightingMaintainService.save(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + /**删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/delete") + @ResponseBody + public Object delete() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DELETOR", Jurisdiction.getUSER_ID()); + pd.put("DELETORNAME", Jurisdiction.getUsername()); + pd.put("DELETTIME", DateUtil.date2Str(new Date())); + firefightingMaintainService.delete(pd); + map.put("result", errInfo); //返回结果 + return map; + } + + /**修改 + * @param + * @throws Exception + */ + @RequestMapping(value="/edit") + @ResponseBody + public Object edit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除) + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id + pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人名字 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id + pd.put("OPERATORNAME", Jurisdiction.getUsername()); // 修改人名字 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间 + firefightingMaintainService.edit(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + /**去修改页面获取数据 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd = firefightingMaintainService.findById(pd); + pd.put("FOREIGN_KEY", pd.getString("FIREFIGHTINGMAINTAIN_ID")); + pd.put("TYPE",120); + List firefightingmaintainImg = imgfilesService.listAll(pd); //设备设施 + map.put("firefightingmaintainImg", firefightingmaintainImg); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + @RequestMapping(value="/list") + @ResponseBody + public Object list(Page page) throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件 + if(Tools.notEmpty(KEYWORDS))pd.put("KEYWORDS", KEYWORDS.trim()); + page.setPd(pd); + List varList = firefightingMaintainService.list(page); //列出MajorDangerSource列表 + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + + @RequestMapping(value="/findByFirefightingId") + @ResponseBody + public Object getRisByUnitId(Page page) throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("FIREFIGHTINGFACILITY_ID", pd.getString("FIREFIGHTINGFACILITY_ID")); + page.setPd(pd); + List varList = firefightingMaintainService.findByProductionEquipmentFacilityId(page); //列出RiskUnit列表 + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + +} diff --git a/src/main/java/com/zcloud/controller/labourEntrenchThing/LabourEntrenchThingController.java b/src/main/java/com/zcloud/controller/labourEntrenchThing/LabourEntrenchThingController.java new file mode 100644 index 0000000..a35fe94 --- /dev/null +++ b/src/main/java/com/zcloud/controller/labourEntrenchThing/LabourEntrenchThingController.java @@ -0,0 +1,136 @@ +package com.zcloud.controller.labourEntrenchThing; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.service.enterpriseSafetyProduction.EnterpriseSafetyProductionService; +import com.zcloud.service.labourEntrenchThing.LabourEntrenchThingService; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Jurisdiction; +import com.zcloud.util.Smb; +import com.zcloud.util.Tools; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Controller +@RequestMapping("/labourentrenchthing") +public class LabourEntrenchThingController extends BaseController { + + @Autowired + private LabourEntrenchThingService labourEntrenchThingService; + + @Autowired + private Smb smb; + + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + public Object add() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("PROTECTIVEEQUIPMENT_ID", this.get32UUID()); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除) + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id + pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人名字 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id + pd.put("OPERATORNAME", Jurisdiction.getUsername()); // 修改人名字 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间 + labourEntrenchThingService.save(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + /**删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/delete") + @ResponseBody + public Object delete() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DELETOR", Jurisdiction.getUSER_ID()); + pd.put("DELETORNAME", Jurisdiction.getUsername()); + pd.put("DELETTIME", DateUtil.date2Str(new Date())); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + labourEntrenchThingService.delete(pd); + map.put("result", errInfo); //返回结果 + return map; + } + + /**修改 + * @param + * @throws Exception + */ + @RequestMapping(value="/edit") + @ResponseBody + public Object edit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除) + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id + pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人名字 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id + pd.put("OPERATORNAME", Jurisdiction.getUsername()); // 修改人名字 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间 + labourEntrenchThingService.edit(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + /**去修改页面获取数据 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + pd = labourEntrenchThingService.findById(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + @RequestMapping(value="/list") + @ResponseBody + public Object list(Page page) throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件 + if(Tools.notEmpty(KEYWORDS))pd.put("KEYWORDS", KEYWORDS.trim()); + page.setPd(pd); + List varList = labourEntrenchThingService.list(page); //列出MajorDangerSource列表 + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + +} diff --git a/src/main/java/com/zcloud/controller/maintain/MaintainController.java b/src/main/java/com/zcloud/controller/maintain/MaintainController.java new file mode 100644 index 0000000..4202709 --- /dev/null +++ b/src/main/java/com/zcloud/controller/maintain/MaintainController.java @@ -0,0 +1,158 @@ +package com.zcloud.controller.maintain; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.logs.LogAnno; +import com.zcloud.service.enterpriseSafetyProduction.EnterpriseSafetyProductionService; +import com.zcloud.service.maintain.MaintainService; +import com.zcloud.service.system.ImgFilesService; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Jurisdiction; +import com.zcloud.util.Smb; +import com.zcloud.util.Tools; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Controller +@RequestMapping("/maintain") +public class MaintainController extends BaseController { + + @Autowired + private MaintainService maintainService; + + @Autowired + private Smb smb; + + @Autowired + private ImgFilesService imgfilesService; + + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + public Object add() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("MAINTAIN_ID", this.get32UUID()); + pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除) + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id + pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人名字 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id + pd.put("OPERATORNAME", Jurisdiction.getUsername()); // 修改人名字 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间 + maintainService.save(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + /**删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/delete") + @ResponseBody + public Object delete() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DELETOR", Jurisdiction.getUSER_ID()); + pd.put("DELETORNAME", Jurisdiction.getUsername()); + pd.put("DELETTIME", DateUtil.date2Str(new Date())); + maintainService.delete(pd); + map.put("result", errInfo); //返回结果 + return map; + } + + /**修改 + * @param + * @throws Exception + */ + @RequestMapping(value="/edit") + @ResponseBody + public Object edit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除) + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id + pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人名字 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id + pd.put("OPERATORNAME", Jurisdiction.getUsername()); // 修改人名字 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间 + maintainService.edit(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + /**去修改页面获取数据 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd = maintainService.findById(pd); + pd.put("FOREIGN_KEY", pd.getString("MAINTAIN_ID")); + pd.put("TYPE",120); + List maintainImg = imgfilesService.listAll(pd); //设备设施 + map.put("maintainImg", maintainImg); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + @RequestMapping(value="/list") + @ResponseBody + public Object list(Page page) throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件 + if(Tools.notEmpty(KEYWORDS))pd.put("KEYWORDS", KEYWORDS.trim()); + page.setPd(pd); + List varList = maintainService.list(page); //列出MajorDangerSource列表 + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + + @RequestMapping(value="/findByProductionEquipmentFacilityId") + @ResponseBody + public Object getRisByUnitId(Page page) throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("PRODUCTIONFACILITY_ID", pd.getString("PRODUCTIONFACILITY_ID")); + page.setPd(pd); + List varList = maintainService.findByProductionEquipmentFacilityId(page); //列出RiskUnit列表 + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + +} diff --git a/src/main/java/com/zcloud/controller/operatingvehicles/OperatingVehiclesController.java b/src/main/java/com/zcloud/controller/operatingvehicles/OperatingVehiclesController.java index f977103..f5938f8 100644 --- a/src/main/java/com/zcloud/controller/operatingvehicles/OperatingVehiclesController.java +++ b/src/main/java/com/zcloud/controller/operatingvehicles/OperatingVehiclesController.java @@ -6,6 +6,7 @@ import com.zcloud.entity.PageData; import com.zcloud.logs.LogAnno; import com.zcloud.service.operatingvehicles.OperatingVehiclesService; import com.zcloud.service.scrapManage.ScrapManageService; +import com.zcloud.service.system.ImgFilesService; import com.zcloud.util.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; @@ -29,6 +30,9 @@ public class OperatingVehiclesController extends BaseController { @Autowired private Smb smb; + @Autowired + private ImgFilesService imgfilesService; + @Autowired private ScrapManageService scrapManageService; @@ -202,7 +206,18 @@ public class OperatingVehiclesController extends BaseController { pd = this.getPageData(); pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); pd = operatingVehiclesService.findById(pd); + + pd.put("FOREIGN_KEY", pd.getString("OPERATING_ID")); + pd.put("TYPE",130); + List headstockphoto = imgfilesService.listAll(pd);//车头照片 + pd.put("TYPE",131); + List drivinglicensephoto = imgfilesService.listAll(pd);//行驶证照片 + pd.put("TYPE",132); + List operatingcertificatephoto = imgfilesService.listAll(pd);//运营证照片 map.put("pd", pd); + map.put("headstockphoto", headstockphoto); + map.put("drivinglicensephoto", drivinglicensephoto); + map.put("operatingcertificatephoto", operatingcertificatephoto); map.put("result", errInfo); return map; } @@ -245,25 +260,33 @@ public class OperatingVehiclesController extends BaseController { PageData pd = new PageData(); pd = this.getPageData(); pd.put("CORPINFO_ID",Jurisdiction.getCORPINFO_ID()); + + pd.put("FOREIGN_KEY", pd.getString("OPERATING_ID")); + pd.put("TYPE",130); + List headstockphoto = imgfilesService.listAll(pd);//车头照片 + pd.put("TYPE",131); + List drivinglicensephoto = imgfilesService.listAll(pd);//行驶证照片 + pd.put("TYPE",132); + List operatingcertificatephoto = imgfilesService.listAll(pd);//运营证照片 + map.put("pd", pd); + map.put("headstockphoto", headstockphoto); + map.put("drivinglicensephoto", drivinglicensephoto); + map.put("operatingcertificatephoto", operatingcertificatephoto); pd = operatingVehiclesService.findById(pd); map.put("pd", pd); map.put("result", errInfo); return map; } - /*@RequestMapping(value = "/list") + @RequestMapping(value = "/corpList") @ResponseBody - public Object list(Page page) throws Exception { + public Object corpList() throws Exception { Map map = new HashMap(); String errInfo = "success"; - PageData pd = new PageData(); - pd = this.getPageData(); - pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID - page.setPd(pd); - List varList = operatingVehiclesService.list(page); //列出Question列表 - map.put("varList", varList); - map.put("page", page); + String corpId = Jurisdiction.getCORPINFO_ID(); + List list = operatingVehiclesService.corpList(corpId); //列出Question列表 + map.put("list", list); map.put("result", errInfo); return map; - }*/ + } } diff --git a/src/main/java/com/zcloud/controller/reportedIncident/ReportedIncidentController.java b/src/main/java/com/zcloud/controller/reportedIncident/ReportedIncidentController.java new file mode 100644 index 0000000..2b35c06 --- /dev/null +++ b/src/main/java/com/zcloud/controller/reportedIncident/ReportedIncidentController.java @@ -0,0 +1,156 @@ +package com.zcloud.controller.reportedIncident; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.logs.LogAnno; +import com.zcloud.service.freighttrailer.FreightTrailerService; +import com.zcloud.service.reportedIncident.ReportedIncidentService; +import com.zcloud.service.scrapManage.ScrapManageService; +import com.zcloud.service.system.ImgFilesService; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Jurisdiction; +import com.zcloud.util.Tools; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 企业信息管理-货运挂车 + */ +@Controller +@RequestMapping("/reportedincident") +public class ReportedIncidentController extends BaseController { + + @Autowired + private ReportedIncidentService reportedIncidentService; + @Autowired + private ImgFilesService imgfilesService; + + @Autowired + private ScrapManageService scrapManageService; + + /** + * 新增 + * + * @param + * @throws Exception + */ + @RequestMapping(value = "/add") + @ResponseBody + public Object add() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("REPORTEDINCIDENT_ID", this.get32UUID()); //主键 + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id + pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 + pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除) + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID + + reportedIncidentService.save(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + /** + * 删除 + * + * @param + * @throws Exception + */ + @RequestMapping(value = "/delete") + // @RequiresPermissions( value = {"question:del" , "courseware:del"}, logical = Logical.OR) + @ResponseBody + @LogAnno(menuType = "基础信息管理", menuServer = "货运挂车", instructionsOperate = "货运挂车", instructionsType = "删除") + public Object delete() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DELETEOR", Jurisdiction.getUSER_ID()); //删除人id + pd.put("DELETEORNAME", Jurisdiction.getUsername()); //删除人 + pd.put("DELETTIME", DateUtil.date2Str(new Date())); //删除时间 + reportedIncidentService.delete(pd); + map.put("result", errInfo); //返回结果 + return map; + } + + /** + * 修改 + * + * @param + * @throws Exception + */ + @RequestMapping(value = "/edit") + // @RequiresPermissions( value = {"question:edit" , "courseware:edit"}, logical = Logical.OR) + @ResponseBody + @LogAnno(menuType = "基础信息管理", menuServer = "货运挂车", instructionsOperate = "货运挂车", instructionsType = "修改") + public Object edit() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id + pd.put("OPERATORNAME", Jurisdiction.getUsername()); //修改人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间 + reportedIncidentService.edit(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + /** + * 列表 + * + * @param page + * @throws Exception + */ + @RequestMapping(value = "/list") + // @RequiresPermissions( value = {"question:list" , "courseware:list"}, logical = Logical.OR) + @ResponseBody + @LogAnno(menuType = "基础信息管理", menuServer = "货运挂车", instructionsOperate = "货运挂车", instructionsType = "列表") + public Object list(Page page) throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID + page.setPd(pd); + List varList = reportedIncidentService.list(page); //列出Question列表 + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + + /** + * 去修改页面获取数据 + * + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + pd = reportedIncidentService.findById(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + +} diff --git a/src/main/java/com/zcloud/controller/taxationManage/TaxationManageController.java b/src/main/java/com/zcloud/controller/taxationManage/TaxationManageController.java index 0b74c88..fbc9a27 100644 --- a/src/main/java/com/zcloud/controller/taxationManage/TaxationManageController.java +++ b/src/main/java/com/zcloud/controller/taxationManage/TaxationManageController.java @@ -72,6 +72,7 @@ public class TaxationManageController extends BaseController { smb.sshSftp(drivinglicenseFile, fileName, Const.FILEPATHFILE + Jurisdiction.getCORPINFO_ID() + "/" + ffile); pd.put("DRIVINGLICENSE_PHOTO", Const.FILEPATHFILE + Jurisdiction.getCORPINFO_ID() + "/" + ffile + "/" + fileName); } + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); taxationManageService.save(pd); map.put("pd", pd); map.put("result", errInfo); diff --git a/src/main/java/com/zcloud/mapper/datasource/enterpriseSafetyProduction/EnterpriseSafetyProductionMapper.java b/src/main/java/com/zcloud/mapper/datasource/enterpriseSafetyProduction/EnterpriseSafetyProductionMapper.java new file mode 100644 index 0000000..a4d2f2b --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/enterpriseSafetyProduction/EnterpriseSafetyProductionMapper.java @@ -0,0 +1,35 @@ +package com.zcloud.mapper.datasource.enterpriseSafetyProduction; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface EnterpriseSafetyProductionMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); + + List datalistPage(Page page); +} diff --git a/src/main/java/com/zcloud/mapper/datasource/equipmentFacility/EquipmentFacilityMapper.java b/src/main/java/com/zcloud/mapper/datasource/equipmentFacility/EquipmentFacilityMapper.java new file mode 100644 index 0000000..eb72d5b --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/equipmentFacility/EquipmentFacilityMapper.java @@ -0,0 +1,35 @@ +package com.zcloud.mapper.datasource.equipmentFacility; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface EquipmentFacilityMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); + + List datalistPage(Page page); +} diff --git a/src/main/java/com/zcloud/mapper/datasource/firedifhtingMaintain/FirefightingMaintainMapper.java b/src/main/java/com/zcloud/mapper/datasource/firedifhtingMaintain/FirefightingMaintainMapper.java new file mode 100644 index 0000000..eb58132 --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/firedifhtingMaintain/FirefightingMaintainMapper.java @@ -0,0 +1,37 @@ +package com.zcloud.mapper.datasource.firedifhtingMaintain; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface FirefightingMaintainMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); + + List datalistPage(Page page); + + List findByProductionEquipmentFacilityId(Page page); +} diff --git a/src/main/java/com/zcloud/mapper/datasource/firefightingEquipmentFacility/FirefightingEquipmentFacilityMapper.java b/src/main/java/com/zcloud/mapper/datasource/firefightingEquipmentFacility/FirefightingEquipmentFacilityMapper.java new file mode 100644 index 0000000..d728159 --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/firefightingEquipmentFacility/FirefightingEquipmentFacilityMapper.java @@ -0,0 +1,35 @@ +package com.zcloud.mapper.datasource.firefightingEquipmentFacility; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface FirefightingEquipmentFacilityMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); + + List datalistPage(Page page); +} diff --git a/src/main/java/com/zcloud/mapper/datasource/labourEntrenchThing/LabourEntrenchThingMapper.java b/src/main/java/com/zcloud/mapper/datasource/labourEntrenchThing/LabourEntrenchThingMapper.java new file mode 100644 index 0000000..f8115f0 --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/labourEntrenchThing/LabourEntrenchThingMapper.java @@ -0,0 +1,35 @@ +package com.zcloud.mapper.datasource.labourEntrenchThing; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface LabourEntrenchThingMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); + + List datalistPage(Page page); +} diff --git a/src/main/java/com/zcloud/mapper/datasource/maintain/MaintainMapper.java b/src/main/java/com/zcloud/mapper/datasource/maintain/MaintainMapper.java new file mode 100644 index 0000000..18b7fb5 --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/maintain/MaintainMapper.java @@ -0,0 +1,37 @@ +package com.zcloud.mapper.datasource.maintain; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface MaintainMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); + + List datalistPage(Page page); + + List findByProductionEquipmentFacilityId(Page page); +} diff --git a/src/main/java/com/zcloud/mapper/datasource/operatingvehicles/OperatingVehiclesMapper.java b/src/main/java/com/zcloud/mapper/datasource/operatingvehicles/OperatingVehiclesMapper.java index 72013e2..6160d18 100644 --- a/src/main/java/com/zcloud/mapper/datasource/operatingvehicles/OperatingVehiclesMapper.java +++ b/src/main/java/com/zcloud/mapper/datasource/operatingvehicles/OperatingVehiclesMapper.java @@ -35,4 +35,6 @@ public interface OperatingVehiclesMapper { List datalistPage(Page page); List operationVehicleList(String corpId); + + List corpList(String corpId); } diff --git a/src/main/java/com/zcloud/mapper/datasource/reportedIncident/ReportedIncidentMapper.java b/src/main/java/com/zcloud/mapper/datasource/reportedIncident/ReportedIncidentMapper.java new file mode 100644 index 0000000..6722fcd --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/reportedIncident/ReportedIncidentMapper.java @@ -0,0 +1,78 @@ +package com.zcloud.mapper.datasource.reportedIncident; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +/** + * 企业信息管理-货运挂车 + */ +public interface ReportedIncidentMapper { + + /** + * 新增 + * + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /** + * 删除 + * + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /** + * 修改 + * + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + /** + * 列表 + * + * @param page + * @throws Exception + */ + List datalistPage(Page page); + + + /** + * 通过id获取数据 + * + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); + + /** + * 列表 + * + * @param + * @throws Exception + */ + List corpList(String corpId); + + /** + * 列表 + * + * @param + * @throws Exception + */ + List trailerList(String corpId); + + /** + * 列表 + * + * @param + * @throws Exception + */ + List vehicleList(PageData pd); +} + diff --git a/src/main/java/com/zcloud/service/enterpriseSafetyProduction/EnterpriseSafetyProductionService.java b/src/main/java/com/zcloud/service/enterpriseSafetyProduction/EnterpriseSafetyProductionService.java new file mode 100644 index 0000000..fd0ecd7 --- /dev/null +++ b/src/main/java/com/zcloud/service/enterpriseSafetyProduction/EnterpriseSafetyProductionService.java @@ -0,0 +1,35 @@ +package com.zcloud.service.enterpriseSafetyProduction; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface EnterpriseSafetyProductionService { + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + public List list(Page page); +} diff --git a/src/main/java/com/zcloud/service/enterpriseSafetyProduction/impl/EnterpriseSafetyProductionServiceImpl.java b/src/main/java/com/zcloud/service/enterpriseSafetyProduction/impl/EnterpriseSafetyProductionServiceImpl.java new file mode 100644 index 0000000..8045e94 --- /dev/null +++ b/src/main/java/com/zcloud/service/enterpriseSafetyProduction/impl/EnterpriseSafetyProductionServiceImpl.java @@ -0,0 +1,46 @@ +package com.zcloud.service.enterpriseSafetyProduction.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.enterpriseSafetyProduction.EnterpriseSafetyProductionMapper; +import com.zcloud.mapper.datasource.scrapManage.ScrapManageMapper; +import com.zcloud.service.enterpriseSafetyProduction.EnterpriseSafetyProductionService; +import com.zcloud.service.scrapManage.ScrapManageService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +@Service +@Transactional //开启事物 +public class EnterpriseSafetyProductionServiceImpl implements EnterpriseSafetyProductionService { + + @Autowired + private EnterpriseSafetyProductionMapper enterpriseSafetyProductionMapper; + + @Override + public void save(PageData pd) throws Exception { + enterpriseSafetyProductionMapper.save(pd); + } + + @Override + public void delete(PageData pd) throws Exception { + enterpriseSafetyProductionMapper.delete(pd); + } + + @Override + public void edit(PageData pd) throws Exception { + enterpriseSafetyProductionMapper.edit(pd); + } + + @Override + public PageData findById(PageData pd) throws Exception { + return enterpriseSafetyProductionMapper.findById(pd); + } + + @Override + public List list(Page page) { + return enterpriseSafetyProductionMapper.datalistPage(page); + } +} diff --git a/src/main/java/com/zcloud/service/equipmentFacility/EquipmentFacilityService.java b/src/main/java/com/zcloud/service/equipmentFacility/EquipmentFacilityService.java new file mode 100644 index 0000000..15b7871 --- /dev/null +++ b/src/main/java/com/zcloud/service/equipmentFacility/EquipmentFacilityService.java @@ -0,0 +1,35 @@ +package com.zcloud.service.equipmentFacility; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface EquipmentFacilityService { + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + public List list(Page page); +} diff --git a/src/main/java/com/zcloud/service/equipmentFacility/impl/EquipmentFacilityServiceImpl.java b/src/main/java/com/zcloud/service/equipmentFacility/impl/EquipmentFacilityServiceImpl.java new file mode 100644 index 0000000..dcb6d14 --- /dev/null +++ b/src/main/java/com/zcloud/service/equipmentFacility/impl/EquipmentFacilityServiceImpl.java @@ -0,0 +1,46 @@ +package com.zcloud.service.equipmentFacility.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.enterpriseSafetyProduction.EnterpriseSafetyProductionMapper; +import com.zcloud.mapper.datasource.equipmentFacility.EquipmentFacilityMapper; +import com.zcloud.service.enterpriseSafetyProduction.EnterpriseSafetyProductionService; +import com.zcloud.service.equipmentFacility.EquipmentFacilityService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +@Service +@Transactional //开启事物 +public class EquipmentFacilityServiceImpl implements EquipmentFacilityService { + + @Autowired + private EquipmentFacilityMapper equipmentFacilityMapper; + + @Override + public void save(PageData pd) throws Exception { + equipmentFacilityMapper.save(pd); + } + + @Override + public void delete(PageData pd) throws Exception { + equipmentFacilityMapper.delete(pd); + } + + @Override + public void edit(PageData pd) throws Exception { + equipmentFacilityMapper.edit(pd); + } + + @Override + public PageData findById(PageData pd) throws Exception { + return equipmentFacilityMapper.findById(pd); + } + + @Override + public List list(Page page) { + return equipmentFacilityMapper.datalistPage(page); + } +} diff --git a/src/main/java/com/zcloud/service/firefightingEquipmentFacility/FirefightingEquipmentFacilityService.java b/src/main/java/com/zcloud/service/firefightingEquipmentFacility/FirefightingEquipmentFacilityService.java new file mode 100644 index 0000000..beff968 --- /dev/null +++ b/src/main/java/com/zcloud/service/firefightingEquipmentFacility/FirefightingEquipmentFacilityService.java @@ -0,0 +1,35 @@ +package com.zcloud.service.firefightingEquipmentFacility; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface FirefightingEquipmentFacilityService { + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + public List list(Page page); +} diff --git a/src/main/java/com/zcloud/service/firefightingEquipmentFacility/impl/FirefightingEquipmentFacilityServiceImpl.java b/src/main/java/com/zcloud/service/firefightingEquipmentFacility/impl/FirefightingEquipmentFacilityServiceImpl.java new file mode 100644 index 0000000..7902163 --- /dev/null +++ b/src/main/java/com/zcloud/service/firefightingEquipmentFacility/impl/FirefightingEquipmentFacilityServiceImpl.java @@ -0,0 +1,44 @@ +package com.zcloud.service.firefightingEquipmentFacility.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.firefightingEquipmentFacility.FirefightingEquipmentFacilityMapper; +import com.zcloud.service.firefightingEquipmentFacility.FirefightingEquipmentFacilityService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +@Service +@Transactional //开启事物 +public class FirefightingEquipmentFacilityServiceImpl implements FirefightingEquipmentFacilityService { + + @Autowired + private FirefightingEquipmentFacilityMapper firefightingEquipmentFacilityMapper; + + @Override + public void save(PageData pd) throws Exception { + firefightingEquipmentFacilityMapper.save(pd); + } + + @Override + public void delete(PageData pd) throws Exception { + firefightingEquipmentFacilityMapper.delete(pd); + } + + @Override + public void edit(PageData pd) throws Exception { + firefightingEquipmentFacilityMapper.edit(pd); + } + + @Override + public PageData findById(PageData pd) throws Exception { + return firefightingEquipmentFacilityMapper.findById(pd); + } + + @Override + public List list(Page page) { + return firefightingEquipmentFacilityMapper.datalistPage(page); + } +} diff --git a/src/main/java/com/zcloud/service/firefightingMaintain/FirefightingMaintainService.java b/src/main/java/com/zcloud/service/firefightingMaintain/FirefightingMaintainService.java new file mode 100644 index 0000000..9e0e1f5 --- /dev/null +++ b/src/main/java/com/zcloud/service/firefightingMaintain/FirefightingMaintainService.java @@ -0,0 +1,37 @@ +package com.zcloud.service.firefightingMaintain; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface FirefightingMaintainService { + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + public List list(Page page); + + public List findByProductionEquipmentFacilityId(Page page); +} diff --git a/src/main/java/com/zcloud/service/firefightingMaintain/impl/FirefightingMaintainServiceImpl.java b/src/main/java/com/zcloud/service/firefightingMaintain/impl/FirefightingMaintainServiceImpl.java new file mode 100644 index 0000000..fdcf364 --- /dev/null +++ b/src/main/java/com/zcloud/service/firefightingMaintain/impl/FirefightingMaintainServiceImpl.java @@ -0,0 +1,51 @@ +package com.zcloud.service.firefightingMaintain.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.firedifhtingMaintain.FirefightingMaintainMapper; +import com.zcloud.mapper.datasource.maintain.MaintainMapper; +import com.zcloud.service.firefightingMaintain.FirefightingMaintainService; +import com.zcloud.service.maintain.MaintainService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +@Service +@Transactional //开启事物 +public class FirefightingMaintainServiceImpl implements FirefightingMaintainService { + + @Autowired + private FirefightingMaintainMapper firefightingMaintainMapper; + + @Override + public void save(PageData pd) throws Exception { + firefightingMaintainMapper.save(pd); + } + + @Override + public void delete(PageData pd) throws Exception { + firefightingMaintainMapper.delete(pd); + } + + @Override + public void edit(PageData pd) throws Exception { + firefightingMaintainMapper.edit(pd); + } + + @Override + public PageData findById(PageData pd) throws Exception { + return firefightingMaintainMapper.findById(pd); + } + + @Override + public List list(Page page) { + return firefightingMaintainMapper.datalistPage(page); + } + + @Override + public List findByProductionEquipmentFacilityId(Page page) { + return firefightingMaintainMapper.findByProductionEquipmentFacilityId(page); + } +} diff --git a/src/main/java/com/zcloud/service/labourEntrenchThing/LabourEntrenchThingService.java b/src/main/java/com/zcloud/service/labourEntrenchThing/LabourEntrenchThingService.java new file mode 100644 index 0000000..bd4dc52 --- /dev/null +++ b/src/main/java/com/zcloud/service/labourEntrenchThing/LabourEntrenchThingService.java @@ -0,0 +1,35 @@ +package com.zcloud.service.labourEntrenchThing; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface LabourEntrenchThingService { + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + public List list(Page page); +} diff --git a/src/main/java/com/zcloud/service/labourEntrenchThing/impl/LabourEntrenchThingServiceImpl.java b/src/main/java/com/zcloud/service/labourEntrenchThing/impl/LabourEntrenchThingServiceImpl.java new file mode 100644 index 0000000..9d0cc22 --- /dev/null +++ b/src/main/java/com/zcloud/service/labourEntrenchThing/impl/LabourEntrenchThingServiceImpl.java @@ -0,0 +1,46 @@ +package com.zcloud.service.labourEntrenchThing.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.enterpriseSafetyProduction.EnterpriseSafetyProductionMapper; +import com.zcloud.mapper.datasource.labourEntrenchThing.LabourEntrenchThingMapper; +import com.zcloud.service.enterpriseSafetyProduction.EnterpriseSafetyProductionService; +import com.zcloud.service.labourEntrenchThing.LabourEntrenchThingService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +@Service +@Transactional //开启事物 +public class LabourEntrenchThingServiceImpl implements LabourEntrenchThingService { + + @Autowired + private LabourEntrenchThingMapper labourEntrenchThingMapper; + + @Override + public void save(PageData pd) throws Exception { + labourEntrenchThingMapper.save(pd); + } + + @Override + public void delete(PageData pd) throws Exception { + labourEntrenchThingMapper.delete(pd); + } + + @Override + public void edit(PageData pd) throws Exception { + labourEntrenchThingMapper.edit(pd); + } + + @Override + public PageData findById(PageData pd) throws Exception { + return labourEntrenchThingMapper.findById(pd); + } + + @Override + public List list(Page page) { + return labourEntrenchThingMapper.datalistPage(page); + } +} diff --git a/src/main/java/com/zcloud/service/maintain/MaintainService.java b/src/main/java/com/zcloud/service/maintain/MaintainService.java new file mode 100644 index 0000000..8b8547d --- /dev/null +++ b/src/main/java/com/zcloud/service/maintain/MaintainService.java @@ -0,0 +1,37 @@ +package com.zcloud.service.maintain; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface MaintainService { + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + public List list(Page page); + + public List findByProductionEquipmentFacilityId(Page page); +} diff --git a/src/main/java/com/zcloud/service/maintain/impl/MaintainServiceImpl.java b/src/main/java/com/zcloud/service/maintain/impl/MaintainServiceImpl.java new file mode 100644 index 0000000..4087c64 --- /dev/null +++ b/src/main/java/com/zcloud/service/maintain/impl/MaintainServiceImpl.java @@ -0,0 +1,51 @@ +package com.zcloud.service.maintain.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.enterpriseSafetyProduction.EnterpriseSafetyProductionMapper; +import com.zcloud.mapper.datasource.maintain.MaintainMapper; +import com.zcloud.service.enterpriseSafetyProduction.EnterpriseSafetyProductionService; +import com.zcloud.service.maintain.MaintainService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +@Service +@Transactional //开启事物 +public class MaintainServiceImpl implements MaintainService { + + @Autowired + private MaintainMapper maintainMapper; + + @Override + public void save(PageData pd) throws Exception { + maintainMapper.save(pd); + } + + @Override + public void delete(PageData pd) throws Exception { + maintainMapper.delete(pd); + } + + @Override + public void edit(PageData pd) throws Exception { + maintainMapper.edit(pd); + } + + @Override + public PageData findById(PageData pd) throws Exception { + return maintainMapper.findById(pd); + } + + @Override + public List list(Page page) { + return maintainMapper.datalistPage(page); + } + + @Override + public List findByProductionEquipmentFacilityId(Page page) { + return maintainMapper.findByProductionEquipmentFacilityId(page); + } +} diff --git a/src/main/java/com/zcloud/service/operatingvehicles/OperatingVehiclesService.java b/src/main/java/com/zcloud/service/operatingvehicles/OperatingVehiclesService.java index e6dfd33..5b0e2e2 100644 --- a/src/main/java/com/zcloud/service/operatingvehicles/OperatingVehiclesService.java +++ b/src/main/java/com/zcloud/service/operatingvehicles/OperatingVehiclesService.java @@ -36,4 +36,5 @@ public interface OperatingVehiclesService { List operationVehicleList(String corpId); + List corpList(String corpId); } diff --git a/src/main/java/com/zcloud/service/operatingvehicles/impl/OperatingVehiclesServiceImpl.java b/src/main/java/com/zcloud/service/operatingvehicles/impl/OperatingVehiclesServiceImpl.java index 7c23ac8..904f851 100644 --- a/src/main/java/com/zcloud/service/operatingvehicles/impl/OperatingVehiclesServiceImpl.java +++ b/src/main/java/com/zcloud/service/operatingvehicles/impl/OperatingVehiclesServiceImpl.java @@ -46,4 +46,9 @@ public class OperatingVehiclesServiceImpl implements OperatingVehiclesService { public List operationVehicleList(String corpId) { return operatingVehiclesMapper.operationVehicleList(corpId); } + + @Override + public List corpList(String corpId) { + return operatingVehiclesMapper.corpList(corpId); + } } diff --git a/src/main/java/com/zcloud/service/reportedIncident/ReportedIncidentService.java b/src/main/java/com/zcloud/service/reportedIncident/ReportedIncidentService.java new file mode 100644 index 0000000..b499436 --- /dev/null +++ b/src/main/java/com/zcloud/service/reportedIncident/ReportedIncidentService.java @@ -0,0 +1,79 @@ +package com.zcloud.service.reportedIncident; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +/** + * 企业信息管理-货运挂车 + */ +public interface ReportedIncidentService { + + /** + * 新增 + * + * @param pd + * @throws Exception + */ + public void save(PageData pd) throws Exception; + + /** + * 删除 + * + * @param pd + * @throws Exception + */ + public void delete(PageData pd) throws Exception; + + /** + * 修改 + * + * @param pd + * @throws Exception + */ + public void edit(PageData pd) throws Exception; + + /** + * 列表 + * + * @param page + * @throws Exception + */ + public List list(Page page) throws Exception; + + + /** + * 通过id获取数据 + * + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd) throws Exception; + + /** + * 列表 + * + * @param + * @throws Exception + */ + public List corpList(String corpId) throws Exception; + + /** + * 列表 + * + * @param + * @throws Exception + */ + public List trailerList(String corpId) throws Exception; + + /** + * 列表 + * + * @param + * @throws Exception + */ + public List vehicleList(PageData pd) throws Exception; + +} + diff --git a/src/main/java/com/zcloud/service/reportedIncident/impl/ReportedIncidentServiceImpl.java b/src/main/java/com/zcloud/service/reportedIncident/impl/ReportedIncidentServiceImpl.java new file mode 100644 index 0000000..ddcb699 --- /dev/null +++ b/src/main/java/com/zcloud/service/reportedIncident/impl/ReportedIncidentServiceImpl.java @@ -0,0 +1,109 @@ +package com.zcloud.service.reportedIncident.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.freighttrailer.FreightTrailerMapper; +import com.zcloud.mapper.datasource.reportedIncident.ReportedIncidentMapper; +import com.zcloud.service.freighttrailer.FreightTrailerService; +import com.zcloud.service.reportedIncident.ReportedIncidentService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 企业信息管理-货运挂车 + */ +@Service +@Transactional +public class ReportedIncidentServiceImpl implements ReportedIncidentService { + + @Autowired + private ReportedIncidentMapper reportedIncidentMapper; + + /** + * 新增 + * + * @param pd + * @throws Exception + */ + public void save(PageData pd) throws Exception { + reportedIncidentMapper.save(pd); + } + + /** + * 删除 + *e + * @param pd + * @throws Exception + */ + public void delete(PageData pd) throws Exception { + reportedIncidentMapper.delete(pd); + } + + /** + * 修改 + * + * @param pd + * @throws Exception + */ + public void edit(PageData pd) throws Exception { + reportedIncidentMapper.edit(pd); + } + + /** + * 列表 + * + * @param page + * @throws Exception + */ + public List list(Page page) throws Exception { + return reportedIncidentMapper.datalistPage(page); + } + + + + /** + * 通过id获取数据 + * + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd) throws Exception { + return reportedIncidentMapper.findById(pd); + } + + + /** + * 列表 + * + * @param + * @throws Exception + */ + public List corpList(String corpId) throws Exception { + return reportedIncidentMapper.corpList(corpId); + } + + /** + * 列表 + * + * @param + * @throws Exception + */ + public List trailerList(String corpId) throws Exception { + return reportedIncidentMapper.trailerList(corpId); + } + + /** + * 列表 + * + * @param + * @throws Exception + */ + public List vehicleList(PageData pd) throws Exception { + return reportedIncidentMapper.vehicleList(pd); + } + +} + diff --git a/src/main/resources/mybatis/datasource/enterpriseSafetyProduction/EnterpriseSafetyProductionMapper.xml b/src/main/resources/mybatis/datasource/enterpriseSafetyProduction/EnterpriseSafetyProductionMapper.xml new file mode 100644 index 0000000..fc4502b --- /dev/null +++ b/src/main/resources/mybatis/datasource/enterpriseSafetyProduction/EnterpriseSafetyProductionMapper.xml @@ -0,0 +1,356 @@ + + + + + + + BUS_TRAFFIC_SAFETY_PRODUCTION_SHIFT + + + + + SYS_DICTIONARIES + + + + + f.SAFETYPRODUCTION_ID, + f.CORPINFO_ID, + f.WATCHKEEPER, + f.WATCHLEAD, + f.WATCH_DATE, + f.WATCH_TELEPHONE, + f.WATCH_PHONE, + f.REGISTRANT, + f.WATCH_CONDITION, + f.MANAGING_ENTERPRISE, + f.MANAGING_TYPE, + f.ISDELETE, + f.CREATOR, + f.CREATORNAME, + f.CREATTIME, + f.OPERATOR, + f.OPERATORNAME, + f.OPERATTIME, + f.DELETOR, + f.DELETORNAME, + f.DELETTIME + + + + + SAFETYPRODUCTION_ID, + CORPINFO_ID, + WATCHKEEPER, + WATCHLEAD, + WATCH_DATE, + WATCH_TELEPHONE, + WATCH_PHONE, + REGISTRANT, + WATCH_CONDITION, + MANAGING_ENTERPRISE, + MANAGING_TYPE, + ISDELETE, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME, + DELETOR, + DELETORNAME, + DELETTIME + + + + + #{SAFETYPRODUCTION_ID}, + #{CORPINFO_ID}, + #{WATCHKEEPER}, + #{WATCHLEAD}, + #{WATCH_DATE}, + #{WATCH_TELEPHONE}, + #{WATCH_PHONE}, + #{REGISTRANT}, + #{WATCH_CONDITION}, + #{MANAGING_ENTERPRISE}, + #{MANAGING_TYPE}, + #{ISDELETE}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME}, + #{DELETOR}, + #{DELETORNAME}, + #{DELETTIME} + + + + + insert into + + ( + + ) values ( + + ) + + + + + update + + set + ISDELETE = '1' + where + SAFETYPRODUCTION_ID = #{SAFETYPRODUCTION_ID} + and + CORPINFO_ID = #{CORPINFO_ID} + + + + + update + + set + SAFETYPRODUCTION_ID = #{SAFETYPRODUCTION_ID}, + CORPINFO_ID = #{CORPINFO_ID}, + WATCHKEEPER = #{WATCHKEEPER}, + WATCHLEAD = #{WATCHLEAD}, + WATCH_DATE = #{WATCH_DATE}, + WATCH_TELEPHONE = #{WATCH_TELEPHONE}, + WATCH_PHONE = #{WATCH_PHONE}, + REGISTRANT = #{REGISTRANT}, + WATCH_CONDITION = #{WATCH_CONDITION}, + MANAGING_ENTERPRISE = #{MANAGING_ENTERPRISE}, + MANAGING_TYPE = #{MANAGING_TYPE}, + ISDELETE = #{ISDELETE}, + CREATOR = #{CREATOR}, + CREATORNAME = #{CREATORNAME}, + CREATTIME = #{CREATTIME}, + OPERATOR = #{OPERATOR}, + OPERATORNAME = #{OPERATORNAME}, + OPERATTIME = #{OPERATTIME}, + DELETOR = #{DELETOR}, + DELETORNAME = #{DELETORNAME}, + DELETTIME = #{DELETTIME} + where + SAFETYPRODUCTION_ID = #{SAFETYPRODUCTION_ID} + + + + + + + + + + + + + + + diff --git a/src/main/resources/mybatis/datasource/equipmentFacility/EquipmentFacilityMapper.xml b/src/main/resources/mybatis/datasource/equipmentFacility/EquipmentFacilityMapper.xml new file mode 100644 index 0000000..6f819b3 --- /dev/null +++ b/src/main/resources/mybatis/datasource/equipmentFacility/EquipmentFacilityMapper.xml @@ -0,0 +1,366 @@ + + + + + + + BUS_TRAFFIC_PRODUCTION_FACILITY + + + + + SYS_DICTIONARIES + + + + + f.PRODUCTIONFACILITY_ID, + f.CORPINFO_ID, + f.FACILITY_NAME, + f.FACILITY_NUMBER, + f.FACILITY_LOCALTION, + f.CONDUCT_ENTERPRISE, + f.FACILITY_UNIT, + f.FACILITY_COUNT, + f.CONDUCT_TYPE, + f.FACILITY_PRINCIPAL, + f.REGISTRATION_TIME, + f.EQUIPMENT_FACILITY, + f.FACILITY_REMARK, + f.ISDELETE, + f.CREATOR, + f.CREATORNAME, + f.CREATTIME, + f.OPERATOR, + f.OPERATORNAME, + f.OPERATTIME, + f.DELETOR, + f.DELETORNAME, + f.DELETTIME + + + + + PRODUCTIONFACILITY_ID, + CORPINFO_ID, + FACILITY_NAME, + FACILITY_NUMBER, + FACILITY_LOCALTION, + CONDUCT_ENTERPRISE, + FACILITY_UNIT, + FACILITY_COUNT, + CONDUCT_TYPE, + FACILITY_PRINCIPAL, + REGISTRATION_TIME, + EQUIPMENT_FACILITY, + FACILITY_REMARK, + ISDELETE, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME, + DELETOR, + DELETORNAME, + DELETTIME + + + + + #{PRODUCTIONFACILITY_ID}, + #{CORPINFO_ID}, + #{FACILITY_NAME}, + #{FACILITY_NUMBER}, + #{FACILITY_LOCALTION}, + #{CONDUCT_ENTERPRISE}, + #{FACILITY_UNIT}, + #{FACILITY_COUNT}, + #{CONDUCT_TYPE}, + #{FACILITY_PRINCIPAL}, + #{REGISTRATION_TIME}, + #{EQUIPMENT_FACILITY}, + #{FACILITY_REMARK}, + #{ISDELETE}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME}, + #{DELETOR}, + #{DELETORNAME}, + #{DELETTIME} + + + + + insert into + + ( + + ) values ( + + ) + + + + + update + + set + ISDELETE = '1' + where + PRODUCTIONFACILITY_ID = #{PRODUCTIONFACILITY_ID} + and + CORPINFO_ID = #{CORPINFO_ID} + + + + + update + + set + PRODUCTIONFACILITY_ID = #{PRODUCTIONFACILITY_ID}, + CORPINFO_ID = #{CORPINFO_ID}, + FACILITY_NAME = #{FACILITY_NAME}, + FACILITY_NUMBER = #{FACILITY_NUMBER}, + FACILITY_LOCALTION = #{FACILITY_LOCALTION}, + CONDUCT_ENTERPRISE = #{CONDUCT_ENTERPRISE}, + FACILITY_UNIT = #{FACILITY_UNIT}, + FACILITY_COUNT = #{FACILITY_COUNT}, + CONDUCT_TYPE = #{CONDUCT_TYPE}, + FACILITY_PRINCIPAL = #{FACILITY_PRINCIPAL}, + REGISTRATION_TIME = #{REGISTRATION_TIME}, + EQUIPMENT_FACILITY = #{EQUIPMENT_FACILITY}, + FACILITY_REMARK = #{FACILITY_REMARK}, + ISDELETE = #{ISDELETE}, + CREATOR = #{CREATOR}, + CREATORNAME = #{CREATORNAME}, + CREATTIME = #{CREATTIME}, + OPERATOR = #{OPERATOR}, + OPERATORNAME = #{OPERATORNAME}, + OPERATTIME = #{OPERATTIME}, + DELETOR = #{DELETOR}, + DELETORNAME = #{DELETORNAME}, + DELETTIME = #{DELETTIME} + where + PRODUCTIONFACILITY_ID = #{PRODUCTIONFACILITY_ID} + + + + + + + + + + + + + + + diff --git a/src/main/resources/mybatis/datasource/firefightingEquipmentFacility/FirefightingEquipmentFacilityMapper.xml b/src/main/resources/mybatis/datasource/firefightingEquipmentFacility/FirefightingEquipmentFacilityMapper.xml new file mode 100644 index 0000000..92de0d2 --- /dev/null +++ b/src/main/resources/mybatis/datasource/firefightingEquipmentFacility/FirefightingEquipmentFacilityMapper.xml @@ -0,0 +1,366 @@ + + + + + + + BUS_TRAFFIC_FIREFIGHTING_FACILITY + + + + + SYS_DICTIONARIES + + + + + f.FIREFIGHTINGFACILITY_ID, + f.CORPINFO_ID, + f.FACILITY_NAME, + f.FACILITY_NUMBER, + f.FACILITY_LOCALTION, + f.MANAGING_ENTERPRISE, + f.FACILITY_UNIT, + f.FACILITY_COUNT, + f.MANAGING_TYPE, + f.FACILITY_PRINCIPAL, + f.REGISTRATION_TIME, + f.EQUIPMENT_FACILITY, + f.REMARK, + f.ISDELETE, + f.CREATOR, + f.CREATORNAME, + f.CREATTIME, + f.OPERATOR, + f.OPERATORNAME, + f.OPERATTIME, + f.DELETOR, + f.DELETORNAME, + f.DELETTIME + + + + + FIREFIGHTINGFACILITY_ID, + CORPINFO_ID, + FACILITY_NAME, + FACILITY_NUMBER, + FACILITY_LOCALTION, + MANAGING_ENTERPRISE, + FACILITY_UNIT, + FACILITY_COUNT, + MANAGING_TYPE, + FACILITY_PRINCIPAL, + REGISTRATION_TIME, + EQUIPMENT_FACILITY, + REMARK, + ISDELETE, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME, + DELETOR, + DELETORNAME, + DELETTIME + + + + + #{FIREFIGHTINGFACILITY_ID}, + #{CORPINFO_ID}, + #{FACILITY_NAME}, + #{FACILITY_NUMBER}, + #{FACILITY_LOCALTION}, + #{MANAGING_ENTERPRISE}, + #{FACILITY_UNIT}, + #{FACILITY_COUNT}, + #{MANAGING_TYPE}, + #{FACILITY_PRINCIPAL}, + #{REGISTRATION_TIME}, + #{EQUIPMENT_FACILITY}, + #{REMARK}, + #{ISDELETE}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME}, + #{DELETOR}, + #{DELETORNAME}, + #{DELETTIME} + + + + + insert into + + ( + + ) values ( + + ) + + + + + update + + set + ISDELETE = '1' + where + FIREFIGHTINGFACILITY_ID = #{FIREFIGHTINGFACILITY_ID} + and + CORPINFO_ID = #{CORPINFO_ID} + + + + + update + + set + FIREFIGHTINGFACILITY_ID = #{FIREFIGHTINGFACILITY_ID}, + CORPINFO_ID = #{CORPINFO_ID}, + FACILITY_NAME = #{FACILITY_NAME}, + FACILITY_NUMBER = #{FACILITY_NUMBER}, + FACILITY_LOCALTION = #{FACILITY_LOCALTION}, + MANAGING_ENTERPRISE = #{MANAGING_ENTERPRISE}, + FACILITY_UNIT = #{FACILITY_UNIT}, + FACILITY_COUNT = #{FACILITY_COUNT}, + MANAGING_TYPE = #{MANAGING_TYPE}, + FACILITY_PRINCIPAL = #{FACILITY_PRINCIPAL}, + REGISTRATION_TIME = #{REGISTRATION_TIME}, + EQUIPMENT_FACILITY = #{EQUIPMENT_FACILITY}, + REMARK = #{REMARK}, + ISDELETE = #{ISDELETE}, + CREATOR = #{CREATOR}, + CREATORNAME = #{CREATORNAME}, + CREATTIME = #{CREATTIME}, + OPERATOR = #{OPERATOR}, + OPERATORNAME = #{OPERATORNAME}, + OPERATTIME = #{OPERATTIME}, + DELETOR = #{DELETOR}, + DELETORNAME = #{DELETORNAME}, + DELETTIME = #{DELETTIME} + where + FIREFIGHTINGFACILITY_ID = #{FIREFIGHTINGFACILITY_ID} + + + + + + + + + + + + + + + diff --git a/src/main/resources/mybatis/datasource/firefightingMaintain/FirefightingMaintainMapper.xml b/src/main/resources/mybatis/datasource/firefightingMaintain/FirefightingMaintainMapper.xml new file mode 100644 index 0000000..83eacfa --- /dev/null +++ b/src/main/resources/mybatis/datasource/firefightingMaintain/FirefightingMaintainMapper.xml @@ -0,0 +1,351 @@ + + + + + + + BUS_TRAFFIC_FIREFIGHTING_MAINTAIN + + + + + SYS_DICTIONARIES + + + + + f.FIREFIGHTINGMAINTAIN_ID, + f.FIREFIGHTINGFACILITY_ID, + f.MAINTAIN_DATE, + f.MAINTAIN_CONDITION, + f.MAINTAIN_PERSON, + f.REMARK, + f.MAINTAIN_IMG, + f.ISDELETE, + f.CREATOR, + f.CREATORNAME, + f.CREATTIME, + f.OPERATOR, + f.OPERATORNAME, + f.OPERATTIME, + f.DELETOR, + f.DELETORNAME, + f.DELETTIME + + + + + FIREFIGHTINGMAINTAIN_ID, + FIREFIGHTINGFACILITY_ID, + MAINTAIN_DATE, + MAINTAIN_CONDITION, + MAINTAIN_PERSON, + REMARK, + MAINTAIN_IMG, + ISDELETE, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME, + DELETOR, + DELETORNAME, + DELETTIME + + + + + #{FIREFIGHTINGMAINTAIN_ID}, + #{FIREFIGHTINGFACILITY_ID}, + #{MAINTAIN_DATE}, + #{MAINTAIN_CONDITION}, + #{MAINTAIN_PERSON}, + #{REMARK}, + #{MAINTAIN_IMG}, + #{ISDELETE}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME}, + #{DELETOR}, + #{DELETORNAME}, + #{DELETTIME} + + + + + insert into + + ( + + ) values ( + + ) + + + + + update + f + set + f.ISDELETE = '1' , + f.DELETOR = #{DELETOR}, + f.DELETORNAME = #{DELETORNAME}, + f.DELETTIME = #{DELETTIME} + where + f.FIREFIGHTINGMAINTAIN_ID = #{FIREFIGHTINGMAINTAIN_ID} + + + + + update + + set + FIREFIGHTINGMAINTAIN_ID = #{FIREFIGHTINGMAINTAIN_ID}, + FIREFIGHTINGFACILITY_ID = #{FIREFIGHTINGFACILITY_ID}, + MAINTAIN_DATE = #{MAINTAIN_DATE}, + MAINTAIN_CONDITION = #{MAINTAIN_CONDITION}, + MAINTAIN_PERSON = #{MAINTAIN_PERSON}, + REMARK = #{REMARK}, + MAINTAIN_IMG = #{MAINTAIN_IMG}, + ISDELETE = #{ISDELETE}, + CREATOR = #{CREATOR}, + CREATORNAME = #{CREATORNAME}, + CREATTIME = #{CREATTIME}, + OPERATOR = #{OPERATOR}, + OPERATORNAME = #{OPERATORNAME}, + OPERATTIME = #{OPERATTIME}, + DELETOR = #{DELETOR}, + DELETORNAME = #{DELETORNAME}, + DELETTIME = #{DELETTIME} + where + FIREFIGHTINGMAINTAIN_ID = #{FIREFIGHTINGMAINTAIN_ID} + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/mybatis/datasource/labourEntrenchThing/LabourEntrenchThingMapper.xml b/src/main/resources/mybatis/datasource/labourEntrenchThing/LabourEntrenchThingMapper.xml new file mode 100644 index 0000000..083313d --- /dev/null +++ b/src/main/resources/mybatis/datasource/labourEntrenchThing/LabourEntrenchThingMapper.xml @@ -0,0 +1,372 @@ + + + + + + + BUS_TRAFFIC_LABOUR_ENTRENCH_THING + + + + + SYS_DICTIONARIES + + + + + f.PROTECTIVEEQUIPMENT_ID, + f.CORPINFO_ID, + f.PERSON_NAME, + f.MANAGING_ENTERPRISE, + f.GLOVE, + f.MASK, + f.OVERALL, + f.FOOTWARE, + f.WINTER_COAT, + f.RAINCOAT, + f.GOGGLES, + f.AID_KIT, + f.HELMET, + f.SUPPLIES, + f.MANAGING_TYPE, + f.ISDELETE, + f.CREATOR, + f.CREATORNAME, + f.CREATTIME, + f.OPERATOR, + f.OPERATORNAME, + f.OPERATTIME, + f.DELETOR, + f.DELETORNAME, + f.DELETTIME + + + + + PROTECTIVEEQUIPMENT_ID, + CORPINFO_ID, + PERSON_NAME, + MANAGING_ENTERPRISE, + GLOVE, + MASK, + OVERALL, + FOOTWARE, + WINTER_COAT, + RAINCOAT, + GOGGLES, + AID_KIT, + HELMET, + SUPPLIES, + MANAGING_TYPE, + ISDELETE, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME, + DELETOR, + DELETORNAME, + DELETTIME + + + + + #{PROTECTIVEEQUIPMENT_ID}, + #{CORPINFO_ID}, + #{PERSON_NAME}, + #{MANAGING_ENTERPRISE}, + #{GLOVE}, + #{MASK}, + #{OVERALL}, + #{FOOTWARE}, + #{WINTER_COAT}, + #{RAINCOAT}, + #{GOGGLES}, + #{AID_KIT}, + #{HELMET}, + #{SUPPLIES}, + #{MANAGING_TYPE}, + #{ISDELETE}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME}, + #{DELETOR}, + #{DELETORNAME}, + #{DELETTIME} + + + + + insert into + + ( + + ) values ( + + ) + + + + + update + + set + ISDELETE = '1' + where + PROTECTIVEEQUIPMENT_ID = #{PROTECTIVEEQUIPMENT_ID} + + + + + update + + set + PROTECTIVEEQUIPMENT_ID = #{PROTECTIVEEQUIPMENT_ID}, + CORPINFO_ID = #{CORPINFO_ID}, + PERSON_NAME = #{PERSON_NAME}, + MANAGING_ENTERPRISE = #{MANAGING_ENTERPRISE}, + GLOVE = #{GLOVE}, + MASK = #{MASK}, + OVERALL = #{OVERALL}, + FOOTWARE = #{FOOTWARE}, + WINTER_COAT = #{WINTER_COAT}, + RAINCOAT = #{RAINCOAT}, + GOGGLES = #{GOGGLES}, + AID_KIT = #{AID_KIT}, + HELMET = #{HELMET}, + SUPPLIES = #{SUPPLIES}, + MANAGING_TYPE = #{MANAGING_TYPE}, + ISDELETE = #{ISDELETE}, + CREATOR = #{CREATOR}, + CREATORNAME = #{CREATORNAME}, + CREATTIME = #{CREATTIME}, + OPERATOR = #{OPERATOR}, + OPERATORNAME = #{OPERATORNAME}, + OPERATTIME = #{OPERATTIME}, + DELETOR = #{DELETOR}, + DELETORNAME = #{DELETORNAME}, + DELETTIME = #{DELETTIME} + where + PROTECTIVEEQUIPMENT_ID = #{PROTECTIVEEQUIPMENT_ID} + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/mybatis/datasource/maintain/MaintainMapper.xml b/src/main/resources/mybatis/datasource/maintain/MaintainMapper.xml new file mode 100644 index 0000000..84f2e0f --- /dev/null +++ b/src/main/resources/mybatis/datasource/maintain/MaintainMapper.xml @@ -0,0 +1,351 @@ + + + + + + + BUS_TRAFFIC_MAINTAIN + + + + + SYS_DICTIONARIES + + + + + f.MAINTAIN_ID, + f.PRODUCTIONFACILITY_ID, + f.MAINTAIN_DATE, + f.MAINTAIN_CONDITION, + f.MAINTAIN_PERSON, + f.REMARK, + f.MAINTAIN_IMG, + f.ISDELETE, + f.CREATOR, + f.CREATORNAME, + f.CREATTIME, + f.OPERATOR, + f.OPERATORNAME, + f.OPERATTIME, + f.DELETOR, + f.DELETORNAME, + f.DELETTIME + + + + + MAINTAIN_ID, + PRODUCTIONFACILITY_ID, + MAINTAIN_DATE, + MAINTAIN_CONDITION, + MAINTAIN_PERSON, + REMARK, + MAINTAIN_IMG, + ISDELETE, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME, + DELETOR, + DELETORNAME, + DELETTIME + + + + + #{MAINTAIN_ID}, + #{PRODUCTIONFACILITY_ID}, + #{MAINTAIN_DATE}, + #{MAINTAIN_CONDITION}, + #{MAINTAIN_PERSON}, + #{REMARK}, + #{MAINTAIN_IMG}, + #{ISDELETE}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME}, + #{DELETOR}, + #{DELETORNAME}, + #{DELETTIME} + + + + + insert into + + ( + + ) values ( + + ) + + + + + update + f + set + f.ISDELETE = '1' , + f.DELETOR = #{DELETOR}, + f.DELETORNAME = #{DELETORNAME}, + f.DELETTIME = #{DELETTIME} + where + f.MAINTAIN_ID = #{MAINTAIN_ID} + + + + + update + + set + MAINTAIN_ID = #{MAINTAIN_ID}, + PRODUCTIONFACILITY_ID = #{PRODUCTIONFACILITY_ID}, + MAINTAIN_DATE = #{MAINTAIN_DATE}, + MAINTAIN_CONDITION = #{MAINTAIN_CONDITION}, + MAINTAIN_PERSON = #{MAINTAIN_PERSON}, + REMARK = #{REMARK}, + MAINTAIN_IMG = #{MAINTAIN_IMG}, + ISDELETE = #{ISDELETE}, + CREATOR = #{CREATOR}, + CREATORNAME = #{CREATORNAME}, + CREATTIME = #{CREATTIME}, + OPERATOR = #{OPERATOR}, + OPERATORNAME = #{OPERATORNAME}, + OPERATTIME = #{OPERATTIME}, + DELETOR = #{DELETOR}, + DELETORNAME = #{DELETORNAME}, + DELETTIME = #{DELETTIME} + where + MAINTAIN_ID = #{MAINTAIN_ID} + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/mybatis/datasource/operatingvehicles/OperatingVehiclesMapper.xml b/src/main/resources/mybatis/datasource/operatingvehicles/OperatingVehiclesMapper.xml index b8c3e26..6db3b1f 100644 --- a/src/main/resources/mybatis/datasource/operatingvehicles/OperatingVehiclesMapper.xml +++ b/src/main/resources/mybatis/datasource/operatingvehicles/OperatingVehiclesMapper.xml @@ -511,5 +511,14 @@ and f.ISDELETE = '0' + + + diff --git a/src/main/resources/mybatis/datasource/reportedIncident/ReportedIncidentMapper.xml b/src/main/resources/mybatis/datasource/reportedIncident/ReportedIncidentMapper.xml new file mode 100644 index 0000000..5d84885 --- /dev/null +++ b/src/main/resources/mybatis/datasource/reportedIncident/ReportedIncidentMapper.xml @@ -0,0 +1,202 @@ + + + + + + + BUS_TRAFFIC_REPORTED_INCIDENT + + + + f.REPORTEDINCIDENT_ID, + f.CORPINFO_ID, + f.REPORTPERSON, + f.DISPOSE_RESULT, + f.DISPOSE_STATUS, + f.REPORTED_DATE, + f.REPORTED_CONTENT, + f.REPORTED_TIME, + f.DISPOSE_DATE, + f.MANAGING_ENTERPRISE, + f.MANAGING_TYPE, + f.ISDELETE, + f.CREATOR, + f.CREATORNAME, + f.CREATTIME, + f.OPERATOR, + f.OPERATORNAME, + f.OPERATTIME, + f.DELETOR, + f.DELETORNAME, + f.DELETTIME + + + + + REPORTEDINCIDENT_ID, + CORPINFO_ID, + REPORTPERSON, + DISPOSE_RESULT, + DISPOSE_STATUS, + REPORTED_DATE, + REPORTED_CONTENT, + REPORTED_TIME, + DISPOSE_DATE, + MANAGING_ENTERPRISE, + MANAGING_TYPE, + ISDELETE, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME, + DELETOR, + DELETORNAME, + DELETTIME + + + + + #{REPORTEDINCIDENT_ID}, + #{CORPINFO_ID}, + #{REPORTPERSON}, + #{DISPOSE_RESULT}, + #{DISPOSE_STATUS}, + #{REPORTED_DATE}, + #{REPORTED_CONTENT}, + #{REPORTED_TIME}, + #{DISPOSE_DATE}, + #{MANAGING_ENTERPRISE}, + #{MANAGING_TYPE}, + #{ISDELETE}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME}, + #{DELETOR}, + #{DELETORNAME}, + #{DELETTIME} + + + + + insert into + + ( + + ) values ( + + ) + + + + + update + + set + ISDELETE = '1', + DELETOR = #{DELETOR}, + DELETORNAME = #{DELETORNAME}, + DELETTIME = #{DELETTIME} + where + REPORTEDINCIDENT_ID = #{REPORTEDINCIDENT_ID} + + + + + update + + set + REPORTEDINCIDENT_ID = #{REPORTEDINCIDENT_ID}, + CORPINFO_ID = #{CORPINFO_ID}, + REPORTPERSON = #{REPORTPERSON}, + DISPOSE_RESULT = #{DISPOSE_RESULT}, + DISPOSE_STATUS = #{DISPOSE_STATUS}, + REPORTED_DATE = #{REPORTED_DATE}, + REPORTED_CONTENT = #{REPORTED_CONTENT}, + REPORTED_TIME = #{REPORTED_TIME}, + DISPOSE_DATE = #{DISPOSE_DATE}, + MANAGING_ENTERPRISE = #{MANAGING_ENTERPRISE}, + MANAGING_TYPE = #{MANAGING_TYPE}, + ISDELETE = #{ISDELETE}, + CREATOR = #{CREATOR}, + CREATORNAME = #{CREATORNAME}, + CREATTIME = #{CREATTIME}, + OPERATOR = #{OPERATOR}, + OPERATORNAME = #{OPERATORNAME}, + OPERATTIME = #{OPERATTIME}, + DELETOR = #{DELETOR}, + DELETORNAME = #{DELETORNAME}, + DELETTIME = #{DELETTIME} + where + REPORTEDINCIDENT_ID = #{REPORTEDINCIDENT_ID} + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/mybatis/datasource/taxationManage/TaxationManageMapper.xml b/src/main/resources/mybatis/datasource/taxationManage/TaxationManageMapper.xml index 6e7844a..b4bce37 100644 --- a/src/main/resources/mybatis/datasource/taxationManage/TaxationManageMapper.xml +++ b/src/main/resources/mybatis/datasource/taxationManage/TaxationManageMapper.xml @@ -53,7 +53,8 @@ f.OPERATTIME, f.DELETOR, f.DELETORNAME, - f.DELETTIME + f.DELETTIME, + f.FREIGHTTRAILER_ID @@ -97,7 +98,8 @@ OPERATTIME, DELETOR, DELETORNAME, - DELETTIME + DELETTIME, + FREIGHTTRAILER_ID @@ -141,7 +143,8 @@ #{OPERATTIME}, #{DELETOR}, #{DELETORNAME}, - #{DELETTIME} + #{DELETTIME}, + #{FREIGHTTRAILER_ID} @@ -209,7 +212,8 @@ OPERATTIME = #{OPERATTIME}, DELETOR = #{DELETOR}, DELETORNAME = #{DELETORNAME}, - DELETTIME = #{DELETTIME} + DELETTIME = #{DELETTIME}, + FREIGHTTRAILER_ID = #{FREIGHTTRAILER_ID} where TAXATION_ID = #{TAXATION_ID} From d282d1a2a75364a11c46c3f522ae33bf79df35ea Mon Sep 17 00:00:00 2001 From: chenxinying <1039655633@qq.com> Date: Wed, 20 Mar 2024 17:02:31 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=A1=8C=E8=BD=A6=E4=B8=89=E6=A3=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppTrafficDrivingItemController.java | 180 ++++++++++++++++++ .../AppTrafficDrivingTypeController.java | 152 +++++++++++++++ ...SecurityWaybillRegistrationController.java | 120 ++++++++++++ .../TrafficDrivingCommitmentController.java | 137 +++++++++++++ .../TrafficDrivingTypeController.java | 131 +++++++++++++ .../TrafficDrivingCommitmentMapper.java | 44 +++++ .../TrafficDrivingItemMapper.java | 44 +++++ .../TrafficDrivingSignMapper.java | 47 +++++ .../TrafficDrivingTypeMapper.java | 43 +++++ ...fficSecurityWaybillRegistrationMapper.java | 8 + .../TrafficDrivingCommitmentService.java | 28 +++ .../TrafficDrivingItemService.java | 34 ++++ .../TrafficDrivingSignService.java | 34 ++++ .../TrafficDrivingTypeService.java | 28 +++ ...ficSecurityWaybillRegistrationService.java | 2 + .../TrafficDrivingCommitmentServiceImpl.java | 62 ++++++ .../impl/TrafficDrivingItemServiceImpl.java | 107 +++++++++++ .../impl/TrafficDrivingSignServiceImpl.java | 65 +++++++ .../impl/TrafficDrivingTypeServiceImpl.java | 58 ++++++ ...ecurityWaybillRegistrationServiceImpl.java | 4 + .../TrafficDrivingCommitmentMapper.xml | 138 ++++++++++++++ .../TrafficDrivingItemMapper.xml | 143 ++++++++++++++ .../TrafficDrivingSignMapper.xml | 165 ++++++++++++++++ .../TrafficDrivingTypeMapper.xml | 136 +++++++++++++ ...afficSecurityWaybillRegistrationMapper.xml | 32 ++++ 25 files changed, 1942 insertions(+) create mode 100644 src/main/java/com/zcloud/controller/comprehensive/AppTrafficDrivingItemController.java create mode 100644 src/main/java/com/zcloud/controller/comprehensive/AppTrafficDrivingTypeController.java create mode 100644 src/main/java/com/zcloud/controller/comprehensive/AppTrafficSecurityWaybillRegistrationController.java create mode 100644 src/main/java/com/zcloud/controller/comprehensive/TrafficDrivingCommitmentController.java create mode 100644 src/main/java/com/zcloud/controller/comprehensive/TrafficDrivingTypeController.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingCommitmentMapper.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingItemMapper.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingSignMapper.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingTypeMapper.java create mode 100644 src/main/java/com/zcloud/service/comprehensive/TrafficDrivingCommitmentService.java create mode 100644 src/main/java/com/zcloud/service/comprehensive/TrafficDrivingItemService.java create mode 100644 src/main/java/com/zcloud/service/comprehensive/TrafficDrivingSignService.java create mode 100644 src/main/java/com/zcloud/service/comprehensive/TrafficDrivingTypeService.java create mode 100644 src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingCommitmentServiceImpl.java create mode 100644 src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingItemServiceImpl.java create mode 100644 src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingSignServiceImpl.java create mode 100644 src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingTypeServiceImpl.java create mode 100644 src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingCommitmentMapper.xml create mode 100644 src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingItemMapper.xml create mode 100644 src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingSignMapper.xml create mode 100644 src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingTypeMapper.xml diff --git a/src/main/java/com/zcloud/controller/comprehensive/AppTrafficDrivingItemController.java b/src/main/java/com/zcloud/controller/comprehensive/AppTrafficDrivingItemController.java new file mode 100644 index 0000000..bd84392 --- /dev/null +++ b/src/main/java/com/zcloud/controller/comprehensive/AppTrafficDrivingItemController.java @@ -0,0 +1,180 @@ +package com.zcloud.controller.comprehensive; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.logs.LogAnno; +import com.zcloud.service.comprehensive.TrafficDrivingItemService; +import com.zcloud.service.comprehensive.TrafficDrivingSignService; +import com.zcloud.service.comprehensive.TrafficSecurityWaybillRegistrationService; +import com.zcloud.util.Const; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Jurisdiction; +import com.zcloud.util.Smb; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartRequest; + +import java.util.*; + +@Controller +@RequestMapping("/app/drivingitem") +public class AppTrafficDrivingItemController extends BaseController { + @Autowired + private TrafficDrivingItemService trafficDrivingItemService; + @Autowired + private TrafficDrivingSignService trafficDrivingSignService; + @Autowired + private TrafficSecurityWaybillRegistrationService trafficSecurityWaybillRegistrationService; + @Autowired + private Smb smb; + + + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + @Transactional + public Object add(MultipartRequest request) throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + List fileList = new ArrayList(); + String SIGNTIME[] = pd.getString("SIGNTIME").split(","); + + for (int i = 0; i < SIGNTIME.length; i++) { + fileList.add(request.getFile("file" + i)); + } + pd.put("DRIVING_SIGN_ID", this.get32UUID()); + pd.put("ISDELETE", "0"); //是否删除 + pd.put("CREATORNAME", pd.getString("USER_NAME")); //是否发送短信0不发1发 + pd.put("CREATOR", pd.getString("USER_ID")); //创建人 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //创建时间 + pd.put("OPERATOR", pd.getString("USER_ID")); //操作人 + pd.put("OPERATORNAME", pd.getString("USER_NAME")); //操作人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //操作时间 + pd.put("PRACTITIONER", pd.getString("USER_ID")); //操作时间 + trafficDrivingItemService.save(pd, fileList.toArray(new MultipartFile[fileList.size()])); + + map.put("pd",pd); + map.put("result", errInfo); + return map; + } + + /**修改 + * @param + * @throws Exception + */ + @RequestMapping(value="/edit") + @ResponseBody + public Object edit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //操作人 + pd.put("OPERATORNAME", Jurisdiction.getUsername()); //操作人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //操作时间 + trafficDrivingItemService.edit(pd); + + map.put("pd",pd); + map.put("result", errInfo); + return map; + } + + + + //列表 + @RequestMapping(value = "/listForSafetyDrivingItem") + @ResponseBody + public Object listForSecurityNotice(Page page) throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + + page.setPd(pd); + List varList = trafficDrivingItemService.listForDrivingItem(page); + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + + /** + * 获取排查项类型 + * + * @param + * @throws Exception + */ + @RequestMapping(value = "/getDrivingItem") + @ResponseBody + public Object getRisk() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd = trafficSecurityWaybillRegistrationService.findById(pd); // 根据ID读取 + List varList = trafficDrivingItemService.listAllType(pd); + List vList = trafficDrivingSignService.listByID(pd); + if(vList != null && vList.size()>0){ + if(vList.size()==0){ + pd.put("IsExist",1); + }else if(vList.size()==1){ + pd.put("IsExist",2); + }else{ + pd.put("IsExist",3); + } + }else{ + pd.put("IsExist",0); + } + map.put("pd", pd); + map.put("varList", varList); + map.put("result", errInfo); + return map; + } + + /**删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/delete") + @ResponseBody + public Object delete() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DELETOR", Jurisdiction.getUSER_ID());//删除人id + pd.put("DELETORNAME", Jurisdiction.getUsername());//删除人姓名 + pd.put("DELETETIME", DateUtil.date2Str(new Date()));//删除时间 + trafficDrivingItemService.delete(pd); + map.put("result", errInfo); + return map; + } + + /** + * 查看详情 + * @return + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception { + Map map = new HashMap<>(); + String errInfo = "success"; + PageData pd = this.getPageData(); + pd = trafficDrivingItemService.findById(pd); // 根据ID读取 + map.put("pd", pd); + map.put("result", errInfo); + return map; + } +} diff --git a/src/main/java/com/zcloud/controller/comprehensive/AppTrafficDrivingTypeController.java b/src/main/java/com/zcloud/controller/comprehensive/AppTrafficDrivingTypeController.java new file mode 100644 index 0000000..53fc410 --- /dev/null +++ b/src/main/java/com/zcloud/controller/comprehensive/AppTrafficDrivingTypeController.java @@ -0,0 +1,152 @@ +package com.zcloud.controller.comprehensive; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.service.comprehensive.TrafficDrivingTypeService; +import com.zcloud.util.Const; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Jurisdiction; +import com.zcloud.util.Smb; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.multipart.MultipartFile; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Controller +@RequestMapping("/app/drivingtype") +public class AppTrafficDrivingTypeController extends BaseController { + @Autowired + private TrafficDrivingTypeService trafficDrivingTypeService; + @Autowired + private Smb smb; + + + + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + @Transactional + public Object add() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DRIVINGTYPE_ID", this.get32UUID()); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //主键 + pd.put("ISDELETE", "0"); //是否删除 + pd.put("CREATORNAME", Jurisdiction.getUsername()); //是否发送短信0不发1发 + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //创建人 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //创建时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //操作人 + pd.put("OPERATORNAME", Jurisdiction.getUsername()); //操作人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //操作时间 + trafficDrivingTypeService.save(pd); + + map.put("pd",pd); + map.put("result", errInfo); + return map; + } + + /**修改 + * @param + * @throws Exception + */ + @RequestMapping(value="/edit") + @ResponseBody + public Object edit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //操作人 + pd.put("OPERATORNAME", Jurisdiction.getUsername()); //操作人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //操作时间 + trafficDrivingTypeService.edit(pd); + + map.put("pd",pd); + map.put("result", errInfo); + return map; + } + + + + //列表 + @RequestMapping(value = "/listForSafetyDrivingType") + @ResponseBody + public Object listForSecurityNotice(Page page) throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + + page.setPd(pd); + List varList = trafficDrivingTypeService.listForDrivingType(page); + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + + @RequestMapping("/saveFile") + @ResponseBody + public Object saveFile(@RequestParam(value="file",required=false) MultipartFile file) throws Exception{ + Map map = new HashMap<>(); + String errorInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + String ffile = DateUtil.getDays(); + String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")); + smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile); + map.put("FILE_PATH", Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName); + map.put("result",errorInfo); + return map; + } + + /**删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/delete") + @ResponseBody + public Object delete() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DELETOR", Jurisdiction.getUSER_ID());//删除人id + pd.put("DELETORNAME", Jurisdiction.getUsername());//删除人姓名 + pd.put("DELETETIME", DateUtil.date2Str(new Date()));//删除时间 + trafficDrivingTypeService.delete(pd); + map.put("result", errInfo); + return map; + } + + /** + * 查看详情 + * @return + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception { + Map map = new HashMap<>(); + String errInfo = "success"; + PageData pd = this.getPageData(); + pd = trafficDrivingTypeService.findById(pd); // 根据ID读取 + map.put("pd", pd); + map.put("result", errInfo); + return map; + } +} diff --git a/src/main/java/com/zcloud/controller/comprehensive/AppTrafficSecurityWaybillRegistrationController.java b/src/main/java/com/zcloud/controller/comprehensive/AppTrafficSecurityWaybillRegistrationController.java new file mode 100644 index 0000000..398d907 --- /dev/null +++ b/src/main/java/com/zcloud/controller/comprehensive/AppTrafficSecurityWaybillRegistrationController.java @@ -0,0 +1,120 @@ +package com.zcloud.controller.comprehensive; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.service.comprehensive.TrafficDrivingCommitmentService; +import com.zcloud.service.comprehensive.TrafficSecurityWaybillRegistrationService; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Jurisdiction; +import com.zcloud.util.Tools; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Controller +@RequestMapping("/app/waybillregistration") +public class AppTrafficSecurityWaybillRegistrationController extends BaseController { + + @Autowired + private TrafficSecurityWaybillRegistrationService trafficSecurityWaybillRegistrationService; + @Autowired + private TrafficDrivingCommitmentService trafficDrivingCommitmentService; + + + @RequestMapping(value = "/listForSecurityWaybillre") + @ResponseBody + public Object listForSecurityWaybillRegistra(Page page) throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + + String TITLE = pd.getString("TITLE"); // 关键词检索条件 + if (Tools.notEmpty(TITLE)) + pd.put("TITLE", TITLE.trim()); + + String REPLYSTATUS = pd.getString("REPLYSTATUS"); // 关键词检索条件 + if (Tools.notEmpty(REPLYSTATUS)) + pd.put("REPLYSTATUS", REPLYSTATUS.trim()); + String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件 + if(Tools.notEmpty(KEYWORDS))pd.put("KEYWORDS", KEYWORDS.trim()); + page.setPd(pd); + List varList = trafficSecurityWaybillRegistrationService.listForSecurityWaybill(page); + + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + + @RequestMapping(value = "/forSecurityPerson") + @ResponseBody + public Object forSecurityPerson() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("TRANSPORTATIONCOMPANY", Jurisdiction.getCORPINFO_ID()); + pd = trafficSecurityWaybillRegistrationService.forSecurityPerson(pd); + pd.put("PRACTITIONER", Jurisdiction.getName()); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + /** + * 查看详情 + * @return + * @throws Exception + */ + @RequestMapping(value="/getDetail") + @ResponseBody + public Object goEdit() throws Exception { + Map map = new HashMap<>(); + String errInfo = "success"; + PageData pd = this.getPageData(); + pd = trafficSecurityWaybillRegistrationService.findById(pd); // 根据ID读取 + List commitmentList = trafficDrivingCommitmentService.getDrivingCommitment(pd); + map.put("commitmentList", commitmentList); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + //新增 + @RequestMapping(value = "/add") + @ResponseBody + public Object add() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = this.getPageData(); + String waybillregistrationId = this.get32UUID(); + + pd.put("CREATOR", Jurisdiction.getUSER_ID()); // 创建人id + pd.put("CREATORNAME", Jurisdiction.getName()); // 创建人姓名 + pd.put("TRANSPORTATIONCOMPANY", Jurisdiction.getCORPINFO_ID()); // 运输企业 + pd.put("WAYBILLREGISTRATION_ID", waybillregistrationId); // 主键 + pd.put("CREATETIME", DateUtil.date2Str(new Date())); // 添加时间 + pd.put("WAYBILLNUMBER", this.get32UUID()); // 添加时间 + pd.put("ISDELETE", "0"); + Date shippingDate = DateUtil.str2Date(pd.getString("SHIPPINGDATE")); + if (shippingDate != null && shippingDate.after(new Date())) { + pd.put("WAYBILLSTATUS", "1"); + } else { + pd.put("WAYBILLSTATUS", "0"); + } + + trafficSecurityWaybillRegistrationService.save(pd); + + map.put("result", errInfo); + map.put("pd", pd); + return map; + } +} diff --git a/src/main/java/com/zcloud/controller/comprehensive/TrafficDrivingCommitmentController.java b/src/main/java/com/zcloud/controller/comprehensive/TrafficDrivingCommitmentController.java new file mode 100644 index 0000000..7d466a2 --- /dev/null +++ b/src/main/java/com/zcloud/controller/comprehensive/TrafficDrivingCommitmentController.java @@ -0,0 +1,137 @@ +package com.zcloud.controller.comprehensive; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.logs.LogAnno; +import com.zcloud.service.comprehensive.TrafficDrivingCommitmentService; +import com.zcloud.util.*; +import org.apache.commons.lang.StringUtils; +import org.apache.shiro.SecurityUtils; +import org.apache.shiro.crypto.hash.SimpleHash; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.multipart.MultipartFile; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Controller +@RequestMapping("/drivingcommitment") +public class TrafficDrivingCommitmentController extends BaseController { + @Autowired + private TrafficDrivingCommitmentService trafficDrivingCommitmentService; + + + + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + @Transactional + public Object add() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DRIVINGCOMMITMENT_ID", this.get32UUID()); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //主键 + pd.put("ISDELETE", "0"); //是否删除 + pd.put("INQUIRYCONCLUSION","正常"); + pd.put("CREATORNAME", Jurisdiction.getUsername()); //是否发送短信0不发1发 + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //创建人 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //创建时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //操作人 + pd.put("OPERATORNAME", Jurisdiction.getUsername()); //操作人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //操作时间 + trafficDrivingCommitmentService.save(pd); + + map.put("pd",pd); + map.put("result", errInfo); + return map; + } + + /**修改 + * @param + * @throws Exception + */ + @RequestMapping(value="/edit") + @ResponseBody + public Object edit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //操作人 + pd.put("OPERATORNAME", Jurisdiction.getUsername()); //操作人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //操作时间 + trafficDrivingCommitmentService.edit(pd); + + map.put("pd",pd); + map.put("result", errInfo); + return map; + } + + + + //列表 + @RequestMapping(value = "/listForSafetyDrivingCommitment") + @ResponseBody + public Object listForSecurityNotice(Page page) throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + + page.setPd(pd); + List varList = trafficDrivingCommitmentService.listForDrivingCommitment(page); + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + + /**删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/delete") + @ResponseBody + public Object delete() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DELETOR", Jurisdiction.getUSER_ID());//删除人id + pd.put("DELETORNAME", Jurisdiction.getUsername());//删除人姓名 + pd.put("DELETETIME", DateUtil.date2Str(new Date()));//删除时间 + trafficDrivingCommitmentService.delete(pd); + map.put("result", errInfo); + return map; + } + + /** + * 查看详情 + * @return + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception { + Map map = new HashMap<>(); + String errInfo = "success"; + PageData pd = this.getPageData(); + pd = trafficDrivingCommitmentService.findById(pd); // 根据ID读取 + map.put("pd", pd); + map.put("result", errInfo); + return map; + } +} diff --git a/src/main/java/com/zcloud/controller/comprehensive/TrafficDrivingTypeController.java b/src/main/java/com/zcloud/controller/comprehensive/TrafficDrivingTypeController.java new file mode 100644 index 0000000..8b892bc --- /dev/null +++ b/src/main/java/com/zcloud/controller/comprehensive/TrafficDrivingTypeController.java @@ -0,0 +1,131 @@ +package com.zcloud.controller.comprehensive; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.service.comprehensive.TrafficDrivingTypeService; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Jurisdiction; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Controller +@RequestMapping("/drivingtype") +public class TrafficDrivingTypeController extends BaseController { + @Autowired + private TrafficDrivingTypeService trafficDrivingTypeService; + + + + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + @Transactional + public Object add() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DRIVINGTYPE_ID", this.get32UUID()); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //主键 + pd.put("ISDELETE", "0"); //是否删除 + pd.put("CREATORNAME", Jurisdiction.getUsername()); //是否发送短信0不发1发 + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //创建人 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //创建时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //操作人 + pd.put("OPERATORNAME", Jurisdiction.getUsername()); //操作人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //操作时间 + trafficDrivingTypeService.save(pd); + + map.put("pd",pd); + map.put("result", errInfo); + return map; + } + + /**修改 + * @param + * @throws Exception + */ + @RequestMapping(value="/edit") + @ResponseBody + public Object edit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //操作人 + pd.put("OPERATORNAME", Jurisdiction.getUsername()); //操作人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //操作时间 + trafficDrivingTypeService.edit(pd); + + map.put("pd",pd); + map.put("result", errInfo); + return map; + } + + + + //列表 + @RequestMapping(value = "/listForSafetyDrivingType") + @ResponseBody + public Object listForSecurityNotice(Page page) throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + + page.setPd(pd); + List varList = trafficDrivingTypeService.listForDrivingType(page); + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + + /**删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/delete") + @ResponseBody + public Object delete() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DELETOR", Jurisdiction.getUSER_ID());//删除人id + pd.put("DELETORNAME", Jurisdiction.getUsername());//删除人姓名 + pd.put("DELETETIME", DateUtil.date2Str(new Date()));//删除时间 + trafficDrivingTypeService.delete(pd); + map.put("result", errInfo); + return map; + } + + /** + * 查看详情 + * @return + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception { + Map map = new HashMap<>(); + String errInfo = "success"; + PageData pd = this.getPageData(); + pd = trafficDrivingTypeService.findById(pd); // 根据ID读取 + map.put("pd", pd); + map.put("result", errInfo); + return map; + } +} diff --git a/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingCommitmentMapper.java b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingCommitmentMapper.java new file mode 100644 index 0000000..d5906b9 --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingCommitmentMapper.java @@ -0,0 +1,44 @@ +package com.zcloud.mapper.datasource.comprehensive; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +@Mapper +public interface TrafficDrivingCommitmentMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + /** + * 列表 + * @param page + * @return + */ + List datalistPage(Page page); + + List getDrivingCommitment(PageData pd); + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); +} diff --git a/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingItemMapper.java b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingItemMapper.java new file mode 100644 index 0000000..dbba01d --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingItemMapper.java @@ -0,0 +1,44 @@ +package com.zcloud.mapper.datasource.comprehensive; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +@Mapper +public interface TrafficDrivingItemMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + List listAllType(PageData pd); + + /** + * 列表 + * @param page + * @return + */ + List datalistPage(Page page); + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); +} diff --git a/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingSignMapper.java b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingSignMapper.java new file mode 100644 index 0000000..7027d5c --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingSignMapper.java @@ -0,0 +1,47 @@ +package com.zcloud.mapper.datasource.comprehensive; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +@Mapper +public interface TrafficDrivingSignMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + + List listByID(PageData pd); + + List listAllType(PageData pd); + + /** + * 列表 + * @param page + * @return + */ + List datalistPage(Page page); + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); +} diff --git a/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingTypeMapper.java b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingTypeMapper.java new file mode 100644 index 0000000..911fe4d --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingTypeMapper.java @@ -0,0 +1,43 @@ +package com.zcloud.mapper.datasource.comprehensive; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +@Mapper +public interface TrafficDrivingTypeMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + + /** + * 列表 + * @param page + * @return + */ + List datalistPage(Page page); + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); +} diff --git a/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.java b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.java index 0c4b5fe..d6e4c3d 100644 --- a/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.java +++ b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.java @@ -18,5 +18,13 @@ public interface TrafficSecurityWaybillRegistrationMapper { void save(PageData pd); + void editStatus(PageData pd); + PageData forSecurityPerson(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); } diff --git a/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingCommitmentService.java b/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingCommitmentService.java new file mode 100644 index 0000000..04c32aa --- /dev/null +++ b/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingCommitmentService.java @@ -0,0 +1,28 @@ +package com.zcloud.service.comprehensive; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface TrafficDrivingCommitmentService { + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + List listForDrivingCommitment(Page page); + + List getDrivingCommitment(PageData pd); + + void delete(PageData pd); + + PageData findById(PageData pd); +} diff --git a/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingItemService.java b/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingItemService.java new file mode 100644 index 0000000..98200f3 --- /dev/null +++ b/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingItemService.java @@ -0,0 +1,34 @@ +package com.zcloud.service.comprehensive; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import org.springframework.web.multipart.MultipartFile; + +import java.util.List; + +public interface TrafficDrivingItemService { + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd, MultipartFile[] files)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**排查项类型 + * @param pd + * @throws Exception + */ + public List listAllType(PageData pd)throws Exception; + + + List listForDrivingItem(Page page); + + void delete(PageData pd); + + PageData findById(PageData pd) throws Exception; +} diff --git a/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingSignService.java b/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingSignService.java new file mode 100644 index 0000000..1aa2704 --- /dev/null +++ b/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingSignService.java @@ -0,0 +1,34 @@ +package com.zcloud.service.comprehensive; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import org.springframework.web.multipart.MultipartFile; + +import java.util.List; + +public interface TrafficDrivingSignService { + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd, MultipartFile[] files)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**排查项类型 + * @param pd + * @throws Exception + */ + public List listByID(PageData pd)throws Exception; + + + List listForDrivingItem(Page page); + + void delete(PageData pd); + + PageData findById(PageData pd) throws Exception; +} diff --git a/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingTypeService.java b/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingTypeService.java new file mode 100644 index 0000000..3431655 --- /dev/null +++ b/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingTypeService.java @@ -0,0 +1,28 @@ +package com.zcloud.service.comprehensive; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import org.springframework.web.multipart.MultipartFile; + +import java.util.List; + +public interface TrafficDrivingTypeService { + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + + List listForDrivingType(Page page); + + void delete(PageData pd); + + PageData findById(PageData pd) throws Exception; +} diff --git a/src/main/java/com/zcloud/service/comprehensive/TrafficSecurityWaybillRegistrationService.java b/src/main/java/com/zcloud/service/comprehensive/TrafficSecurityWaybillRegistrationService.java index f145a3f..bec3643 100644 --- a/src/main/java/com/zcloud/service/comprehensive/TrafficSecurityWaybillRegistrationService.java +++ b/src/main/java/com/zcloud/service/comprehensive/TrafficSecurityWaybillRegistrationService.java @@ -11,4 +11,6 @@ public interface TrafficSecurityWaybillRegistrationService { void save(PageData pd); PageData forSecurityPerson(PageData pd); + + PageData findById(PageData pd); } diff --git a/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingCommitmentServiceImpl.java b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingCommitmentServiceImpl.java new file mode 100644 index 0000000..1efc04e --- /dev/null +++ b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingCommitmentServiceImpl.java @@ -0,0 +1,62 @@ +package com.zcloud.service.comprehensive.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.comprehensive.TrafficDrivingCommitmentMapper; +import com.zcloud.service.comprehensive.TrafficDrivingCommitmentService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class TrafficDrivingCommitmentServiceImpl implements TrafficDrivingCommitmentService { + + @Autowired + private TrafficDrivingCommitmentMapper trafficDrivingCommitmentMapper; + + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + trafficDrivingCommitmentMapper.save(pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + trafficDrivingCommitmentMapper.edit(pd); + } + + /** + * 列表 + * @param page + * @return + */ + @Override + public List listForDrivingCommitment(Page page) { + return trafficDrivingCommitmentMapper.datalistPage(page); + } + + public List getDrivingCommitment(PageData pd) { + return trafficDrivingCommitmentMapper.getDrivingCommitment(pd); + } + + /** + * 删除 + * @param pd + */ + @Override + public void delete(PageData pd) { + trafficDrivingCommitmentMapper.delete(pd); + } + + @Override + public PageData findById(PageData pd) { + return trafficDrivingCommitmentMapper.findById(pd); + } +} diff --git a/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingItemServiceImpl.java b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingItemServiceImpl.java new file mode 100644 index 0000000..2730d1a --- /dev/null +++ b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingItemServiceImpl.java @@ -0,0 +1,107 @@ +package com.zcloud.service.comprehensive.impl; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.comprehensive.TrafficDrivingItemMapper; +import com.zcloud.mapper.datasource.comprehensive.TrafficDrivingSignMapper; +import com.zcloud.mapper.datasource.comprehensive.TrafficSecurityWaybillRegistrationMapper; +import com.zcloud.service.comprehensive.TrafficDrivingItemService; +import com.zcloud.util.Const; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Smb; +import com.zcloud.util.UuidUtil; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.web.multipart.MultipartFile; + +import java.util.ArrayList; +import java.util.List; + +@Service +public class TrafficDrivingItemServiceImpl implements TrafficDrivingItemService { + + @Autowired + private TrafficDrivingItemMapper trafficDrivingItemMapper; + @Autowired + private TrafficDrivingSignMapper trafficDrivingSignMapper; + @Autowired + private com.zcloud.mapper.datasource.comprehensive.TrafficSecurityWaybillRegistrationMapper TrafficSecurityWaybillRegistrationMapper; + @Autowired + private Smb smb; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd, MultipartFile[] files)throws Exception{ + List filePaths = new ArrayList<>(); + for (int i = 0; i < files.length; i++) { + //保存签名文件 + String ffile = DateUtil.getDays(); + String fileName = UuidUtil.get32UUID() + files[i].getOriginalFilename().substring(files[i].getOriginalFilename().lastIndexOf(".")); + smb.sshSftp(files[i], fileName, Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile); + filePaths.add(Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName); + } + pd.put("SIGN_TIME", pd.getString("SIGNTIME")); + pd.put("SIGN_PATH", String.join(",",filePaths)); + trafficDrivingSignMapper.save(pd); + TrafficSecurityWaybillRegistrationMapper.editStatus(pd); + if (pd.get("checklist") != null && !pd.get("checklist").equals("")) { //安全措施确认步骤 + List list = (List) JSON.parse(pd.get("checklist").toString()); + for (JSONObject json : list) { + PageData checklist = new PageData(); + checklist.put("DRIVING_SIGN_ID",pd.get("DRIVING_SIGN_ID")); + checklist.put("DRIVINGTYPE_ID",json.get("DRIVINGTYPE_ID")); + checklist.put("REMARK", json.get("REMARK")); + checklist.put("STATUS", json.get("ISNORMAL")); + checklist.put("OPERATTIME", json.get("OPERATTIME")); + checklist.put("OPERATORNAME", json.get("OPERATORNAME")); + checklist.put("OPERATOR", json.get("OPERATOR")); + checklist.put("ISDELETE", json.get("ISDELETE")); + checklist.put("DRIVING_ITEM_ID", UuidUtil.get32UUID()); + trafficDrivingItemMapper.save(checklist); + } + } + } + + + public List listAllType(PageData pd)throws Exception{ + return trafficDrivingItemMapper.listAllType(pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + trafficDrivingItemMapper.edit(pd); + } + + /** + * 列表 + * @param page + * @return + */ + @Override + public List listForDrivingItem(Page page) { + return trafficDrivingItemMapper.datalistPage(page); + } + + /** + * 删除 + * @param pd + */ + @Override + public void delete(PageData pd) { + trafficDrivingItemMapper.delete(pd); + } + + + @Override + public PageData findById(PageData pd) throws Exception { + PageData pageData = trafficDrivingItemMapper.findById(pd); + return pageData; + } +} diff --git a/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingSignServiceImpl.java b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingSignServiceImpl.java new file mode 100644 index 0000000..34fbd85 --- /dev/null +++ b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingSignServiceImpl.java @@ -0,0 +1,65 @@ +package com.zcloud.service.comprehensive.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.comprehensive.TrafficDrivingSignMapper; +import com.zcloud.service.comprehensive.TrafficDrivingSignService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.web.multipart.MultipartFile; + +import java.util.List; + +@Service +public class TrafficDrivingSignServiceImpl implements TrafficDrivingSignService { + + @Autowired + private TrafficDrivingSignMapper trafficDrivingSignMapper; + + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + trafficDrivingSignMapper.save(pd); + } + + @Override + public void save(PageData pd, MultipartFile[] files) throws Exception { + + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + trafficDrivingSignMapper.edit(pd); + } + + + @Override + public List listByID(PageData pd) throws Exception{ + return trafficDrivingSignMapper.listByID(pd); + } + + @Override + public List listForDrivingItem(Page page) { + return null; + } + + /** + * 删除 + * @param pd + */ + @Override + public void delete(PageData pd) { + trafficDrivingSignMapper.delete(pd); + } + + @Override + public PageData findById(PageData pd) { + return trafficDrivingSignMapper.findById(pd); + } +} diff --git a/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingTypeServiceImpl.java b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingTypeServiceImpl.java new file mode 100644 index 0000000..2969d03 --- /dev/null +++ b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingTypeServiceImpl.java @@ -0,0 +1,58 @@ +package com.zcloud.service.comprehensive.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.comprehensive.TrafficDrivingTypeMapper; +import com.zcloud.service.comprehensive.TrafficDrivingTypeService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class TrafficDrivingTypeServiceImpl implements TrafficDrivingTypeService { + + @Autowired + private TrafficDrivingTypeMapper trafficDrivingTypeMapper; + + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + trafficDrivingTypeMapper.save(pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + trafficDrivingTypeMapper.edit(pd); + } + + /** + * 列表 + * @param page + * @return + */ + @Override + public List listForDrivingType(Page page) { + return trafficDrivingTypeMapper.datalistPage(page); + } + + /** + * 删除 + * @param pd + */ + @Override + public void delete(PageData pd) { + trafficDrivingTypeMapper.delete(pd); + } + + @Override + public PageData findById(PageData pd) { + return trafficDrivingTypeMapper.findById(pd); + } +} diff --git a/src/main/java/com/zcloud/service/comprehensive/impl/TrafficSecurityWaybillRegistrationServiceImpl.java b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficSecurityWaybillRegistrationServiceImpl.java index 4b8d04d..ee6f8ae 100644 --- a/src/main/java/com/zcloud/service/comprehensive/impl/TrafficSecurityWaybillRegistrationServiceImpl.java +++ b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficSecurityWaybillRegistrationServiceImpl.java @@ -28,4 +28,8 @@ public class TrafficSecurityWaybillRegistrationServiceImpl implements TrafficSec public PageData forSecurityPerson(PageData pd) { return TrafficSecurityWaybillRegistrationMapper.forSecurityPerson(pd); } + @Override + public PageData findById(PageData pd) { + return TrafficSecurityWaybillRegistrationMapper.findById(pd); + } } diff --git a/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingCommitmentMapper.xml b/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingCommitmentMapper.xml new file mode 100644 index 0000000..c462ffd --- /dev/null +++ b/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingCommitmentMapper.xml @@ -0,0 +1,138 @@ + + + + + + BUS_TRAFFIC_DRIVING_COMMITMENT + + + + + SYS_DICTIONARIES + + + + + f.DRIVINGCOMMITMENT_ID, + f.INQUIRYCONTENT, + f.INQUIRYCONCLUSION, + f.CORPINFO_ID, + f.ISDELETE, + f.DELETOR, + f.DELETORNAME, + f.DELETETIME, + f.CREATOR, + f.CREATORNAME, + f.CREATTIME, + f.OPERATOR, + f.OPERATORNAME, + f.OPERATTIME + + + + + DRIVINGCOMMITMENT_ID, + INQUIRYCONTENT, + INQUIRYCONCLUSION, + CORPINFO_ID, + ISDELETE, + DELETOR, + DELETORNAME, + DELETETIME, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME + + + + + #{DRIVINGCOMMITMENT_ID}, + #{INQUIRYCONTENT}, + #{INQUIRYCONCLUSION}, + #{CORPINFO_ID}, + #{ISDELETE}, + #{DELETOR}, + #{DELETORNAME}, + #{DELETETIME}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME} + + + + + insert into + + ( + + ) values ( + + ) + + + + update + + set + INQUIRYCONTENT = #{INQUIRYCONTENT}, + INQUIRYCONCLUSION = #{INQUIRYCONCLUSION}, + OPERATORNAME = #{OPERATORNAME}, + OPERATOR = #{OPERATOR}, + OPERATTIME = #{OPERATTIME} + where + DRIVINGCOMMITMENT_ID = #{DRIVINGCOMMITMENT_ID} + + + + + + + + + + + + update + + set + ISDELETE = '1', + DELETOR = #{DELETOR}, + DELETETIME = #{DELETETIME} + where + DRIVINGCOMMITMENT_ID = #{DRIVINGCOMMITMENT_ID} + + diff --git a/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingItemMapper.xml b/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingItemMapper.xml new file mode 100644 index 0000000..9ea1620 --- /dev/null +++ b/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingItemMapper.xml @@ -0,0 +1,143 @@ + + + + + + BUS_TRAFFIC_DRIVING_ITEM + + + + + SYS_DICTIONARIES + + + + + f.DRIVING_ITEM_ID, + f.DRIVINGTYPE_ID, + f.DRIVING_SIGN_ID, + f.STATUS, + f.REMARK, + f.ISDELETE, + f.DELETOR, + f.DELETORNAME, + f.DELETETIME, + f.CREATOR, + f.CREATORNAME, + f.CREATTIME, + f.OPERATOR, + f.OPERATORNAME, + f.OPERATTIME + + + + + DRIVING_ITEM_ID, + DRIVINGTYPE_ID, + DRIVING_SIGN_ID, + STATUS, + REMARK, + ISDELETE, + DELETOR, + DELETORNAME, + DELETETIME, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME + + + + + #{DRIVING_ITEM_ID}, + #{DRIVINGTYPE_ID}, + #{DRIVING_SIGN_ID}, + #{STATUS}, + #{REMARK}, + #{ISDELETE}, + #{DELETOR}, + #{DELETORNAME}, + #{DELETETIME}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME} + + + + + insert into + + ( + + ) values ( + + ) + + + + update + + set + DRIVING_ITEM_ID = #{DRIVING_ITEM_ID}, + DRIVINGTYPE_ID = #{DRIVINGTYPE_ID}, + DRIVING_SIGN_ID = #{DRIVING_SIGN_ID}, + STATUS = #{STATUS}, + REMARK = #{REMARK}, + OPERATORNAME = #{OPERATORNAME}, + OPERATOR = #{OPERATOR}, + OPERATTIME = #{OPERATTIME} + where + DRIVING_ITEM_ID = #{DRIVING_ITEM_ID} + + + + + + + + + + + + update + + set + ISDELETE = '1', + DELETOR = #{DELETOR}, + DELETORNAME = #{DELETORNAME}, + DELETETIME = #{DELETETIME} + where + DRIVING_ITEM_ID = #{DRIVING_ITEM_ID} + + diff --git a/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingSignMapper.xml b/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingSignMapper.xml new file mode 100644 index 0000000..d49d5c5 --- /dev/null +++ b/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingSignMapper.xml @@ -0,0 +1,165 @@ + + + + + + BUS_TRAFFIC_DRIVING_SIGN + + + + + SYS_DICTIONARIES + + + + + f.DRIVING_SIGN_ID, + f.IMG_PATH, + f.CORPINFO_ID, + f.SIGN_TIME, + f.SIGN_PATH, + f.ISDELETE, + f.DELETOR, + f.DELETORNAME, + f.DELETETIME, + f.CREATOR, + f.CREATORNAME, + f.CREATTIME, + f.OPERATOR, + f.OPERATORNAME, + f.OPERATTIME, + f.PRACTITIONER, + f.WAYBILLREGISTRATION_ID, + f.CHECKTYPE_ID + + + + + DRIVING_SIGN_ID, + IMG_PATH, + CORPINFO_ID, + SIGN_TIME, + SIGN_PATH, + ISDELETE, + DELETOR, + DELETORNAME, + DELETETIME, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME, + PRACTITIONER, + WAYBILLREGISTRATION_ID, + CHECKTYPE_ID + + + + + #{DRIVING_SIGN_ID}, + #{IMG_PATH}, + #{CORPINFO_ID}, + #{SIGN_TIME}, + #{SIGN_PATH}, + #{ISDELETE}, + #{DELETOR}, + #{DELETORNAME}, + #{DELETETIME}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME}, + #{PRACTITIONER}, + #{WAYBILLREGISTRATION_ID}, + #{CHECKTYPE_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + update + + set + DRIVING_SIGN_ID = #{DRIVING_SIGN_ID}, + PRACTITIONER = #{PRACTITIONER}, + IMG_PATH = #{IMG_PATH}, + CORPINFO_ID = #{CORPINFO_ID}, + SIGN_TIME = #{SIGN_TIME}, + SIGN_PATH = #{SIGN_PATH}, + OPERATORNAME = #{OPERATORNAME}, + OPERATOR = #{OPERATOR}, + OPERATTIME = #{OPERATTIME}, + WAYBILLREGISTRATION_ID = #{WAYBILLREGISTRATION_ID}, + CHECKTYPE_ID = #{CHECKTYPE_ID} + where + DRIVING_SIGN_ID = #{DRIVING_SIGN_ID} + + + + + + + + + + + + + + update + + set + ISDELETE = '1', + DELETOR = #{DELETOR}, + DELETORNAME = #{DELETORNAME}, + DELETETIME = #{DELETETIME} + where + DRIVING_SIGN_ID = #{DRIVING_SIGN_ID} + + diff --git a/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingTypeMapper.xml b/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingTypeMapper.xml new file mode 100644 index 0000000..35d3341 --- /dev/null +++ b/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingTypeMapper.xml @@ -0,0 +1,136 @@ + + + + + + BUS_TRAFFIC_DRIVING_TYPE + + + + + SYS_DICTIONARIES + + + + + f.DRIVINGTYPE_ID, + f.CHECKTYPE_ID, + f.CHECKITEMNAME, + f.REMARKS, + f.CORPINFO_ID, + f.ISDELETE, + f.DELETOR, + f.DELETORNAME, + f.DELETETIME, + f.CREATOR, + f.CREATORNAME, + f.CREATTIME, + f.OPERATOR, + f.OPERATORNAME, + f.OPERATTIME + + + + + DRIVINGTYPE_ID, + CHECKTYPE_ID, + CHECKITEMNAME, + REMARKS, + CORPINFO_ID, + ISDELETE, + DELETOR, + DELETORNAME, + DELETETIME, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME + + + + + #{DRIVINGTYPE_ID}, + #{CHECKTYPE_ID}, + #{CHECKITEMNAME}, + #{REMARKS}, + #{CORPINFO_ID}, + #{ISDELETE}, + #{DELETOR}, + #{DELETORNAME}, + #{DELETETIME}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME} + + + + + insert into + + ( + + ) values ( + + ) + + + + update + + set + DRIVINGTYPE_ID = #{DRIVINGTYPE_ID}, + CHECKTYPE_ID = #{CHECKTYPE_ID}, + CHECKITEMNAME = #{CHECKITEMNAME}, + REMARKS = #{REMARKS}, + CORPINFO_ID = #{CORPINFO_ID}, + OPERATORNAME = #{OPERATORNAME}, + OPERATOR = #{OPERATOR}, + OPERATTIME = #{OPERATTIME} + where + DRIVINGTYPE_ID = #{DRIVINGTYPE_ID} + + + + + + + + + + update + + set + ISDELETE = '1', + DELETOR = #{DELETOR}, + DELETORNAME = #{DELETORNAME}, + DELETETIME = #{DELETETIME} + where + DRIVINGTYPE_ID = #{DRIVINGTYPE_ID} + + diff --git a/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.xml b/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.xml index ee13e92..f11297d 100644 --- a/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.xml +++ b/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.xml @@ -132,14 +132,26 @@ ) + + update + + set + WAYBILLSTATUS = #{WAYBILLSTATUS} + where + WAYBILLREGISTRATION_ID = #{WAYBILLREGISTRATION_ID} + + select + + from + f + where + f.WAYBILLREGISTRATION_ID = #{WAYBILLREGISTRATION_ID} + +