From 05ff67e6fd665894a980a22e1bea417385d3320a Mon Sep 17 00:00:00 2001 From: xiepeng Date: Tue, 19 Mar 2024 14:02:24 +0800 Subject: [PATCH] =?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}