From 5ecf9c56c91bc74fd528ff0519d37b3a2c48df03 Mon Sep 17 00:00:00 2001 From: zhangyanli Date: Tue, 30 Jan 2024 16:00:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E6=82=A3=E6=8E=92=E6=9F=A5=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...enDangerCheckStandardCommonController.java | 55 + ...enDangerCheckStandardCustomController.java | 996 ++++++++++++++++++ ...ngerCheckStandardDictionaryController.java | 50 + ...HiddenDangerCheckStandardCommonMapper.java | 22 + ...enDangerCheckStandardCustomItemMapper.java | 19 + ...HiddenDangerCheckStandardCustomMapper.java | 230 ++++ ...enDangerCheckStandardDictionaryMapper.java | 21 + .../ListCheckStandardItemMapper.java | 85 ++ ...iddenDangerCheckStandardCommonService.java | 23 + ...nDangerCheckStandardCustomItemService.java | 21 + ...iddenDangerCheckStandardCustomService.java | 28 + ...nDangerCheckStandardDictionaryService.java | 21 + .../ListcheckstandarditemService.java | 25 + ...nDangerCheckStandardCommonServiceImpl.java | 35 + ...gerCheckStandardCustomItemServiceImpl.java | 34 + ...nDangerCheckStandardCustomServiceImpl.java | 43 + ...gerCheckStandardDictionaryServiceImpl.java | 34 + .../ListcheckstandarditemServiceImpl.java | 43 + .../HiddenDangerCheckStandardCommonMapper.xml | 114 ++ ...denDangerCheckStandardCustomItemMapper.xml | 110 ++ .../HiddenDangerCheckStandardCustomMapper.xml | 132 +++ ...denDangerCheckStandardDictionaryMapper.xml | 93 ++ .../ListCheckStandardItemMapper.xml | 261 +++++ 23 files changed, 2495 insertions(+) create mode 100644 src/main/java/com/zcloud/controller/hiddenDangerCheckStandardCustom/hiddenDangerCheckStandardCommonController.java create mode 100644 src/main/java/com/zcloud/controller/hiddenDangerCheckStandardCustom/hiddenDangerCheckStandardCustomController.java create mode 100644 src/main/java/com/zcloud/controller/hiddenDangerCheckStandardCustom/hiddenDangerCheckStandardDictionaryController.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCommonMapper.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomItemMapper.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomMapper.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardDictionaryMapper.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/ListCheckStandardItemMapper.java create mode 100644 src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCommonService.java create mode 100644 src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomItemService.java create mode 100644 src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomService.java create mode 100644 src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardDictionaryService.java create mode 100644 src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/ListcheckstandarditemService.java create mode 100644 src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/HiddenDangerCheckStandardCommonServiceImpl.java create mode 100644 src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/HiddenDangerCheckStandardCustomItemServiceImpl.java create mode 100644 src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/HiddenDangerCheckStandardCustomServiceImpl.java create mode 100644 src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/HiddenDangerCheckStandardDictionaryServiceImpl.java create mode 100644 src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/ListcheckstandarditemServiceImpl.java create mode 100644 src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCommonMapper.xml create mode 100644 src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomItemMapper.xml create mode 100644 src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomMapper.xml create mode 100644 src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardDictionaryMapper.xml create mode 100644 src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/ListCheckStandardItemMapper.xml diff --git a/src/main/java/com/zcloud/controller/hiddenDangerCheckStandardCustom/hiddenDangerCheckStandardCommonController.java b/src/main/java/com/zcloud/controller/hiddenDangerCheckStandardCustom/hiddenDangerCheckStandardCommonController.java new file mode 100644 index 0000000..f126e6c --- /dev/null +++ b/src/main/java/com/zcloud/controller/hiddenDangerCheckStandardCustom/hiddenDangerCheckStandardCommonController.java @@ -0,0 +1,55 @@ +package com.zcloud.controller.hiddenDangerCheckStandardCustom; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.service.corp.CorpInfoService; +import com.zcloud.service.hiddenDangerCheckStandardCustom.HiddenDangerCheckStandardCommonService; +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.*; + +/** + * 说明:清单管理-隐患排查清单 + * 作者:luoxiaobao + * 时间:2020-12-30 + * 官网:www.zcloudchina.com + */ +@Controller +@RequestMapping("/hiddenstandardCommon") +public class hiddenDangerCheckStandardCommonController extends BaseController { + + @Autowired + private HiddenDangerCheckStandardCommonService hiddenstandardCommonService; + @Autowired + private CorpInfoService corpinfoService; + + /**列表 + * @param page + * @throws Exception + */ + @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()); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业 + pd = corpinfoService.findById(pd); //根据ID读取 + page.setPd(pd); + List varList = hiddenstandardCommonService.list(page); //列出RiskCheckItem列表 + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + +} diff --git a/src/main/java/com/zcloud/controller/hiddenDangerCheckStandardCustom/hiddenDangerCheckStandardCustomController.java b/src/main/java/com/zcloud/controller/hiddenDangerCheckStandardCustom/hiddenDangerCheckStandardCustomController.java new file mode 100644 index 0000000..8934bef --- /dev/null +++ b/src/main/java/com/zcloud/controller/hiddenDangerCheckStandardCustom/hiddenDangerCheckStandardCustomController.java @@ -0,0 +1,996 @@ +package com.zcloud.controller.hiddenDangerCheckStandardCustom; + +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.check.*; +import com.zcloud.service.hiddenDangerCheckStandardCustom.HiddenDangerCheckStandardCustomItemService; +import com.zcloud.service.hiddenDangerCheckStandardCustom.HiddenDangerCheckStandardCustomService; +import com.zcloud.service.offduty.OffDutyService; +import com.zcloud.service.risk.IdentificationPartsService; +import com.zcloud.service.risk.RiskPointService; +import com.zcloud.service.statistics.ListStatisticsService; +import com.zcloud.service.system.DepartmentService; +import com.zcloud.service.system.UsersService; +import com.zcloud.util.*; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.*; + +/** + * 说明:清单管理-隐患排查清单 + * 作者:luoxiaobao + * 时间:2020-12-30 + * 官网:www.zcloudchina.com + */ +@Controller +@RequestMapping("/hiddenstandardCustom") +public class hiddenDangerCheckStandardCustomController extends BaseController { + + @Autowired + private HiddenDangerCheckStandardCustomService hiddenstandardCustomService; + @Autowired + private HiddenDangerCheckStandardCustomItemService hiddenstandardCustomItemService; + @Autowired + private ListCheckItemService listcheckitemService; + @Autowired + private DepartmentService departmentService; + @Autowired + private CheckRecordService checkrecordService; + @Autowired + private RecordItemService recordItemService; + @Autowired + private RiskPointService riskpointService; + @Autowired + private ListStatisticsService listStatisticsService; + @Autowired + private IdentificationPartsService identificationPartsService; + @Autowired + private ListDisableTimeService listdisabletimeService; + @Autowired + private CheckRouteService checkRouteService; + @Autowired + private UsersService usersService; + @Autowired + private OffDutyService offdutyService; + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + @Transactional + @LogAnno(menuType= "双重预防",menuServer= "隐患排查",instructionsOperate = "清单管理",instructionsType = "新增") + public Object add() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("CUSTOM_ID", this.get32UUID()); + Warden.initDate(pd); + hiddenstandardCustomService.save(pd); + PageData itempd = new PageData(); + itempd.putAll(pd); + itempd.put("CUSTOM_ITEM_ID", this.get32UUID()); + hiddenstandardCustomItemService.save(itempd); + map.put("result", errInfo); + return map; + } + + /**列表 + * @param page + * @throws Exception + */ + @RequestMapping(value="/list") + @ResponseBody + @LogAnno(menuType= "双重预防",menuServer= "隐患排查",instructionsOperate = "清单管理",instructionsType = "列表") + public Object list(Page page) throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + PageData npd = new PageData(); + pd = this.getPageData(); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件 + if(Tools.notEmpty(KEYWORDS))npd.put("KEYWORDS", KEYWORDS.trim()); + List varList = hiddenstandardCustomService.listAll(pd); + map.put("varList", varList); + map.put("result", errInfo); + return map; + } + +// /**列表 +// * @param page +// * @throws Exception +// */ +// @RequestMapping(value="/checkList") +// @ResponseBody +// @LogAnno(menuType= "双重预防",menuServer= "隐患排查",instructionsOperate = "清单排查",instructionsType = "列表") +// public Object checkList(Page page) throws Exception{ +// Map map = new HashMap(); +// String errInfo = "success"; +// PageData pd = new PageData(); +// pd = this.getPageData(); +// PageData isRest = this.getPageData(); +// isRest.put("ISREST", "1"); +// isRest.put("USER_ID", Jurisdiction.getUSER_ID()); +// isRest.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); +// List restList = offdutyService.listAll(isRest); +// if(restList != null && restList.size() > 0) { +// // 休假中 +// map.put("ISREST", "1"); +// } else { +// // 正常工作 +// map.put("ISREST", "0"); +// } +// PageData npd = new PageData(); +// npd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业 +//// pd.put("POST_ID", Jurisdiction.getPOST_ID()); //岗位 +// pd.put("USER_ID", Jurisdiction.getUSER_ID()); +// String indexType = pd.getString("indexType"); //关键词检索条件 +// if(Tools.notEmpty(indexType))pd.put("indexType", indexType.trim()); +// if("1".equals(indexType)) { +// npd.put("STATUS", "0"); +// String DEPARTMENT_ID = Jurisdiction.getDEPARTMENT_ID(); +// npd.put("DEPARTMENT_ID", DEPARTMENT_ID); +// } else if("2".equals(indexType)) { +// +// npd.put("STATUS", "1"); +// String DEPARTMENT_ID = Jurisdiction.getDEPARTMENT_ID(); +// npd.put("DEPARTMENT_ID", DEPARTMENT_ID); +// } else { +// String DEPARTMENT_ID = Jurisdiction.getDEPARTMENT_ID(); +// String ids = departmentService.getDEPARTMENT_IDS(DEPARTMENT_ID); +// if(Jurisdiction.getIS_MAIN().equals("0")) { +// if(ids!=null && Tools.notEmpty(ids) && ids.lastIndexOf(",")>-1 ) { +// ids = ids.substring(0,ids.lastIndexOf(",")); +// npd.put("DEPARTMENT_IDS", ids.split(",")); +// }else { +// npd.put("DEPARTMENT_ID", DEPARTMENT_ID); +// } +// } +// } +// +// npd.put("orderUserId", Jurisdiction.getUSER_ID()); +// String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件 +// if(Tools.notEmpty(KEYWORDS))npd.put("KEYWORDS", KEYWORDS.trim()); +// String USERNAME = pd.getString("USERNAME"); //关键词检索条件 +// if(Tools.notEmpty(USERNAME))npd.put("USERNAME", USERNAME.trim()); +// npd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); +// npd.put("ISMAIN", Jurisdiction.getIS_MAIN()); +// npd.put("ISSUPERVISE", Jurisdiction.getISSUPERVISE()); +// npd.put("DEPARTMENT_ID", Jurisdiction.getDEPARTMENT_ID()); +// PageData cpd = new PageData(); +// cpd = usersService.findById(pd); +// npd.put("ISLEADER", cpd.getString("ISLEADER")); +// if(cpd.getString("ISLEADER") != null && cpd.getString("ISLEADER").equals("1")){ +// String DEPARTMENT_ID = npd.getString("DEPARTMENT_ID"); +// String ids = departmentService.getDEPARTMENT_IDS(DEPARTMENT_ID); +// ids=npd.getString("DEPARTMENT_ID")+","+ids; //把自己部门插入进去 +// if(ids!=null && Tools.notEmpty(ids)&& ids.lastIndexOf(",")>-1) { +// ids = ids.substring(0,ids.lastIndexOf(",")); +// npd.put("DEPARTMENT_IDS", ids.split(",")); +// }else { +// npd.put("DEPARTMENT_IDS", DEPARTMENT_ID); +// } +// }else{ +// if(npd.getString("ISMAIN").equals("0")){ +// npd.put("USER_ID",Jurisdiction.getUSER_ID()); +// } +// } +// String DEPTIDS = pd.getString("DEPTIDS"); +// if(Tools.notEmpty(DEPTIDS)) { +// String DEPT_IDS[] = DEPTIDS.split(","); +// npd.put("DEPT_IDS", DEPT_IDS); +// } +// npd.put("PERIOD",pd.getString("PERIOD")); +// npd.put("STATUS",pd.getString("STATUS")); +// npd.put("LISTINGLEVEL",pd.getString("LISTINGLEVEL")); +// page.setPd(npd); +// List varList = listmanagerService.checklistPage(page); //列出ListManager列表 +// for (PageData list : varList) { +// String userId= list.getString("USER_ID"); +// if(userId.equals(Jurisdiction.getUSER_ID())) { +// list.put("stateMy", "0"); +// }else { +// list.put("stateMy", "1"); +// } +// +// } +// map.put("varList", varList); +// map.put("page", page); +// map.put("result", errInfo); +// return map; +// } + +// /**列表 +// * @param page +// * @throws Exception +// */ +// @RequestMapping(value="/recordList") +// @ResponseBody +// @LogAnno(menuType= "双重预防",menuServer= "隐患排查",instructionsOperate = "清单检查情况",instructionsType = "列表") +// public Object recordList(Page page) throws Exception{ +// Map map = new HashMap(); +// String errInfo = "success"; +// PageData pd = new PageData(); +// PageData npd = new PageData(); +// pd = this.getPageData(); +// npd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业 +//// pd.put("POST_ID", Jurisdiction.getPOST_ID()); //岗位 +// pd.put("USER_ID", Jurisdiction.getUSER_ID()); +// npd.put("ISMAIN", Jurisdiction.getIS_MAIN()); +// npd.put("ISSUPERVISE", Jurisdiction.getISSUPERVISE()); +// npd.put("DEPARTMENT_ID", Jurisdiction.getDEPARTMENT_ID()); +// PageData cpd = new PageData(); +// cpd = usersService.findById(pd); +// npd.put("ISLEADER", cpd.getString("ISLEADER")); +// if(cpd.getString("ISLEADER") != null && cpd.getString("ISLEADER").equals("1")){ +// String DEPARTMENT_ID = npd.getString("DEPARTMENT_ID"); +// String ids = departmentService.getDEPARTMENT_IDS(DEPARTMENT_ID); +// ids=npd.getString("DEPARTMENT_ID")+","+ids; //把自己部门插入进去 +// if(ids!=null && Tools.notEmpty(ids)&& ids.lastIndexOf(",")>-1) { +// ids = ids.substring(0,ids.lastIndexOf(",")); +// npd.put("DEPARTMENT_IDS", ids.split(",")); +// }else { +// npd.put("DEPARTMENT_IDS", DEPARTMENT_ID); +// } +// }else { +// if(npd.getString("ISMAIN").equals("0")){ +// npd.put("USER_ID",Jurisdiction.getUSER_ID()); +// } +// } +// String DEPTIDS = pd.getString("DEPTIDS"); +// if(Tools.notEmpty(DEPTIDS)) { +// String DEPT_IDS[] = DEPTIDS.split(","); +// npd.put("DEPT_IDS", DEPT_IDS); +// } +// String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件 +// if(Tools.notEmpty(KEYWORDS))npd.put("KEYWORDS", KEYWORDS.trim()); +// String STARTTIME = pd.getString("STARTTIME"); //关键词检索条件 +// if(Tools.notEmpty(STARTTIME))npd.put("STARTTIME", STARTTIME.trim() + " 00:00:00"); +// String ENDTIME = pd.getString("ENDTIME"); //关键词检索条件 +// if(Tools.notEmpty(ENDTIME))npd.put("ENDTIME", ENDTIME.trim() + " 23:59:59"); +// npd.put("ISDELETE",pd.getString("ISDELETE")); +// npd.put("USERNAME",pd.getString("USERNAME")); +// npd.put("STATUS",pd.getString("STATUS")); +// npd.put("PERIOD",pd.getString("PERIOD")); +// npd.put("OVERTIME",pd.getString("OVERTIME")); +// npd.put("WORKSTATUS",pd.getString("WORKSTATUS")); +// npd.put("LISTINGLEVEL",pd.getString("LISTINGLEVEL")); +// npd.put("TYPE",pd.getString("TYPE")); +// npd.put("HASHIDDEN",pd.getString("HASHIDDEN")); +// npd.put("RISKCHECKLISTTYPE",pd.getString("RISKCHECKLISTTYPE")); +// page.setPd(npd); +// List varList = listmanagerService.recordList(page); //列出ListManager列表 +// for (PageData list : varList) { +// String userId= list.getString("USER_ID"); +// if(userId.equals(Jurisdiction.getUSER_ID())) { +// list.put("stateMy", "0"); +// }else { +// list.put("stateMy", "1"); +// } +// } +// map.put("varList", varList); +// map.put("page", page); +// map.put("result", errInfo); +// return map; +// } +// +// /**去修改页面获取数据 +// * @param +// * @throws Exception +// */ +// @RequestMapping(value="/goEdit") +// @ResponseBody +// @LogAnno(menuType= "双重预防",menuServer= "隐患排查",instructionsOperate = "清单管理",instructionsType = "去修改页面获取数据") +// public Object goEdit() 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()); +// +// System.out.println(pd.getString("KEYWORDS")); +// List varList = listcheckitemService.listAll(pd); +// pd = listmanagerService.findById(pd); //根据ID读取 +// +// for (PageData item : varList) { +// item.put("RECORDITEM_ID", this.get32UUID()); //主键 +// } +// List ideList = identificationPartsService.listAllByList(pd); +// +// map.put("varList", varList); +// map.put("ideList", ideList); +// map.put("pd", pd); +// map.put("result", errInfo); +// return map; +// } +// +// /**批量删除 +// * @param +// * @throws Exception +// */ +// @RequestMapping(value="/deleteAll") +// @RequiresPermissions("listmanager:del") +// @ResponseBody +// @LogAnno(menuType= "双重预防",menuServer= "隐患排查",instructionsOperate = "清单管理",instructionsType = "批量删除") +// public Object deleteAll() throws Exception{ +// Map map = new HashMap(); +// String errInfo = "success"; +// PageData pd = new PageData(); +// pd = this.getPageData(); +// String DATA_IDS = pd.getString("DATA_IDS"); +// if(Tools.notEmpty(DATA_IDS)){ +// String ArrayDATA_IDS[] = DATA_IDS.split(","); +// for(int i = 0; i < ArrayDATA_IDS.length; i++) { +// PageData pd1 = new PageData(); +// pd1.put("OPERATOR", Jurisdiction.getUsername()); //修改人 +// pd1.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间 +// pd1.put("LISTMANAGER_ID", ArrayDATA_IDS[i]); +// listmanagerService.remove(pd1); +// pd1 = listmanagerService.findById(pd1); +// if(pd1.get("TYPE") != null && Tools.notEmpty(pd1.get("TYPE").toString())) { +// if("listType0005".equals(pd1.get("TYPE").toString())) { +// pd1.put("LISTSTATISTICS_ID", this.get32UUID()); //主键 +// pd1.put("STARTTIME", pd1.get("START_DATE").toString()+" 00:00:00"); +// pd1.put("ENDTIME", pd1.get("END_DATE").toString()+" 23:59:59"); +// pd1.put("PERIOD", null); +// PageData statistics = listStatisticsService.findByCondition(pd1); +// if(statistics != null && statistics.get("LISTSTATISTICS_ID") != null) { +// statistics.put("NOTEXAMINEDNUM", Integer.parseInt(statistics.get("NOTEXAMINEDNUM").toString())-2); +// listStatisticsService.edit(statistics); +// } +// pd1.put("ISSTATISTICS", '0'); +// // 本期已检查的不计入统计 +// checkrecordService.editStatistics(pd1); +// } else { +// if(pd1.get("PERIOD") != null && Tools.notEmpty(pd1.get("PERIOD").toString())) { +// String period = pd1.get("PERIOD").toString(); +// switch (period) { +// case "checkPeriod0001"://每日 +// pd1.put("STARTTIME", DateUtil.getDay()+" 00:00:00"); +// pd1.put("ENDTIME", DateUtil.getDay()+" 23:59:59"); +// break; +// +// case "checkPeriod0002"://每周 +// pd1.put("STARTTIME", DateUtil.getWeekStart()); +// pd1.put("ENDTIME", DateUtil.getWeekEnd()); +// break; +// +// case "checkPeriod0003"://每旬 +// String year = DateUtil.getYear().toString(); +// String month = DateUtil.getMonth().toString(); +// Integer day = Integer.parseInt(DateUtil.getOnlyDay().toString()); +// String startTime = year + "-" + month + "-"; +// String endTime = year + "-" + month + "-"; +// if(day <= 10) { +// startTime = startTime+"01 00:00:00"; +// endTime = endTime+"10 23:59:59"; +// } else if(day > 10 && day <= 20) { +// startTime = startTime+"11 00:00:00"; +// endTime = endTime+"20 23:59:59"; +// } else { +// startTime = startTime+"21 00:00:00"; +// endTime = DateUtil.getMonthEndDay()+" 23:59:59"; +// } +// pd1.put("STARTTIME", startTime); +// pd1.put("ENDTIME", endTime); +// break; +// +// case "checkPeriod0004"://每月 +// pd1.put("STARTTIME", DateUtil.getMonthFirstDay()+" 00:00:00"); +// pd1.put("ENDTIME", DateUtil.getMonthEndDay()+" 23:59:59"); +// break; +// +// case "checkPeriod0005"://每季 +// pd1.put("STARTTIME", DateUtil.quarterStart()+" 00:00:00"); +// pd1.put("ENDTIME", DateUtil.quarterEnd()+" 23:59:59"); +// break; +// +// case "checkPeriod0006"://每年 +// pd1.put("STARTTIME", DateUtil.getCurrYearFirst()+" 00:00:00"); +// pd1.put("ENDTIME", DateUtil.getCurrYearLast()+" 23:59:59"); +// break; +// +// case "checkPeriod0007"://半年 +// String byear = DateUtil.getYear().toString(); +// Integer bmonth = Integer.parseInt(DateUtil.getMonth().toString()); +// if(bmonth <= 6) { +// pd1.put("STARTTIME", byear+"-01-01 00:00:00"); +// pd1.put("ENDTIME", byear+"-06-30 23:59:59"); +// } else if(bmonth > 6) { +// pd1.put("STARTTIME", byear+"-07-01 00:00:00"); +// pd1.put("ENDTIME", byear+"-12-31 23:59:59"); +// } +// break; +// +// default: +// break; +// } +// } +// PageData statistics = listStatisticsService.findByCondition(pd1); +// if(statistics != null && statistics.get("LISTSTATISTICS_ID") != null) { +// statistics.put("NOTEXAMINEDNUM", Integer.parseInt(statistics.get("NOTEXAMINEDNUM").toString())-1); +// listStatisticsService.edit(statistics); +// } +// +// pd1.put("ISSTATISTICS", '0'); +// // 本期已检查的不计入统计 +// checkrecordService.editStatistics(pd1); +// } +// } +// } +// errInfo = "success"; +// }else{ +// errInfo = "error"; +// } +// map.put("result", errInfo); //返回结果 +// return map; +// } +// +// /**批量删除 +// * @param +// * @throws Exception +// */ +// @RequestMapping(value="/deleteAlltemp") +// @ResponseBody +// @LogAnno(menuType= "双重预防",menuServer= "隐患排查",instructionsOperate = "清单管理",instructionsType = "批量删除") +// public Object deleteAlltemp() throws Exception{ +// Map map = new HashMap(); +// String errInfo = "success"; +// PageData pd = new PageData(); +// pd = this.getPageData(); +// String DATA_IDS = pd.getString("DATA_IDS"); +// if(Tools.notEmpty(DATA_IDS)){ +// String ArrayDATA_IDS[] = DATA_IDS.split(","); +// for(int i = 0; i < ArrayDATA_IDS.length; i++) { +// PageData pd1 = new PageData(); +// pd1.put("OPERATOR", Jurisdiction.getUsername()); //修改人 +// pd1.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间 +// pd1.put("LISTMANAGER_ID", ArrayDATA_IDS[i]); +// listmanagerService.deleted(pd1); +// pd1 = listmanagerService.findById(pd1); +// if(pd1.get("TYPE") != null && Tools.notEmpty(pd1.get("TYPE").toString())) { +// pd1.put("LISTSTATISTICS_ID", this.get32UUID()); //主键 +// pd1.put("STARTTIME", pd1.get("START_DATE").toString()+" 00:00:00"); +// pd1.put("ENDTIME", pd1.get("END_DATE").toString()+" 23:59:59"); +// pd1.put("PERIOD", null); +// PageData statistics = listStatisticsService.findByCondition(pd1); +// if(statistics != null && statistics.get("LISTSTATISTICS_ID") != null) { +// statistics.put("NOTEXAMINEDNUM", Integer.parseInt(statistics.get("NOTEXAMINEDNUM").toString())-1); +// listStatisticsService.edit(statistics); +// } +// pd1.put("ISSTATISTICS", '0'); +// // 本期已检查的不计入统计 +// checkrecordService.editStatistics(pd1); +// } +// } +// errInfo = "success"; +// }else{ +// errInfo = "error"; +// } +// map.put("result", errInfo); //返回结果 +// return map; +// } +// +// /**导出到excel +// * @param +// * @throws Exception +// */ +// @RequestMapping(value="/excel") +// public ModelAndView exportExcel() throws Exception{ +// ModelAndView mv = new ModelAndView(); +// PageData pd = new PageData(); +// pd = this.getPageData(); +// Map dataMap = new HashMap(); +// List titles = new ArrayList(); +// titles.add("清单名称"); //1 +// titles.add("排查周期"); //2 +// titles.add("清单类型"); //3 +// titles.add("企业id"); //4 +// titles.add("添加人"); //5 +// titles.add("添加时间"); //6 +// titles.add("修改人"); //7 +// titles.add("修改时间"); //8 +// titles.add("是否删除 1-是 0-否"); //9 +// dataMap.put("titles", titles); +// List varOList = listmanagerService.listAll(pd); +// List varList = new ArrayList(); +// for(int i=0;i map = new HashMap(); +// String errInfo = "success"; +// PageData pd = new PageData(); +// pd = this.getPageData(); +// pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业 +//// pd.put("POST_ID", Jurisdiction.getPOST_ID()); //岗位 +// pd.put("USER_ID", Jurisdiction.getUSER_ID()); +// pd.put("orderUserId", Jurisdiction.getUSER_ID()); +// pd.put("DEPARTMENT_ID", Jurisdiction.getDEPARTMENT_ID()); +//// String ids = departmentService.getDEPARTMENT_IDS(DEPARTMENT_ID); +//// if(Jurisdiction.getIS_MAIN().equals("0")) { +//// if(ids!=null && Tools.notEmpty(ids) && ids.lastIndexOf(",")>-1 ) { +//// ids = ids.substring(0,ids.lastIndexOf(",")); +//// pd.put("DEPARTMENT_IDS", ids.split(",")); +//// }else { +//// pd.put("DEPARTMENT_ID", DEPARTMENT_ID); +//// } +//// } +// List varList = listmanagerService.listAll(pd); //列出ListManager列表 +// int wjcNum = 0; +// int yjcNum = 0; +// for (PageData list : varList) { +// if(list.getString("TYPE").equals("listType0005")) { +// if(Integer.parseInt(list.get("checkCount").toString()) > 0) { +// yjcNum++; +// } else { +// wjcNum++; +// } +// continue; +// } +// if(Integer.parseInt(list.get("checkCount").toString()) > 0) { +// yjcNum++; +// } else { +// wjcNum++; +// } +// } +// map.put("yjcNum", yjcNum); +// map.put("wjcNum", wjcNum); +// map.put("varList", varList); +// map.put("result", errInfo); +// return map; +// } +// +// +// /**列表 +// * @param page +// * @throws Exception +// */ +// @RequestMapping(value="/listAllByCorpMsm") +// @ResponseBody +// public Object listAllByCorpMsm() throws Exception{ +// Map map = new HashMap(); +// String errInfo = "success"; +// PageData pd = new PageData(); +// pd = this.getPageData(); +// List varList = listmanagerService.listAllByCorpMsm(pd); //列出ListManager列表 +// if(varList != null && varList.size() > 0) { +// // 用户合集 +// Map varMap = new HashMap(); +// for(int i = 0;i msmList = new ArrayList(varMap.values()); +// map.put("msmList", msmList); +// +// } +// +// map.put("result", errInfo); +// return map; +// } +// /**根据分类统计清单 +// * @param page +// * @throws Exception +// */ +// @RequestMapping(value="/countListByType") +// @ResponseBody +// public Object countListByType() throws Exception{ +// Map map = new HashMap(); +// String errInfo = "success"; +// PageData pd = new PageData(); +// pd = this.getPageData(); +// pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业 +// List varList = listmanagerService.countListByType(pd); //列出ListManager列表 +// List datas = new ArrayList(); +// +// /*DecimalFormat df = new DecimalFormat("#.00"); +// Double sum = 0d; +// for(PageData list:varList) { +// sum += Double.parseDouble(list.get("NUM").toString()); +// } +// for(PageData list: varList) { +// PageData data = new PageData(); +// Double num = Double.parseDouble(list.get("NUM").toString()); +// data.put("value", Double.parseDouble(df.format(num/sum))); +// data.put("name", list.getString("NAME")); +// datas.add(data); +// }*/ +// for(PageData list: varList) { +// PageData data = new PageData(); +// data.put("value", Integer.parseInt(list.get("NUM").toString())); +// data.put("name", list.getString("NAME")); +// datas.add(data); +// } +// map.put("datas", datas); +// map.put("result", errInfo); +// return map; +// } +// +// /**首页 获取折线图 +// * @param page +// * @throws Exception +// */ +// @RequestMapping(value="/goIndexCount") +// @ResponseBody +// @LogAnno(menuType= "首页",menuServer= "首页",instructionsOperate = "首页",instructionsType = "首页 获取折线图") +// public Object goIndexCount() throws Exception{ +// Map map = new HashMap(); +// String errInfo = "success"; +// PageData pd = new PageData(); +// pd = this.getPageData(); +// pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业 +// List dates = DateUtil.getHalfYearMonth(true); +// pd.put("TIME", dates.get(0)); +// List varList = listmanagerService.goIndexCount(pd); +// List xcqd = new ArrayList(); +// List jcqd = new ArrayList(); +// List zhqd = new ArrayList(); +// for(int i = 0; i < dates.size(); i++) { +// xcqd.add("0"); +// jcqd.add("0"); +// zhqd.add("0"); +// } +// Map listMap = new HashMap<>(); +// if(varList != null && varList.size() > 0) { +// for(PageData list : varList) { +// int index = dates.indexOf(list.getString("TIME")); +// switch (list.getString("SCREENTYPE")) { +// case "riskChecklistType0001": +// xcqd.set(index, list.get("COUNT").toString()); +// break; +// case "riskChecklistType0002": +// +// jcqd.set(index, list.get("COUNT").toString()); +// break; +// case "zhqd03": +// +// zhqd.set(index, list.get("COUNT").toString()); +// break; +// +// default: +// break; +// } +// } +// } +// +// map.put("xcqd", xcqd); +// map.put("jcqd", jcqd); +// map.put("zhqd", zhqd); +// map.put("dates", dates); +// map.put("result", errInfo); +// return map; +// } +// +// /**根据分类统计清单 +// * @param page +// * @throws Exception +// */ +// @RequestMapping(value="/checkPlan") +// @ResponseBody +// @LogAnno(menuType= "双重预防",menuServer= "隐患排查",instructionsOperate = "排查计划",instructionsType = "根据分类统计清单") +// public Object checkPlan() throws Exception { +// Map map = new HashMap(); +// String errInfo = "success"; +// PageData pd = new PageData(); +// pd = this.getPageData(); +// pd.put("CORPINFO_ID",Jurisdiction.getCORPINFO_ID()); +// List planList = listmanagerService.listAllPlan(null); +// Map planMap = new HashMap(); +// for (PageData pageData : planList) { +// pageData.put("dept_str", ""); +// planMap.put(pageData.getString("type_bianma") + "," + pageData.getString("level_bianma") + "," + pageData.getString("period_bianma"),pageData); +// } +// //企业所有应查数 +// List staList = listStatisticsService.listAllForPlan(pd); +// for (PageData pageData : staList) { +// String rowName = pageData.getString("TYPE") + "," + pageData.getString("level_bianma") + "," + pageData.getString("PERIOD"); +// PageData row = planMap.get(rowName); +// if(row!=null){ +// row.put("check_count",Integer.parseInt(row.get("check_count").toString()) + Integer.parseInt(pageData.get("NOTEXAMINEDNUM").toString())); +// } +// } +// //企业所有清单数 +// List liList = listmanagerService.listAllForPlan(pd); +// for (PageData pageData : liList) { +// String rowName = pageData.getString("TYPE") + "," + pageData.getString("level_bianma") + "," + pageData.getString("PERIOD"); +// PageData row = planMap.get(rowName); +// if(row!=null){ +// row.put("list_count",Integer.parseInt(row.get("list_count").toString()) + 1 ); +// row.put("dept_str",row.get("dept_str").toString() + pageData.getString("DEPARTMENT_ID") + ","); +// } +// } +// +// for (PageData pageData : planList) { +// if(pageData.get("dept_str")!=null && pageData.get("dept_str").toString()!="") +// pageData.put("dept_count", new HashSet(Arrays.asList(pageData.get("dept_str").toString().substring(0,pageData.get("dept_str").toString().length()-1).split(","))).size()); +// } +// +// map.put("planList",planList); +// map.put("result", errInfo); +// return map; +// } +// +// +//// /**根据分类统计清单 +//// * @param page +//// * @throws Exception +//// */ +//// @RequestMapping(value="/checkPlan") +//// @ResponseBody +//// public Object checkPlan() throws Exception{ +//// Map map = new HashMap(); +//// String errInfo = "success"; +//// PageData pd = new PageData(); +//// pd = this.getPageData(); +//// if(pd.get("USER_ID") == null || "".equals(pd.get("USER_ID").toString())) { +//// pd.put("USER_ID", Jurisdiction.getUSER_ID()); +//// } +//// pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业 +//// List varList = listmanagerService.listAll(pd); //列出ListManager列表 +//// Map typeMap = new HashMap(); +//// +//// for(PageData list: varList) { +//// if(list.get("TYPE").equals("listType0001")) { +//// if(!typeMap.containsKey("日常清单")){ +//// typeMap.put("日常清单",new HashMap()); +//// } +//// +//// Map levelMap = (Map)typeMap.get("日常清单"); +//// if(list.get("DEPARTMENT_LEVEL").equals("departmentLevel0001")) { +//// if (!levelMap.containsKey("厂级")) { +//// levelMap.put("厂级", new HashMap()); +//// } +//// +//// Map periodMap = (Map)levelMap.get("厂级"); +//// if(list.get("PERIOD").equals("checkPeriod0001")) { +//// if (!periodMap.containsKey("每日")) { +//// periodMap.put("每日", new HashMap()); +//// } +//// } +//// } else if(list.get("DEPARTMENT_LEVEL").equals("departmentLevel0002")) { +//// if (!levelMap.containsKey("车间级")) { +//// levelMap.put("车间级", new HashMap()); +//// } +//// +//// Map periodMap = (Map)levelMap.get("车间级"); +//// if(list.get("PERIOD").equals("checkPeriod0001")) { +//// if (!periodMap.containsKey("每日")) { +//// periodMap.put("每日", new HashMap()); +//// } +//// } +//// } else if(list.get("DEPARTMENT_LEVEL").equals("departmentLevel0003")) { +//// if (!levelMap.containsKey("班组级")) { +//// levelMap.put("班组级", new HashMap()); +//// } +//// +//// Map periodMap = (Map)levelMap.get("班组级"); +//// if(list.get("PERIOD").equals("checkPeriod0001")) { +//// if (!periodMap.containsKey("每日")) { +//// periodMap.put("每日", new HashMap()); +//// } +//// } +//// } +//// } +//// } +//// map.put("result", errInfo); +//// return map; +//// } +// +// /**获取巡检路线 +// * @param +// * @throws Exception +// */ +// @RequestMapping(value="/getRoute") +// @ResponseBody +// @LogAnno(menuType= "双重预防",menuServer= "隐患排查",instructionsOperate = "清单管理",instructionsType = "获取巡检路线") +// public Object getRisk() throws Exception { +// Map map = new HashMap(); +// String errInfo = "success"; +// PageData pd = new PageData(); +// pd = this.getPageData(); +// List varList = listmanagerService.listAllRisk(pd); +// map.put("varList", varList); +// map.put("result", errInfo); +// return map; +// } +// +// /**设置巡检路线 +// * @param +// * @throws Exception +// */ +// @RequestMapping(value="/setRout") +// @ResponseBody +// @LogAnno(menuType= "双重预防",menuServer= "隐患排查",instructionsOperate = "清单管理",instructionsType = "设置巡检路线") +// public Object setRout() throws Exception { +// Map map = new HashMap(); +// String errInfo = "success"; +// PageData pd = new PageData(); +// pd = this.getPageData(); +// //巡检路线 +// checkRouteService.delete(pd); +// List routes = (List) JSON.parse(pd.get("ROUTE").toString()); +// for (int j = 0; j < routes.size() ; j++) { +// JSONObject json = routes.get(j); +// if(json.get("IDENTIFICATIONPARTS_ID")!=null && json.get("IDENTIFICATIONPARTS_ID")!="") { +// PageData route = new PageData(); +// route.put("CHECKROUTE_ID", this.get32UUID()); //主键 +// route.put("LISTMANAGER_ID",pd.get("LISTMANAGER_ID")); +// route.put("IDENTIFICATIONPARTS_ID", json.get("IDENTIFICATIONPARTS_ID")); +// route.put("ORDERBY",j); +// checkRouteService.save(route); +// } +// } +// map.put("result", errInfo); +// return map; +// } +// +// /** +// * BI页清单排查类型统计 +// * +// * @param +// * @throws Exception +// */ +// @RequestMapping(value = "/countNumBi") +// @ResponseBody +// public Object countNumBi() throws Exception { +// Map map = new HashMap(); +// String errInfo = "success"; +// PageData pd = new PageData(); +// pd = this.getPageData(); +// pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); // 企业 +//// pd.put("YEAR",new Date().getYear()+1900); +// List typeList = listmanagerService.getCountNumBi(pd); +// map.put("typeList", typeList); +// map.put("result", errInfo); +// return map; +// } +// +// @RequestMapping(value = "/saveBaoBaoType") +// @ResponseBody +// public Object saveBaoBaoType() throws Exception { +// Map map = new HashMap(); +// String errInfo = "success"; +// PageData pd = new PageData(); +// pd = this.getPageData(); +// listmanagerService.saveBaoBaoType(pd); +// map.put("result", errInfo); +// return map; +// } +// +// /**清单检查记录(日检)统计 +// * @param +// * @throws Exception +// */ +// @RequestMapping(value="/statisticsListCheckDay") +// @ResponseBody +// @LogAnno(menuType= "双重预防",menuServer= "隐患排查",instructionsOperate = "清单管理",instructionsType = "清单检查记录(日检)统计") +// public Object statisticsListCheckDay() 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()); +// +// System.out.println(pd.getString("KEYWORDS")); +// List varList = listcheckitemService.listAll(pd); +// PageData data = listmanagerService.findById(pd); //根据ID读取 +// data.put("YEAR", pd.getString("YEAR")); +// List recordList = checkrecordService.listAllYearForDay(data);//获取查询月在检查周期内的检查记录 +// +// map.put("pd", data); +// map.put("varList", varList); +// map.put("recordList", recordList); +// map.put("result", errInfo); +// return map; +// } +// +// /**清单检查记录(周检)统计 +// * @param +// * @throws Exception +// */ +// @RequestMapping(value="/statisticsListCheckWeek") +// @ResponseBody +// @LogAnno(menuType= "双重预防",menuServer= "隐患排查",instructionsOperate = "清单管理",instructionsType = "清单检查记录(周检)统计") +// public Object statisticsListCheckWeek() 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()); +// +// System.out.println(pd.getString("KEYWORDS")); +// List varList = listcheckitemService.listAll(pd); +// PageData data = listmanagerService.findById(pd); //根据ID读取 +// data.put("YEAR", pd.getString("YEAR")); +// List recordList = checkrecordService.listAllYearForWeek(data);//获取检查周期内的检查记录 +// +// map.put("pd", data); +// map.put("varList", varList); +// map.put("recordList", recordList); +// map.put("result", errInfo); +// return map; +// } +// +// /**清单检查记录(旬检)统计 +// * @param +// * @throws Exception +// */ +// @RequestMapping(value="/statisticsListCheckTenday") +// @ResponseBody +// @LogAnno(menuType= "双重预防",menuServer= "隐患排查",instructionsOperate = "清单管理",instructionsType = "清单检查记录(旬检)统计") +// public Object statisticsListCheckTenday() 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()); +// +// System.out.println(pd.getString("KEYWORDS")); +// List varList = listcheckitemService.listAll(pd); +// PageData data = listmanagerService.findById(pd); //根据ID读取 +// data.put("YEAR", pd.getString("YEAR")); +// List recordList = checkrecordService.statisticsListCheckTenday(data);//获取检查周期内的检查记录 +// +// map.put("pd", data); +// map.put("varList", varList); +// map.put("recordList", recordList); +// map.put("result", errInfo); +// return map; +// } +} diff --git a/src/main/java/com/zcloud/controller/hiddenDangerCheckStandardCustom/hiddenDangerCheckStandardDictionaryController.java b/src/main/java/com/zcloud/controller/hiddenDangerCheckStandardCustom/hiddenDangerCheckStandardDictionaryController.java new file mode 100644 index 0000000..8819ec5 --- /dev/null +++ b/src/main/java/com/zcloud/controller/hiddenDangerCheckStandardCustom/hiddenDangerCheckStandardDictionaryController.java @@ -0,0 +1,50 @@ +package com.zcloud.controller.hiddenDangerCheckStandardCustom; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.PageData; +import com.zcloud.service.hiddenDangerCheckStandardCustom.HiddenDangerCheckStandardDictionaryService; +import com.zcloud.util.Jurisdiction; +import org.apache.shiro.authz.annotation.RequiresPermissions; +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.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 说明:隐患排查数据字典 + * 作者:luoxiaobao + * 官网:www.qdkjchina.com + */ +@Controller +@RequestMapping("/hiddenstandardDictionary") +public class hiddenDangerCheckStandardDictionaryController extends BaseController { + + @Autowired + private HiddenDangerCheckStandardDictionaryService hiddenstandardDictionaryService; + + + /** + * 列表 + * + * @param + * @throws Exception + */ + @RequestMapping(value = "/list") + @RequiresPermissions("hiddendictionary:list") + @ResponseBody + public Object list() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + List varList = hiddenstandardDictionaryService.list(pd); + map.put("varList", varList); + map.put("result", errInfo); + return map; + } +} diff --git a/src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCommonMapper.java b/src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCommonMapper.java new file mode 100644 index 0000000..78421d7 --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCommonMapper.java @@ -0,0 +1,22 @@ +package com.zcloud.mapper.datasource.hiddenDangerCheckStandardCustom; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +/** + * 说明:清单管理-检查标准 + * 作者:luoxiaobao + * 时间:2020-12-30 + * 官网:www.zcloudchina.com + */ +public interface HiddenDangerCheckStandardCommonMapper { + + /**列表 + * @param page + * @throws Exception + */ + List datalistPage(Page page); +} + diff --git a/src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomItemMapper.java b/src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomItemMapper.java new file mode 100644 index 0000000..e90e554 --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomItemMapper.java @@ -0,0 +1,19 @@ +package com.zcloud.mapper.datasource.hiddenDangerCheckStandardCustom; + +import com.zcloud.entity.PageData; + +/** + * 说明:清单管理-检查标准项目 + * 作者:luoxiaobao + * 时间:2020-12-30 + * 官网:www.zcloudchina.com + */ +public interface HiddenDangerCheckStandardCustomItemMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); +} + diff --git a/src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomMapper.java b/src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomMapper.java new file mode 100644 index 0000000..d684a0f --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomMapper.java @@ -0,0 +1,230 @@ +package com.zcloud.mapper.datasource.hiddenDangerCheckStandardCustom; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +/** + * 说明:清单管理 + * 作者:luoxiaobao + * 时间:2020-12-30 + * 官网:www.zcloudchina.com + */ +public interface HiddenDangerCheckStandardCustomMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**禁用 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**删除 + * @param pd + * @throws Exception + */ + void remove(PageData pd); + + /**删除 + * @param pd + * @throws Exception + */ + void deleted(PageData pd); + + /**启用 + * @param pd + * @throws Exception + */ + void enable(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + /**列表 + * @param page + * @throws Exception + */ + List datalistPage(Page page); + List stopdatalistPage(Page page); + + /**列表(全部) + * @param pd + * @throws Exception + */ + List listAll(PageData pd); + + /**列表(全部) + * @param pd + * @throws Exception + */ + List appListAll(PageData pd); + + /**查询部门清单 + * @param pd + * @throws Exception + */ + List listListByDep(PageData pd); + + /**查询人员清单 + * @param pd + * @throws Exception + */ + List listListByUser(PageData pd); + + List getListByCorplistPage(Page page); + + /**列表(全部) + * @throws Exception + */ + List listRecordAll(Page page); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + void deleteAll(String[] ArrayDATA_IDS); + + List listAllRisk(PageData pd); + + List recordlistPage(Page page); + + + + /**待检查清单数量 + * @param pd + * @throws Exception + */ + List listExaminedNum(PageData pd); + /**待检查清单数量 + * @param pd + * @throws Exception + */ + List listExaminedNumJjr(PageData pd); + + List listTempNum(PageData pd); + + /**启用 + * @param pd + * @throws Exception + */ + void startup(PageData pd); + + /**删除 + * @param pd + * @throws Exception + */ + void deleteTemplist(PageData pd); + + List selectTemp(PageData pd); + + /**人员负责清单数 + * @param pd + * @throws Exception + */ + List countListByUser(PageData pd); + + + + /**查询所有可发送短信的企业的清单 + * @param pd + * @throws Exception + */ + List listAllByCorpMsm(PageData pd); + + + /**查询所有清单清单 + * @param pd + * @throws Exception + */ + List getAllList(PageData pd); + + /**首页获取折线图 + * @param pd + * @throws Exception + */ + List goIndexCount(PageData pd); + + /** + * 查询公司清单总数 + * @param pd + * @return + */ + public int getListCount(PageData pd); + + /** + * 查询公司检查过清单的总数 + * @param pd + * @return + */ + public int getWorkedListCount(PageData pd); + + /** + * 根据分类统计清单 + * @param pd + * @return + */ + public List countListByType(PageData pd); + + /**列表 + * @param page + * @throws Exception + */ + List checklistPage(Page page); + + /**上期超期未检查的清单 + * @param pd + * @throws Exception + */ + List overTimeRecord(PageData pd); + + /**上期超期未检查的清单(每日使用) + * @param pd + * @throws Exception + */ + List overTimeRecordDay(PageData pd); + + /**节假日超期未检查的清单 + * @param pd + * @throws Exception + */ + List overTimeRecordJjr(PageData pd); + + /**查询今日待处理清单数 + * @param pd + * @throws Exception + */ + List getListToday(PageData pd); + + List listAllForDiagnosis(PageData pd); + + List listAllPlan(PageData pd); + + List listAllForPlan(PageData pd); + + List getCountNumBi(PageData pd); + + List listForDocking(PageData pd); + void updateDocking(PageData pageData); + + List thisMonthListmanager(PageData pd); + + List findByCondition(PageData util); + + List analysis(PageData util); +} + diff --git a/src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardDictionaryMapper.java b/src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardDictionaryMapper.java new file mode 100644 index 0000000..f8472aa --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardDictionaryMapper.java @@ -0,0 +1,21 @@ +package com.zcloud.mapper.datasource.hiddenDangerCheckStandardCustom; + +import com.zcloud.entity.PageData; + +import java.util.List; + +/** + * 说明:清单管理 + * 作者:luoxiaobao + * 时间:2020-12-30 + * 官网:www.zcloudchina.com + */ +public interface HiddenDangerCheckStandardDictionaryMapper { + + /**列表(全部) + * @param pd + * @throws Exception + */ + List list(PageData pd); +} + diff --git a/src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/ListCheckStandardItemMapper.java b/src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/ListCheckStandardItemMapper.java new file mode 100644 index 0000000..c2d597b --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/hiddenDangerCheckStandardCustom/ListCheckStandardItemMapper.java @@ -0,0 +1,85 @@ +package com.zcloud.mapper.datasource.hiddenDangerCheckStandardCustom; + +import com.zcloud.entity.PageData; + +import java.util.List; + +/** + * 说明:清单-检查项关联 + * 作者:luoxiaobao + * 时间:2020-12-31 + * 官网:www.zcloudchina.com + */ +public interface ListCheckStandardItemMapper { + + /**新增 + * @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); +// + /**列表(全部) + * @param pd + * @throws Exception + */ + List listAll(PageData pd); +// +// List listByriskpointid(PageData pd); +// +// +// /**通过id获取数据 +// * @param pd +// * @throws Exception +// */ +// PageData findById(PageData pd); +// +// /**获取隐患数据 +// * @param pd +// * @throws Exception +// */ +// PageData findHidden(PageData pd); +// +// /**批量删除 +// * @param ArrayDATA_IDS +// * @throws Exception +// */ +// void deleteAll(String[] ArrayDATA_IDS); +// +// /**批量删除 +// * @param ArrayDATA_IDS +// * @throws Exception +// */ +// void deleteList(PageData pd); +// +// /**全部风险点 +// * @param pd +// * @throws Exception +// */ +// List listAllRisk(PageData pd); +// +// List listForDocking(PageData pd); +// void updateDocking(PageData pageData); +// +// List findByRiskPointIds(String[] ids); +// +// List findByRiskPointId(PageData riskPoint); +} + diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCommonService.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCommonService.java new file mode 100644 index 0000000..2c4dddf --- /dev/null +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCommonService.java @@ -0,0 +1,23 @@ +package com.zcloud.service.hiddenDangerCheckStandardCustom; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +/** + * 说明:清单管理-检查标准 + * 作者:luoxiaobao + * 时间:2020-12-30 + * 官网:www.zcloudchina.com + */ +public interface HiddenDangerCheckStandardCommonService { + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + +} + diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomItemService.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomItemService.java new file mode 100644 index 0000000..44caa34 --- /dev/null +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomItemService.java @@ -0,0 +1,21 @@ +package com.zcloud.service.hiddenDangerCheckStandardCustom; + +import com.zcloud.entity.PageData; + +/** + * 说明:清单管理-检查标准项目 + * 作者:luoxiaobao + * 时间:2020-12-30 + * 官网:www.zcloudchina.com + */ +public interface HiddenDangerCheckStandardCustomItemService { + + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd)throws Exception; + +} + diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomService.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomService.java new file mode 100644 index 0000000..5f46b89 --- /dev/null +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomService.java @@ -0,0 +1,28 @@ +package com.zcloud.service.hiddenDangerCheckStandardCustom; + +import com.zcloud.entity.PageData; + +import java.util.List; + +/** + * 说明:清单管理 + * 作者:luoxiaobao + * 时间:2020-12-30 + * 官网:www.zcloudchina.com + */ +public interface HiddenDangerCheckStandardCustomService { + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**列表 + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + +} + diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardDictionaryService.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardDictionaryService.java new file mode 100644 index 0000000..066e509 --- /dev/null +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardDictionaryService.java @@ -0,0 +1,21 @@ +package com.zcloud.service.hiddenDangerCheckStandardCustom; + +import com.zcloud.entity.PageData; + +import java.util.List; + +/** + * 说明:隐患排查清单管理数据字典 + * 作者:luoxiaobao + * 时间:2020-12-30 + * 官网:www.zcloudchina.com + */ +public interface HiddenDangerCheckStandardDictionaryService { + + /**列表(全部) + * @param pd + * @throws Exception + */ + List list(PageData pd)throws Exception; +} + diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/ListcheckstandarditemService.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/ListcheckstandarditemService.java new file mode 100644 index 0000000..259578b --- /dev/null +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/ListcheckstandarditemService.java @@ -0,0 +1,25 @@ +package com.zcloud.service.hiddenDangerCheckStandardCustom; + +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface ListcheckstandarditemService { + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + List listAll(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; +} diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/HiddenDangerCheckStandardCommonServiceImpl.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/HiddenDangerCheckStandardCommonServiceImpl.java new file mode 100644 index 0000000..c99d530 --- /dev/null +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/HiddenDangerCheckStandardCommonServiceImpl.java @@ -0,0 +1,35 @@ +package com.zcloud.service.hiddenDangerCheckStandardCustom.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.hiddenDangerCheckStandardCustom.HiddenDangerCheckStandardCommonMapper; +import com.zcloud.service.hiddenDangerCheckStandardCustom.HiddenDangerCheckStandardCommonService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 说明:清单管理-检查标准 + * 作者:luoxiaobao + * 时间:2020-12-30 + * 官网:www.zcloudchina.com + */ +@Service +@Transactional //开启事物 +public class HiddenDangerCheckStandardCommonServiceImpl implements HiddenDangerCheckStandardCommonService { + + @Autowired + private HiddenDangerCheckStandardCommonMapper hiddenstandardCommonMapper; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception{ + return hiddenstandardCommonMapper.datalistPage(page); + } +} + + diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/HiddenDangerCheckStandardCustomItemServiceImpl.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/HiddenDangerCheckStandardCustomItemServiceImpl.java new file mode 100644 index 0000000..118db83 --- /dev/null +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/HiddenDangerCheckStandardCustomItemServiceImpl.java @@ -0,0 +1,34 @@ +package com.zcloud.service.hiddenDangerCheckStandardCustom.impl; + +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.hiddenDangerCheckStandardCustom.HiddenDangerCheckStandardCustomItemMapper; +import com.zcloud.service.hiddenDangerCheckStandardCustom.HiddenDangerCheckStandardCustomItemService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** + * 说明:清单管理-检查标准项目 + * 作者:luoxiaobao + * 时间:2020-12-30 + * 官网:www.zcloudchina.com + */ +@Service +@Transactional //开启事物 +public class HiddenDangerCheckStandardCustomItemServiceImpl implements HiddenDangerCheckStandardCustomItemService { + + @Autowired + private HiddenDangerCheckStandardCustomItemMapper hiddenstandardCustomItemMapper; + + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + hiddenstandardCustomItemMapper.save(pd); + } + +} + + diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/HiddenDangerCheckStandardCustomServiceImpl.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/HiddenDangerCheckStandardCustomServiceImpl.java new file mode 100644 index 0000000..3f62548 --- /dev/null +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/HiddenDangerCheckStandardCustomServiceImpl.java @@ -0,0 +1,43 @@ +package com.zcloud.service.hiddenDangerCheckStandardCustom.impl; + +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.hiddenDangerCheckStandardCustom.HiddenDangerCheckStandardCustomMapper; +import com.zcloud.service.hiddenDangerCheckStandardCustom.HiddenDangerCheckStandardCustomService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 说明:清单管理 + * 作者:luoxiaobao + * 时间:2020-12-30 + * 官网:www.zcloudchina.com + */ +@Service +@Transactional //开启事物 +public class HiddenDangerCheckStandardCustomServiceImpl implements HiddenDangerCheckStandardCustomService { + + @Autowired + private HiddenDangerCheckStandardCustomMapper hiddencheckstandardCustomMapper; + + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + hiddencheckstandardCustomMapper.save(pd); + } + + /**列表 + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception{ + return hiddencheckstandardCustomMapper.listAll(pd); + } +} + + diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/HiddenDangerCheckStandardDictionaryServiceImpl.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/HiddenDangerCheckStandardDictionaryServiceImpl.java new file mode 100644 index 0000000..6a4e761 --- /dev/null +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/HiddenDangerCheckStandardDictionaryServiceImpl.java @@ -0,0 +1,34 @@ +package com.zcloud.service.hiddenDangerCheckStandardCustom.impl; + +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.hiddenDangerCheckStandardCustom.HiddenDangerCheckStandardDictionaryMapper; +import com.zcloud.service.hiddenDangerCheckStandardCustom.HiddenDangerCheckStandardDictionaryService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 说明:清单管理 + * 作者:luoxiaobao + * 时间:2020-12-30 + * 官网:www.zcloudchina.com + */ +@Service +@Transactional //开启事物 +public class HiddenDangerCheckStandardDictionaryServiceImpl implements HiddenDangerCheckStandardDictionaryService { + + @Autowired + private HiddenDangerCheckStandardDictionaryMapper hiddenstandardDictionaryMapper; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List list(PageData pd)throws Exception{ + return hiddenstandardDictionaryMapper.list(pd); + } +} + + diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/ListcheckstandarditemServiceImpl.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/ListcheckstandarditemServiceImpl.java new file mode 100644 index 0000000..27d9389 --- /dev/null +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardCustom/impl/ListcheckstandarditemServiceImpl.java @@ -0,0 +1,43 @@ +package com.zcloud.service.hiddenDangerCheckStandardCustom.impl; + +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.hiddenDangerCheckStandardCustom.ListCheckStandardItemMapper; +import com.zcloud.service.hiddenDangerCheckStandardCustom.ListcheckstandarditemService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 说明:清单管理 + * 作者:luoxiaobao + * 时间:2020-12-30 + * 官网:www.zcloudchina.com + */ +@Service +@Transactional //开启事物 +public class ListcheckstandarditemServiceImpl implements ListcheckstandarditemService { + @Autowired + private ListCheckStandardItemMapper listCheckStandardItemMapper; + + @Override + public void save(PageData pd)throws Exception { + listCheckStandardItemMapper.save(pd); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception{ + return listCheckStandardItemMapper.listAll(pd); + } + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + listCheckStandardItemMapper.delete(pd); + } +} diff --git a/src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCommonMapper.xml b/src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCommonMapper.xml new file mode 100644 index 0000000..0cc819e --- /dev/null +++ b/src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCommonMapper.xml @@ -0,0 +1,114 @@ + + + + + + + bus_hiddendangercheckstandard_common + + + + + f.COMMON_ID, + f.INDUSTRY_TYPE, + f.INDUSTRY_TYPE_TREE, + f.INDUSTRY_TYPE_NAMES, + f.CHECK_STANDARD_NAME, + f.COMMON_STATUS, + f.ISDELETE, + f.CREATOR_ID, + f.CREATOR_NAME, + f.CREATE_TIME, + f.OPERATOR_ID, + f.OPERATOR_NAME, + f.OPERATE_TIME, + f.DELETEOR_ID, + f.DELETEOR_NAME, + f.DELETE_TIME + + + + + COMMON_ID, + INDUSTRY_TYPE, + INDUSTRY_TYPE_TREE, + INDUSTRY_TYPE_NAMES, + CHECK_STANDARD_NAME, + COMMON_STATUS, + ISDELETE, + CREATOR_ID, + CREATOR_NAME, + CREATE_TIME, + OPERATOR_ID, + OPERATOR_NAME, + OPERATE_TIME, + DELETEOR_ID, + DELETEOR_NAME, + DELETE_TIME + + + + + #{COMMON_ID}, + #{INDUSTRY_TYPE}, + #{INDUSTRY_TYPE_TREE}, + #{INDUSTRY_TYPE_NAMES}, + #{CHECK_STANDARD_NAME}, + #{COMMON_STATUS}, + #{ISDELETE}, + #{CREATOR_ID}, + #{CREATOR_NAME}, + #{CREATE_TIME}, + #{OPERATOR_ID}, + #{OPERATOR_NAME}, + #{OPERATE_TIME}, + #{DELETEOR_ID}, + #{DELETEOR_NAME}, + #{DELETE_TIME} + + + + + diff --git a/src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomItemMapper.xml b/src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomItemMapper.xml new file mode 100644 index 0000000..99c1c62 --- /dev/null +++ b/src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomItemMapper.xml @@ -0,0 +1,110 @@ + + + + + + + bus_hiddendangercheckstandard_custom_item + + + + + SYS_DICTIONARIES + + + + + f.CUSTOM_ITEM_ID, + f.CUSTOM_ID, + f.CHECK_CATEGORY, + f.CHECK_ITEM, + f.CHECK_CONTENT, + f.CHECK_STANDARD, + f.REFERENCE_BASIS, + f.CHECK_QUALIFIED, + f.CHECK_UNQUALIFIED, + f.OPERATION_TYPE, + f.COMMON_ITEM_SORT, + f.COMMON_ID, + f.COMMON_ITEM_ID, + f.ISDELETE, + f.CREATOR_ID, + f.CREATOR_NAME, + f.CREATE_TIME, + f.OPERATOR_ID, + f.OPERATOR_NAME, + f.OPERATE_TIME, + f.DELETEOR_ID, + f.DELETEOR_NAME, + f.DELETE_TIME + + + + + CUSTOM_ITEM_ID, + CUSTOM_ID, + CHECK_CATEGORY, + CHECK_ITEM, + CHECK_CONTENT, + CHECK_STANDARD, + REFERENCE_BASIS, + CHECK_QUALIFIED, + CHECK_UNQUALIFIED, + OPERATION_TYPE, + COMMON_ITEM_SORT, + COMMON_ID, + COMMON_ITEM_ID, + ISDELETE, + CREATOR_ID, + CREATOR_NAME, + CREATE_TIME, + OPERATOR_ID, + OPERATOR_NAME, + OPERATE_TIME, + DELETEOR_ID, + DELETEOR_NAME, + DELETE_TIME, + COMMON_ITEM_ID + + + + + #{CUSTOM_ITEM_ID}, + #{CUSTOM_ID}, + #{CHECK_CATEGORY}, + #{CHECK_ITEM}, + #{CHECK_CONTENT}, + #{CHECK_STANDARD}, + #{REFERENCE_BASIS}, + #{CHECK_QUALIFIED}, + #{CHECK_UNQUALIFIED}, + #{OPERATION_TYPE}, + #{COMMON_ITEM_SORT}, + #{COMMON_ID}, + #{COMMON_ITEM_ID}, + #{ISDELETE}, + #{CREATOR_ID}, + #{CREATOR_NAME}, + #{CREATE_TIME}, + #{OPERATOR_ID}, + #{OPERATOR_NAME}, + #{OPERATE_TIME}, + #{DELETEOR_ID}, + #{DELETEOR_NAME}, + #{DELETE_TIME}, + #{COMMON_ITEM_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + diff --git a/src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomMapper.xml b/src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomMapper.xml new file mode 100644 index 0000000..92d175f --- /dev/null +++ b/src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardCustomMapper.xml @@ -0,0 +1,132 @@ + + + + + + + bus_hiddendangercheckstandard_custom + + + + + SYS_DICTIONARIES + + + + + f.CUSTOM_ID, + f.CORPINFO_ID, + f.INDUSTRY_TYPE, + f.INDUSTRY_TYPE_TREE, + f.INDUSTRY_TYPE_NAMES, + f.CHECK_STANDARD_NAME, + f.COMMON_STATUS, + f.ISDELETE, + f.CREATOR_ID, + f.CREATOR_NAME, + f.CREATE_TIME, + f.OPERATOR_ID, + f.OPERATOR_NAME, + f.OPERATE_TIME, + f.DELETEOR_ID, + f.DELETEOR_NAME, + f.DELETE_TIME + + + + + CUSTOM_ID, + CORPINFO_ID, + INDUSTRY_TYPE, + INDUSTRY_TYPE_TREE, + INDUSTRY_TYPE_NAMES, + CHECK_STANDARD_NAME, + COMMON_STATUS, + ISDELETE, + CREATOR_ID, + CREATOR_NAME, + CREATE_TIME, + OPERATOR_ID, + OPERATOR_NAME, + OPERATE_TIME, + DELETEOR_ID, + DELETEOR_NAME, + DELETE_TIME + + + + + #{CUSTOM_ID}, + #{CORPINFO_ID}, + #{INDUSTRY_TYPE}, + #{INDUSTRY_TYPE_TREE}, + #{INDUSTRY_TYPE_NAMES}, + #{CHECK_STANDARD_NAME}, + #{COMMON_STATUS}, + #{ISDELETE}, + #{CREATOR_ID}, + #{CREATOR_NAME}, + #{CREATE_TIME}, + #{OPERATOR_ID}, + #{OPERATOR_NAME}, + #{OPERATE_TIME}, + #{DELETEOR_ID}, + #{DELETEOR_NAME}, + #{DELETE_TIME} + + + + + insert into + + ( + + ) values ( + + ) + + + + + diff --git a/src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardDictionaryMapper.xml b/src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardDictionaryMapper.xml new file mode 100644 index 0000000..e2c2a4d --- /dev/null +++ b/src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/HiddenDangerCheckStandardDictionaryMapper.xml @@ -0,0 +1,93 @@ + + + + + + + bus_hiddendangercheckstandard_dictionary + + + + + f.DICTIONARY_ID, + f.DICTIONARY_NAME, + f.PARENT_ID, + f.PARENT_IDS, + f.DICTIONARY_NAMES, + f.DICTIONARY_LEVEL, + f.DICTIONARY_SORT, + f.DICTIONARY_SOURCE, + f.CORPINFO_ID, + f.ISDELETE, + f.CREATOR_ID, + f.CREATOR_NAME, + f.CREATE_TIME, + f.OPERATOR_ID, + f.OPERATOR_NAME, + f.OPERATE_TIME, + f.DELETEOR_ID, + f.DELETEOR_NAME, + f.DELETE_TIME + + + + + DICTIONARY_ID, + DICTIONARY_NAME, + PARENT_ID, + PARENT_IDS, + DICTIONARY_NAMES, + DICTIONARY_LEVEL, + DICTIONARY_SORT, + DICTIONARY_SOURCE, + CORPINFO_ID, + ISDELETE, + CREATOR_ID, + CREATOR_NAME, + CREATE_TIME, + OPERATOR_ID, + OPERATOR_NAME, + OPERATE_TIME, + DELETEOR_ID, + DELETEOR_NAME, + DELETE_TIME + + + + + #{DICTIONARY_ID}, + #{DICTIONARY_NAME}, + #{PARENT_ID}, + #{PARENT_IDS}, + #{DICTIONARY_NAMES}, + #{DICTIONARY_LEVEL}, + #{DICTIONARY_SORT}, + #{DICTIONARY_SOURCE}, + #{CORPINFO_ID}, + #{ISDELETE}, + #{CREATOR_ID}, + #{CREATOR_NAME}, + #{CREATE_TIME}, + #{OPERATOR_ID}, + #{OPERATOR_NAME}, + #{OPERATE_TIME}, + #{DELETEOR_ID}, + #{DELETEOR_NAME}, + #{DELETE_TIME} + + + + + diff --git a/src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/ListCheckStandardItemMapper.xml b/src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/ListCheckStandardItemMapper.xml new file mode 100644 index 0000000..dc4b744 --- /dev/null +++ b/src/main/resources/mybatis/datasource/hiddenDangerCheckStandardCustom/ListCheckStandardItemMapper.xml @@ -0,0 +1,261 @@ + + + + + + + LISTCHECKSTANDARDITEM_ID + + + + + SYS_DICTIONARIES + + + + + f.LISTCHECKSTANDARDITEM_ID, + f.LISTMANAGER_ID, + f.CUSTOM_ID, + f.CUSTOM_ITEM_ID, + f.CORPINFO_ID, + f.CREATOR, + f.CREATTIME, + f.OPERATOR, + f.OPERATTIME, + f.ISDELETE, + f.BAO_BAO_NUM + + + + + LISTCHECKSTANDARDITEM_ID, + LISTMANAGER_ID, + CUSTOM_ID, + CUSTOM_ITEM_ID, + CORPINFO_ID, + CREATOR, + CREATTIME, + OPERATOR, + OPERATTIME, + ISDELETE, + BAO_BAO_NUM + + + + + #{LISTCHECKSTANDARDITEM_ID}, + #{LISTMANAGER_ID}, + #{RISKPOINT_ID}, + #{RISKCHECKITEM_ID}, + #{CORPINFO_ID}, + #{CREATOR}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATTIME}, + #{ISDELETE}, + #{BAO_BAO_NUM} + + + + + insert into + + ( + + ) values ( + + ) + + + + + update + + set + ISDELETE = '1' + where + LISTCHECKSTANDARDITEM_ID = #{LISTCHECKSTANDARDITEM_ID} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +