From 75933a92d8c3ed4c851bde8cb605cd4e09a89bc9 Mon Sep 17 00:00:00 2001 From: wangpeng Date: Fri, 26 Jan 2024 08:33:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E6=82=A3=E6=8E=92=E6=9F=A5=E6=A0=87?= =?UTF-8?q?=E5=87=86=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CommonController.java | 197 +++++++++++++ .../system/DictionariesController.java | 18 ++ .../CommonItemMapper.java | 58 ++++ .../CommonMapper.java | 58 ++++ .../DictionaryMapper.java | 60 ++++ .../CommonItemService.java | 58 ++++ .../CommonService.java | 62 ++++ .../DictionaryService.java | 64 +++++ .../impl/CommonItemServiceImpl.java | 104 +++++++ .../impl/CommonServiceImpl.java | 265 ++++++++++++++++++ .../impl/DictionaryServiceImpl.java | 109 +++++++ .../service/system/DictionariesService.java | 8 + .../system/impl/DictionariesServiceImpl.java | 30 ++ .../CommonItemMapper.xml | 258 +++++++++++++++++ .../CommonMapper.xml | 202 +++++++++++++ .../DictionaryMapper.xml | 220 +++++++++++++++ .../hiddenDangerCheckStandardTemplate.xls | Bin 0 -> 20992 bytes 17 files changed, 1771 insertions(+) create mode 100644 src/main/java/com/zcloud/controller/hiddenDangerCheckStandardLibrary/CommonController.java create mode 100644 src/main/java/com/zcloud/mapper/dsno2/hiddenDangerCheckStandardLibrary/CommonItemMapper.java create mode 100644 src/main/java/com/zcloud/mapper/dsno2/hiddenDangerCheckStandardLibrary/CommonMapper.java create mode 100644 src/main/java/com/zcloud/mapper/dsno2/hiddenDangerCheckStandardLibrary/DictionaryMapper.java create mode 100644 src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/CommonItemService.java create mode 100644 src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/CommonService.java create mode 100644 src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/DictionaryService.java create mode 100644 src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/impl/CommonItemServiceImpl.java create mode 100644 src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/impl/CommonServiceImpl.java create mode 100644 src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/impl/DictionaryServiceImpl.java create mode 100644 src/main/resources/mybatis/dsno2/hiddenDangerCheckStandardLibrary/CommonItemMapper.xml create mode 100644 src/main/resources/mybatis/dsno2/hiddenDangerCheckStandardLibrary/CommonMapper.xml create mode 100644 src/main/resources/mybatis/dsno2/hiddenDangerCheckStandardLibrary/DictionaryMapper.xml create mode 100644 src/main/webapp/uploadFiles/file/hiddenDangerCheckStandardTemplate.xls diff --git a/src/main/java/com/zcloud/controller/hiddenDangerCheckStandardLibrary/CommonController.java b/src/main/java/com/zcloud/controller/hiddenDangerCheckStandardLibrary/CommonController.java new file mode 100644 index 0000000..4b369d6 --- /dev/null +++ b/src/main/java/com/zcloud/controller/hiddenDangerCheckStandardLibrary/CommonController.java @@ -0,0 +1,197 @@ +package com.zcloud.controller.hiddenDangerCheckStandardLibrary; + +import com.alibaba.fastjson.JSONArray; +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.service.bus.HiddenCheckService; +import com.zcloud.service.bus.HiddenSchemeService; +import com.zcloud.service.bus.HiddenService; +import com.zcloud.service.bus.ImgFilesService; +import com.zcloud.service.hiddenDangerCheckStandardLibrary.CommonService; +import com.zcloud.util.*; +import org.apache.commons.lang.StringUtils; +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.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletResponse; +import java.io.File; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 说明:隐患排查标准表(通用) + * 作者:wangpeng + * 时间:2024-01-25 + * 官网:www.zcloudchina.com + */ +@Controller +@RequestMapping("/hiddenDangerCheckStandardCommon") +public class CommonController extends BaseController { + + @Autowired + private CommonService commonService; + + /** + * 新增 + * + * @param + * @throws Exception + */ + @RequestMapping(value = "/add") + @RequiresPermissions("hiddenDangerCheckStandardCommon:add") + @ResponseBody + public Object add() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("COMMON_ID", this.get32UUID()); + commonService.save(pd); + map.put("result", errInfo); + return map; + } + + /** + * 删除 + * + * @param out + * @throws Exception + */ + @RequestMapping(value = "/delete") + @RequiresPermissions("hiddenDangerCheckStandardCommon:del") + @ResponseBody + public Object delete() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DELETEOR_ID", Jurisdiction.getUSER_ID()); + pd.put("DELETEOR_NAME", Jurisdiction.getName()); + pd.put("DELETE_TIME", DateUtil.getTime()); + commonService.delete(pd); + map.put("result", errInfo); //返回结果 + return map; + } + + /** + * 修改 + * + * @param + * @throws Exception + */ + @RequestMapping(value = "/edit") + @RequiresPermissions("hiddenDangerCheckStandardCommon:edit") + @ResponseBody + public Object edit() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + commonService.edit(pd); + map.put("result", errInfo); + return map; + } + + /** + * 列表 + * + * @param page + * @throws Exception + */ + @RequestMapping(value = "/list") + @RequiresPermissions("hiddenDangerCheckStandardCommon:list") + @ResponseBody + public Object list(Page page) throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + page.setPd(pd); + List varList = commonService.list(page); //列出Common列表 + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + + /** + * 去修改页面获取数据 + * + * @param + * @throws Exception + */ + @RequestMapping(value = "/goEdit") + @RequiresPermissions("hiddenDangerCheckStandardCommon:edit") + @ResponseBody + public Object goEdit() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd = commonService.findById(pd); //根据ID读取 + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + /** + * 批量删除 + * + * @param + * @throws Exception + */ + @RequestMapping(value = "/deleteAll") + @RequiresPermissions("hiddenDangerCheckStandardCommon:del") + @ResponseBody + 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(","); + PageData del = new PageData(); + del.put("ArrayDATA_IDS", ArrayDATA_IDS); + commonService.deleteAll(del); + errInfo = "success"; + } else { + errInfo = "error"; + } + map.put("result", errInfo); //返回结果 + return map; + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excelModel") + public void exportExcelModel(HttpServletResponse response) throws Exception{ + FileDownload.fileDownload(response, PathUtil.getProjectpath() + Const.FILEPATHFILE + "hiddenDangerCheckStandardTemplate.xls", "隐患排查标准模板.xls"); + } + + @RequestMapping("importExcel") + @ResponseBody + public Object importExcel(@RequestParam(value = "FILE") MultipartFile[] excel) throws Exception{ + Map map = new HashMap(); + PageData pd = new PageData(); + pd = this.getPageData(); + try { + map = commonService.importExcel(pd,excel); + return map; + } catch (Exception e) { + map.put("result", "fail"); // 返回结果 + map.put("resultStr", ""); + return map; + } + } +} diff --git a/src/main/java/com/zcloud/controller/system/DictionariesController.java b/src/main/java/com/zcloud/controller/system/DictionariesController.java index 29b77b2..0f0d6d4 100644 --- a/src/main/java/com/zcloud/controller/system/DictionariesController.java +++ b/src/main/java/com/zcloud/controller/system/DictionariesController.java @@ -592,4 +592,22 @@ public class DictionariesController extends BaseController { map.put("result", errInfo); //返回结果 return map; } + + /**获取连级数据 + * @return + * @throws Exception + */ + @RequestMapping(value="/getDictTreeMoreLevel") + @ResponseBody + public Object getDictTreeMoreLevel() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + String DICTIONARIES_ID = pd.getString("DICTIONARIES_ID"); + List varList = dictionariesService.getDictTreeMoreLevel(DICTIONARIES_ID); //用传过来的ID获取此ID下的子列表数据 + map.put("list", varList); + map.put("result", errInfo); //返回结果 + return map; + } } diff --git a/src/main/java/com/zcloud/mapper/dsno2/hiddenDangerCheckStandardLibrary/CommonItemMapper.java b/src/main/java/com/zcloud/mapper/dsno2/hiddenDangerCheckStandardLibrary/CommonItemMapper.java new file mode 100644 index 0000000..86ed6dc --- /dev/null +++ b/src/main/java/com/zcloud/mapper/dsno2/hiddenDangerCheckStandardLibrary/CommonItemMapper.java @@ -0,0 +1,58 @@ +package com.zcloud.mapper.dsno2.hiddenDangerCheckStandardLibrary; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +/** + * 说明:隐患排查标准明细表(通用) + * 作者:wangpeng + * 时间:2024-01-25 + * 官网:www.zcloudchina.com + */ +public interface CommonItemMapper { + + /**新增 + * @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); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); + + /**批量删除 + * @param pd + * @throws Exception + */ + void deleteAll(PageData pd); +} + diff --git a/src/main/java/com/zcloud/mapper/dsno2/hiddenDangerCheckStandardLibrary/CommonMapper.java b/src/main/java/com/zcloud/mapper/dsno2/hiddenDangerCheckStandardLibrary/CommonMapper.java new file mode 100644 index 0000000..42e55c4 --- /dev/null +++ b/src/main/java/com/zcloud/mapper/dsno2/hiddenDangerCheckStandardLibrary/CommonMapper.java @@ -0,0 +1,58 @@ +package com.zcloud.mapper.dsno2.hiddenDangerCheckStandardLibrary; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +/** + * 说明:隐患排查标准表(通用) + * 作者:wangpeng + * 时间:2024-01-25 + * 官网:www.zcloudchina.com + */ +public interface CommonMapper { + + /**新增 + * @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); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); + + /**批量删除 + * @param pd + * @throws Exception + */ + void deleteAll(PageData pd); +} + diff --git a/src/main/java/com/zcloud/mapper/dsno2/hiddenDangerCheckStandardLibrary/DictionaryMapper.java b/src/main/java/com/zcloud/mapper/dsno2/hiddenDangerCheckStandardLibrary/DictionaryMapper.java new file mode 100644 index 0000000..b1a32eb --- /dev/null +++ b/src/main/java/com/zcloud/mapper/dsno2/hiddenDangerCheckStandardLibrary/DictionaryMapper.java @@ -0,0 +1,60 @@ +package com.zcloud.mapper.dsno2.hiddenDangerCheckStandardLibrary; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +/** + * 说明:隐患排查标准字典表(通用) + * 作者:wangpeng + * 时间:2024-01-25 + * 官网:www.zcloudchina.com + */ +public interface DictionaryMapper { + + /**新增 + * @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); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); + + /**批量删除 + * @param pd + * @throws Exception + */ + void deleteAll(PageData pd); + + Integer getCount(PageData pd); +} + diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/CommonItemService.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/CommonItemService.java new file mode 100644 index 0000000..fa2bdb4 --- /dev/null +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/CommonItemService.java @@ -0,0 +1,58 @@ +package com.zcloud.service.hiddenDangerCheckStandardLibrary; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +/** + * 说明:隐患排查标准明细表(通用) + * 作者:wangpeng + * 时间:2024-01-25 + * 官网:www.zcloudchina.com + */ +public interface CommonItemService { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param pd + * @throws Exception + */ + void deleteAll(PageData pd)throws Exception; +} + diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/CommonService.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/CommonService.java new file mode 100644 index 0000000..97ade5b --- /dev/null +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/CommonService.java @@ -0,0 +1,62 @@ +package com.zcloud.service.hiddenDangerCheckStandardLibrary; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import org.springframework.web.multipart.MultipartFile; + +import java.util.List; +import java.util.Map; + +/** + * 说明:隐患排查标准表(通用) + * 作者:wangpeng + * 时间:2024-01-25 + * 官网:www.zcloudchina.com + */ +public interface CommonService { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param pd + * @throws Exception + */ + void deleteAll(PageData pd)throws Exception; + + Map importExcel(PageData pd, MultipartFile[] excel) throws Exception; +} + diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/DictionaryService.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/DictionaryService.java new file mode 100644 index 0000000..dc114ec --- /dev/null +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/DictionaryService.java @@ -0,0 +1,64 @@ +package com.zcloud.service.hiddenDangerCheckStandardLibrary; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +/** + * 说明:隐患排查标准字典表(通用) + * 作者:wangpeng + * 时间:2024-01-25 + * 官网:www.zcloudchina.com + */ +public interface DictionaryService { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param pd + * @throws Exception + */ + void deleteAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + Integer getCount(PageData pd)throws Exception; +} + diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/impl/CommonItemServiceImpl.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/impl/CommonItemServiceImpl.java new file mode 100644 index 0000000..94e72bc --- /dev/null +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/impl/CommonItemServiceImpl.java @@ -0,0 +1,104 @@ +package com.zcloud.service.hiddenDangerCheckStandardLibrary.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.dsno2.hiddenDangerCheckStandardLibrary.CommonItemMapper; +import com.zcloud.mapper.dsno2.hiddenDangerCheckStandardLibrary.CommonMapper; +import com.zcloud.service.hiddenDangerCheckStandardLibrary.CommonItemService; +import com.zcloud.service.hiddenDangerCheckStandardLibrary.CommonService; +import com.zcloud.util.Warden; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.util.List; + +/** + * 说明:隐患排查标准明细表(通用) + * 作者:wangpeng + * 时间:2024-01-25 + * 官网:www.zcloudchina.com + */ +@Service +@Transactional //开启事物 +public class CommonItemServiceImpl implements CommonItemService { + + @Resource + private CommonService commonService; + @Resource + private CommonItemMapper commonItemMapper; + + /** + * 新增 + * + * @param pd + * @throws Exception + */ + public void save(PageData pd) throws Exception { + Warden.initDate(pd); + commonItemMapper.save(pd); + } + + /** + * 删除 + * + * @param pd + * @throws Exception + */ + public void delete(PageData pd) throws Exception { + commonItemMapper.delete(pd); + } + + /** + * 修改 + * + * @param pd + * @throws Exception + */ + public void edit(PageData pd) throws Exception { + Warden.updateDate(pd); + commonItemMapper.edit(pd); + } + + /** + * 列表 + * + * @param page + * @throws Exception + */ + public List list(Page page) throws Exception { + return commonItemMapper.datalistPage(page); + } + + /** + * 列表(全部) + * + * @param pd + * @throws Exception + */ + public List listAll(PageData pd) throws Exception { + return commonItemMapper.listAll(pd); + } + + /** + * 通过id获取数据 + * + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd) throws Exception { + return commonItemMapper.findById(pd); + } + + /** + * 批量删除 + * + * @param pd + * @throws Exception + */ + public void deleteAll(PageData pd) throws Exception { + commonItemMapper.deleteAll(pd); + } + +} + diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/impl/CommonServiceImpl.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/impl/CommonServiceImpl.java new file mode 100644 index 0000000..63277d4 --- /dev/null +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/impl/CommonServiceImpl.java @@ -0,0 +1,265 @@ +package com.zcloud.service.hiddenDangerCheckStandardLibrary.impl; + +import com.alibaba.excel.EasyExcel; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.dsno2.hiddenDangerCheckStandardLibrary.CommonMapper; +import com.zcloud.service.depository.impl.HiddenLibraryWarden; +import com.zcloud.service.hiddenDangerCheckStandardLibrary.CommonItemService; +import com.zcloud.service.hiddenDangerCheckStandardLibrary.CommonService; +import com.zcloud.service.hiddenDangerCheckStandardLibrary.DictionaryService; +import com.zcloud.service.system.DictionariesService; +import com.zcloud.util.ObjectExcelRead; +import com.zcloud.util.Tools; +import com.zcloud.util.UuidUtil; +import com.zcloud.util.Warden; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.multipart.MultipartFile; + +import javax.annotation.Resource; +import java.util.*; +import java.util.stream.Collectors; + +/** + * 说明:隐患排查标准表(通用) + * 作者:wangpeng + * 时间:2024-01-25 + * 官网:www.zcloudchina.com + */ +@Service +@Transactional //开启事物 +public class CommonServiceImpl implements CommonService { + + @Resource + private CommonMapper commonMapper; + + @Autowired + private CommonItemService commonItemService; + @Autowired + private DictionaryService dictionaryService; + + /** + * 新增 + * + * @param pd + * @throws Exception + */ + public void save(PageData pd) throws Exception { + Warden.initDate(pd); + commonMapper.save(pd); + } + + /** + * 删除 + * + * @param pd + * @throws Exception + */ + public void delete(PageData pd) throws Exception { + commonMapper.delete(pd); + } + + /** + * 修改 + * + * @param pd + * @throws Exception + */ + public void edit(PageData pd) throws Exception { + Warden.updateDate(pd); + commonMapper.edit(pd); + } + + /** + * 列表 + * + * @param page + * @throws Exception + */ + public List list(Page page) throws Exception { + return commonMapper.datalistPage(page); + } + + /** + * 列表(全部) + * + * @param pd + * @throws Exception + */ + public List listAll(PageData pd) throws Exception { + return commonMapper.listAll(pd); + } + + /** + * 通过id获取数据 + * + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd) throws Exception { + return commonMapper.findById(pd); + } + + /** + * 批量删除 + * + * @param pd + * @throws Exception + */ + public void deleteAll(PageData pd) throws Exception { + commonMapper.deleteAll(pd); + } + + + @Override + public Map importExcel(PageData pd, MultipartFile[] excel) throws Exception { + Map result = new HashMap(); + String errInfo = "success"; + List> excelInfo = EasyExcel.read(excel[0].getInputStream()).sheet().doReadSync(); + + System.out.println(excelInfo); + Map dictAll = new HashMap<>(); + List dictList = dictionaryService.listAll(new PageData()); + dictList.forEach(dict -> { + dictAll.put(dict.getString("DICTIONARY_NAME")+"_"+dict.getString("DICTIONARY_LEVEL"), dict); + }); + + List header = new ArrayList<>(); + header.add("检查类别"); //0 + header.add("检查项目"); //1 + header.add("检查内容"); //2 + header.add("检查标准"); //3 + header.add("参考依据"); //4 + header.add("检查合格项"); //5 + header.add("检查不合格项"); //6 + header.add("操作类型"); //7 + + List dictSaveList = new ArrayList<>(); + List dataList = new ArrayList<>(); + int succeeNum = 1; + StringBuffer errorStr = new StringBuffer(); + for (int i = 0; i < excelInfo.size(); i++) { + succeeNum++; + PageData data = new PageData(); + data.put("COMMON_ITEM_ID",UuidUtil.get32UUID()); + data.put("COMMON_ITEM_SORT",(i+1)); + Map mapExcel = excelInfo.get(i); + PageData dict1 = new PageData(); + PageData dict2 = new PageData(); + PageData dict3 = new PageData(); + for (int j = 0; j < header.size(); j++) { + if (Tools.isEmpty(mapExcel.get(j)) && j < 7) { + errorStr.append("

第" + succeeNum + "行的\"" + header.get(j) + "\"无数据

"); + continue; + } + if (j == 7) { + if (Tools.isEmpty(mapExcel.get(j))) { + errorStr.append("

第" + succeeNum + "行的\"" + header.get(j) + "\"无数据

"); + continue; + } else if (!"选择".equals(mapExcel.get(j).trim()) && !"填写".equals(mapExcel.get(j).trim())) { + errorStr.append("

第" + succeeNum + "行的\"" + header.get(j) + "\"数据内容不正确,请选择正确选项

"); + continue; + } + } + + if (j<3) { + setItemDict(dictAll, mapExcel, j, data, dictSaveList, dict1, dict2, dict3); + } else { + switch (j) { + case 3: + data.put("CHECK_STANDARD", mapExcel.get(j).trim()); + break; + case 4: + data.put("REFERENCE_BASIS", mapExcel.get(j).trim()); + break; + case 5: + data.put("CHECK_QUALIFIED", mapExcel.get(j).trim()); + break; + case 6: + data.put("CHECK_UNQUALIFIED", mapExcel.get(j).trim()); + break; + case 7: + data.put("OPERATION_TYPE", "填写".equals(mapExcel.get(j).trim()) ? 2 : 1); + break; + } + } + } + dataList.add(data); + } + if (Tools.isEmpty(errorStr.toString())) { + pd.put("COMMON_ID",UuidUtil.get32UUID()); + this.save(pd); + for (PageData dict : dictSaveList) { + dictionaryService.save(dict); + } + for (PageData entity : dataList) { + entity.put("COMMON_ID",pd.getString("COMMON_ID")); + commonItemService.save(entity); + } + errorStr.append("成功导入" + dataList.size() + "条数据!"); + } else { + errInfo = "error"; + } + result.put("result", "success"); //返回结果 + result.put("resultType", errInfo); //返回message类型 + result.put("isExcel","1"); //返回类型 + result.put("resultStr", errorStr.toString()); + return result; + } + + private void setItemDict(Map dictAll, Map map, int j, PageData data, List dictSaveList, + PageData dict1, PageData dict2, PageData dict3) { + if (dictAll.containsKey(map.get(j).trim()+"_"+(j+1))) { + switch(j) { + case 0: + dict1 = dictAll.get(map.get(j).trim()+"_"+(j+1)); + data.put("CHECK_CATEGORY",dict1.getString("DICTIONARY_ID")); + break; + case 1: + dict2 = dictAll.get(map.get(j).trim()+"_"+(j+1)); + data.put("CHECK_ITEM",dict2.getString("DICTIONARY_ID")); + break; + case 2: + dict3 = dictAll.get(map.get(j).trim()+"_"+(j+1)); + data.put("CHECK_CONTENT",dict3.getString("DICTIONARY_ID")); + break; + } + } else { + if (j == 0) { + dict1.put("DICTIONARY_ID", UuidUtil.get32UUID()); + dict1.put("DICTIONARY_NAME", map.get(j)); + dict1.put("PARENT_ID", "0"); + dict1.put("PARENT_IDS", dict1.getString("DICTIONARY_ID")); + dict1.put("DICTIONARY_NAMES", dict1.getString("DICTIONARY_NAME")); + dict1.put("DICTIONARY_LEVEL", 1); + dictSaveList.add(dict1); + dictAll.put(dict1.getString("DICTIONARY_NAME")+"_"+dict1.getString("DICTIONARY_LEVEL"), dict1); + data.put("CHECK_CATEGORY",dictAll.get(map.get(j)+"_"+(j+1)).getString("DICTIONARY_ID")); + } else if (j == 1) { + dict2.put("DICTIONARY_ID", UuidUtil.get32UUID()); + dict2.put("DICTIONARY_NAME", map.get(j)); + dict2.put("PARENT_ID", dict1.getString("DICTIONARY_ID")); + dict2.put("PARENT_IDS", dict1.getString("DICTIONARY_ID")+","+dict2.getString("DICTIONARY_ID")); + dict2.put("DICTIONARY_NAMES", dict1.getString("DICTIONARY_NAME")+","+dict2.getString("DICTIONARY_NAME")); + dict2.put("DICTIONARY_LEVEL", 2); + dictSaveList.add(dict2); + dictAll.put(dict2.getString("DICTIONARY_NAME")+"_"+dict2.getString("DICTIONARY_LEVEL"), dict2); + data.put("CHECK_ITEM",dictAll.get(map.get(j)+"_"+(j+1)).getString("DICTIONARY_ID")); + } else if (j == 2) { + dict3.put("DICTIONARY_ID", UuidUtil.get32UUID()); + dict3.put("DICTIONARY_NAME", map.get(j)); + dict3.put("PARENT_ID", dict1.getString("DICTIONARY_ID")); + dict3.put("PARENT_IDS", dict1.getString("DICTIONARY_ID")+","+dict2.getString("DICTIONARY_ID")+","+dict3.getString("DICTIONARY_ID")); + dict3.put("DICTIONARY_NAMES", dict1.getString("DICTIONARY_NAME")+","+dict2.getString("DICTIONARY_NAME")+","+dict3.getString("DICTIONARY_NAME")); + dict3.put("DICTIONARY_LEVEL", 3); + dictSaveList.add(dict3); + dictAll.put(dict3.getString("DICTIONARY_NAME")+"_"+dict3.getString("DICTIONARY_LEVEL"), dict3); + data.put("CHECK_CONTENT",dictAll.get(map.get(j)+"_"+(j+1)).getString("DICTIONARY_ID")); + } + } + } +} + diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/impl/DictionaryServiceImpl.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/impl/DictionaryServiceImpl.java new file mode 100644 index 0000000..4fe53bf --- /dev/null +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandardLibrary/impl/DictionaryServiceImpl.java @@ -0,0 +1,109 @@ +package com.zcloud.service.hiddenDangerCheckStandardLibrary.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.dsno2.hiddenDangerCheckStandardLibrary.DictionaryMapper; +import com.zcloud.service.hiddenDangerCheckStandardLibrary.DictionaryService; +import com.zcloud.util.Tools; +import com.zcloud.util.Warden; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.util.List; + +/** + * 说明:隐患排查标准字典表(通用) + * 作者:wangpeng + * 时间:2024-01-25 + * 官网:www.zcloudchina.com + */ +@Service +@Transactional //开启事物 +public class DictionaryServiceImpl implements DictionaryService { + + @Resource + private DictionaryMapper dictionaryMapper; + + /** + * 新增 + * + * @param pd + * @throws Exception + */ + public void save(PageData pd) throws Exception { + Warden.initDate(pd); + if (Tools.isEmpty(pd.getString("DICTIONARY_SORT"))) { + Integer count = this.getCount(pd); + pd.put("DICTIONARY_SORT", count+1); + } + dictionaryMapper.save(pd); + } + + /** + * 删除 + * + * @param pd + * @throws Exception + */ + public void delete(PageData pd) throws Exception { + dictionaryMapper.delete(pd); + } + + /** + * 修改 + * + * @param pd + * @throws Exception + */ + public void edit(PageData pd) throws Exception { + Warden.updateDate(pd); + dictionaryMapper.edit(pd); + } + + /** + * 列表 + * + * @param page + * @throws Exception + */ + public List list(Page page) throws Exception { + return dictionaryMapper.datalistPage(page); + } + + /** + * 列表(全部) + * + * @param pd + * @throws Exception + */ + public List listAll(PageData pd) throws Exception { + return dictionaryMapper.listAll(pd); + } + + /** + * 通过id获取数据 + * + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd) throws Exception { + return dictionaryMapper.findById(pd); + } + + /** + * 批量删除 + * + * @param pd + * @throws Exception + */ + public void deleteAll(PageData pd) throws Exception { + dictionaryMapper.deleteAll(pd); + } + + @Override + public Integer getCount(PageData pd) throws Exception { + return dictionaryMapper.getCount(pd); + } +} + diff --git a/src/main/java/com/zcloud/service/system/DictionariesService.java b/src/main/java/com/zcloud/service/system/DictionariesService.java index eb27d95..e0fbc98 100644 --- a/src/main/java/com/zcloud/service/system/DictionariesService.java +++ b/src/main/java/com/zcloud/service/system/DictionariesService.java @@ -115,4 +115,12 @@ public interface DictionariesService { public List getTreeFromBelow(List nextList,PageData pd,int level, PageData agent,int num)throws Exception; List findByCondition(PageData condition); + + /** + * 根据 父节点id 获取子节点信息和 子节点包含的子节点数量 + * @param parentId + * @return + * @throws Exception + */ + public List getDictTreeMoreLevel(String parentId) throws Exception; } diff --git a/src/main/java/com/zcloud/service/system/impl/DictionariesServiceImpl.java b/src/main/java/com/zcloud/service/system/impl/DictionariesServiceImpl.java index 9f9dcdf..70a55da 100644 --- a/src/main/java/com/zcloud/service/system/impl/DictionariesServiceImpl.java +++ b/src/main/java/com/zcloud/service/system/impl/DictionariesServiceImpl.java @@ -307,4 +307,34 @@ public class DictionariesServiceImpl implements DictionariesService { // } return null; } + + @Override + public List getDictTreeMoreLevel(String parentId) throws Exception { + List varList = dictionariesMapper.listSubDictByParentIdAndSunCount(parentId); + List pdList = new ArrayList(); + for(PageData d :varList){ + PageData pdf = new PageData(); + pdf.put("value", d.getString("DICTIONARIES_ID")); + pdf.put("label", d.getString("NAME")); + if (Integer.parseInt(d.getString("zcount")) > 0) { + setDictTreeMoreLevelChild(pdf, d); + } + pdList.add(pdf); + } + return pdList; + } + private void setDictTreeMoreLevelChild(PageData parent, PageData dict) { + List varList = dictionariesMapper.listSubDictByParentIdAndSunCount(dict.getString("DICTIONARIES_ID")); + List childList = new ArrayList(); + for(PageData d :varList){ + PageData pdf = new PageData(); + pdf.put("value", d.getString("DICTIONARIES_ID")); + pdf.put("label", d.getString("NAME")); + if (Integer.parseInt(d.getString("zcount")) > 0) { + setDictTreeMoreLevelChild(pdf, d); + } + childList.add(pdf); + } + parent.put("children", childList); + } } diff --git a/src/main/resources/mybatis/dsno2/hiddenDangerCheckStandardLibrary/CommonItemMapper.xml b/src/main/resources/mybatis/dsno2/hiddenDangerCheckStandardLibrary/CommonItemMapper.xml new file mode 100644 index 0000000..da574c4 --- /dev/null +++ b/src/main/resources/mybatis/dsno2/hiddenDangerCheckStandardLibrary/CommonItemMapper.xml @@ -0,0 +1,258 @@ + + + + + + + BUS_HIDDENDANGERCHECKSTANDARD_COMMON_ITEM + + + + + SYS_DICTIONARIES + + + + + f.COMMON_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.ISDELETE, + f.CREATOR_ID, + f.CREATOR_NAME, + f.CREATED_TIME, + f.OPERATOR_ID, + f.OPERATOR_NAME, + f.OPERATE_TIME, + f.DELETEOR_ID, + f.DELETEOR_NAME, + f.DELETE_TIME, + f.COMMON_ITEM_ID + + + + + COMMON_ID, + CHECK_CATEGORY, + CHECK_ITEM, + CHECK_CONTENT, + CHECK_STANDARD, + REFERENCE_BASIS, + CHECK_QUALIFIED, + CHECK_UNQUALIFIED, + OPERATION_TYPE, + COMMON_ITEM_SORT, + ISDELETE, + CREATOR_ID, + CREATOR_NAME, + CREATED_TIME, + OPERATOR_ID, + OPERATOR_NAME, + OPERATE_TIME, + DELETEOR_ID, + DELETEOR_NAME, + DELETE_TIME, + COMMON_ITEM_ID + + + + + #{COMMON_ID}, + #{CHECK_CATEGORY}, + #{CHECK_ITEM}, + #{CHECK_CONTENT}, + #{CHECK_STANDARD}, + #{REFERENCE_BASIS}, + #{CHECK_QUALIFIED}, + #{CHECK_UNQUALIFIED}, + #{OPERATION_TYPE}, + #{COMMON_ITEM_SORT}, + #{ISDELETE}, + #{CREATOR_ID}, + #{CREATOR_NAME}, + #{CREATED_TIME}, + #{OPERATOR_ID}, + #{OPERATOR_NAME}, + #{OPERATE_TIME}, + #{DELETEOR_ID}, + #{DELETEOR_NAME}, + #{DELETE_TIME}, + #{COMMON_ITEM_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + + update + + set + ISDELETE = '1', + DELETEOR_ID = #{DELETEOR_ID}, + DELETEOR_NAME = #{DELETEOR_NAME}, + DELETE_TIME = #{DELETE_TIME} + where + COMMON_ITEM_ID = #{COMMON_ITEM_ID} + + + + + update + + set + + COMMON_ID = #{COMMON_ID}, + + + CHECK_CATEGORY = #{CHECK_CATEGORY}, + + + CHECK_ITEM = #{CHECK_ITEM}, + + + CHECK_CONTENT = #{CHECK_CONTENT}, + + + CHECK_STANDARD = #{CHECK_STANDARD}, + + + REFERENCE_BASIS = #{REFERENCE_BASIS}, + + + CHECK_QUALIFIED = #{CHECK_QUALIFIED}, + + + CHECK_UNQUALIFIED = #{CHECK_UNQUALIFIED}, + + + OPERATION_TYPE = #{OPERATION_TYPE}, + + + COMMON_ITEM_SORT = #{COMMON_ITEM_SORT}, + + + ISDELETE = #{ISDELETE}, + + + CREATOR_ID = #{CREATOR_ID}, + + + CREATOR_NAME = #{CREATOR_NAME}, + + + CREATED_TIME = #{CREATED_TIME}, + + + OPERATOR_ID = #{OPERATOR_ID}, + + + OPERATOR_NAME = #{OPERATOR_NAME}, + + + OPERATE_TIME = #{OPERATE_TIME}, + + + DELETEOR_ID = #{DELETEOR_ID}, + + + DELETEOR_NAME = #{DELETEOR_NAME}, + + + DELETE_TIME = #{DELETE_TIME}, + + COMMON_ITEM_ID = COMMON_ITEM_ID + where + COMMON_ITEM_ID = #{COMMON_ITEM_ID} + + + + + + + + + + + + + + + update + + set + ISDELETE = '1', + DELETEOR_ID = #{DELETEOR_ID}, + DELETEOR_NAME = #{DELETEOR_NAME}, + DELETE_TIME = #{DELETE_TIME} + where + COMMON_ITEM_ID in + + #{item} + + + + diff --git a/src/main/resources/mybatis/dsno2/hiddenDangerCheckStandardLibrary/CommonMapper.xml b/src/main/resources/mybatis/dsno2/hiddenDangerCheckStandardLibrary/CommonMapper.xml new file mode 100644 index 0000000..a9133db --- /dev/null +++ b/src/main/resources/mybatis/dsno2/hiddenDangerCheckStandardLibrary/CommonMapper.xml @@ -0,0 +1,202 @@ + + + + + + + BUS_HIDDENDANGERCHECKSTANDARD_COMMON + + + + + SYS_DICTIONARIES + + + + + f.INDUSTRY_TYPE, + f.INDUSTRY_TYPE_TREE, + f.INDUSTRY_TYPE_NAMES, + f.CHECK_STANDARD_NAME, + f.ISDELETE, + f.CREATOR_ID, + f.CREATOR_NAME, + f.CREATED_TIME, + f.OPERATOR_ID, + f.OPERATOR_NAME, + f.OPERATE_TIME, + f.DELETEOR_ID, + f.DELETEOR_NAME, + f.DELETE_TIME, + f.COMMON_ID + + + + + INDUSTRY_TYPE, + INDUSTRY_TYPE_TREE, + INDUSTRY_TYPE_NAMES, + CHECK_STANDARD_NAME, + ISDELETE, + CREATOR_ID, + CREATOR_NAME, + CREATED_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}, + #{ISDELETE}, + #{CREATOR_ID}, + #{CREATOR_NAME}, + #{CREATED_TIME}, + #{OPERATOR_ID}, + #{OPERATOR_NAME}, + #{OPERATE_TIME}, + #{DELETEOR_ID}, + #{DELETEOR_NAME}, + #{DELETE_TIME}, + #{COMMON_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + + update + + set + ISDELETE = '1', + DELETEOR_ID = #{DELETEOR_ID}, + DELETEOR_NAME = #{DELETEOR_NAME}, + DELETE_TIME = #{DELETE_TIME} + where + COMMON_ID = #{COMMON_ID} + + + + + update + + set + + INDUSTRY_TYPE = #{INDUSTRY_TYPE}, + + + INDUSTRY_TYPE_TREE = #{INDUSTRY_TYPE_TREE}, + + + INDUSTRY_TYPE_NAMES = #{INDUSTRY_TYPE_NAMES}, + + + CHECK_STANDARD_NAME = #{CHECK_STANDARD_NAME}, + + + ISDELETE = #{ISDELETE}, + + + CREATOR_ID = #{CREATOR_ID}, + + + CREATOR_NAME = #{CREATOR_NAME}, + + + CREATED_TIME = #{CREATED_TIME}, + + + OPERATOR_ID = #{OPERATOR_ID}, + + + OPERATOR_NAME = #{OPERATOR_NAME}, + + + OPERATE_TIME = #{OPERATE_TIME}, + + + DELETEOR_ID = #{DELETEOR_ID}, + + + DELETEOR_NAME = #{DELETEOR_NAME}, + + + DELETE_TIME = #{DELETE_TIME}, + + COMMON_ID = COMMON_ID + where + COMMON_ID = #{COMMON_ID} + + + + + + + + + + + + + + update + + set + ISDELETE = '1', + DELETEOR_ID = #{DELETEOR_ID}, + DELETEOR_NAME = #{DELETEOR_NAME}, + DELETE_TIME = #{DELETE_TIME} + where + COMMON_ID in + + #{item} + + + + diff --git a/src/main/resources/mybatis/dsno2/hiddenDangerCheckStandardLibrary/DictionaryMapper.xml b/src/main/resources/mybatis/dsno2/hiddenDangerCheckStandardLibrary/DictionaryMapper.xml new file mode 100644 index 0000000..e0f615f --- /dev/null +++ b/src/main/resources/mybatis/dsno2/hiddenDangerCheckStandardLibrary/DictionaryMapper.xml @@ -0,0 +1,220 @@ + + + + + + + BUS_HIDDENDANGERCHECKSTANDARD_DICTIONARY + + + + + SYS_DICTIONARIES + + + + + f.DICTIONARY_NAME, + f.PARENT_ID, + f.PARENT_IDS, + f.DICTIONARY_NAMES, + f.DICTIONARY_LEVEL, + f.DICTIONARY_SORT, + f.ISDELETE, + f.CREATOR_ID, + f.CREATOR_NAME, + f.CREATED_TIME, + f.OPERATOR_ID, + f.OPERATOR_NAME, + f.OPERATE_TIME, + f.DELETEOR_ID, + f.DELETEOR_NAME, + f.DELETE_TIME, + f.DICTIONARY_ID + + + + + DICTIONARY_NAME, + PARENT_ID, + PARENT_IDS, + DICTIONARY_NAMES, + DICTIONARY_LEVEL, + DICTIONARY_SORT, + ISDELETE, + CREATOR_ID, + CREATOR_NAME, + CREATED_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}, + #{ISDELETE}, + #{CREATOR_ID}, + #{CREATOR_NAME}, + #{CREATED_TIME}, + #{OPERATOR_ID}, + #{OPERATOR_NAME}, + #{OPERATE_TIME}, + #{DELETEOR_ID}, + #{DELETEOR_NAME}, + #{DELETE_TIME}, + #{DICTIONARY_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + + update + + set + ISDELETE = '1', + DELETEOR_ID = #{DELETEOR_ID}, + DELETEOR_NAME = #{DELETEOR_NAME}, + DELETE_TIME = #{DELETE_TIME} + where + DICTIONARY_ID = #{DICTIONARY_ID} + + + + + update + + set + + DICTIONARY_NAME = #{DICTIONARY_NAME}, + + + PARENT_ID = #{PARENT_ID}, + + + PARENT_IDS = #{PARENT_IDS}, + + + DICTIONARY_NAMES = #{DICTIONARY_NAMES}, + + + DICTIONARY_LEVEL = #{DICTIONARY_LEVEL}, + + + DICTIONARY_SORT = #{DICTIONARY_SORT}, + + + ISDELETE = #{ISDELETE}, + + + CREATOR_ID = #{CREATOR_ID}, + + + CREATOR_NAME = #{CREATOR_NAME}, + + + CREATED_TIME = #{CREATED_TIME}, + + + OPERATOR_ID = #{OPERATOR_ID}, + + + OPERATOR_NAME = #{OPERATOR_NAME}, + + + OPERATE_TIME = #{OPERATE_TIME}, + + + DELETEOR_ID = #{DELETEOR_ID}, + + + DELETEOR_NAME = #{DELETEOR_NAME}, + + + DELETE_TIME = #{DELETE_TIME}, + + DICTIONARY_ID = DICTIONARY_ID + where + DICTIONARY_ID = #{DICTIONARY_ID} + + + + + + + + + + + + + + update + + set + ISDELETE = '1', + DELETEOR_ID = #{DELETEOR_ID}, + DELETEOR_NAME = #{DELETEOR_NAME}, + DELETE_TIME = #{DELETE_TIME} + where + DICTIONARY_ID in + + #{item} + + + + + + diff --git a/src/main/webapp/uploadFiles/file/hiddenDangerCheckStandardTemplate.xls b/src/main/webapp/uploadFiles/file/hiddenDangerCheckStandardTemplate.xls new file mode 100644 index 0000000000000000000000000000000000000000..31d7ed088afe897fadb15fd41b205fb7f71ccc13 GIT binary patch literal 20992 zcmeHP2V7Lg)}Om9uuG95pn$?6C{rK@ao{P&NadF z!1KXtf!7AF16~(=Gw^!gp$QNJ@P^=qAe+-)_1J-AH`QOW&-Plk;!BX{Ke3=?*+AxK-&ZS*ms+nKlWvIAm{U-7i*}KW4dLUr?V-d0iC~^aL69+X}A*d0DJ@)2mPM% zC2^qUNKj`anMgMkR1m9A@b^1ET89`4btnb{cc(N!We(Wcl-3LC9a5Up*WEPNar)Yw z9*qdG9}_P01P(0d5RMPcH;=xyp|8#0N|8gf%pIEI0^?UL@Qbn*Vug}fVA=d(VIfGr z_czfQ{Nt#)6#jmQ^N4)DNLQo};%F)0M?H0DIwggVbR#8nML0=d0S|@v92nW<^>m{7 z<;%rYLPvc(h&(^iy%gXh-CGI2yAnEI3Ef=@K2Hh1ff9awCG>7e=zJw~`Fa=7?X7{% znMHV1dy$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