From c4730709b2864cdd1007a16231928afc1bd85e04 Mon Sep 17 00:00:00 2001 From: zhangqihang Date: Thu, 22 Feb 2024 08:42:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/AppKeyProjectsController.java | 36 ++++++ .../app/AppKeyprojectCheckController.java | 21 ++++ .../relatedparty/OutSourcedMapper.java | 2 + .../PersonnelManagementMapper.java | 2 + .../keyProjects/KeyprojectHiddenService.java | 2 + .../impl/KeyprojectHiddenServiceImpl.java | 1 + .../relatedparty/OutSourcedService.java | 2 + .../impl/OutSourcedServiceImpl.java | 5 + .../PersonnelManagementService.java | 2 + .../impl/PersonnelManagementServiceImpl.java | 5 + .../keyProjects/KeyprojectHiddenMapper.xml | 54 ++++---- .../relatedparty/OutSourcedMapper.xml | 115 +++++++++++++++++- .../PersonnelManagementMapper.xml | 14 ++- 13 files changed, 231 insertions(+), 30 deletions(-) diff --git a/src/main/java/com/zcloud/controller/keyProjects/app/AppKeyProjectsController.java b/src/main/java/com/zcloud/controller/keyProjects/app/AppKeyProjectsController.java index 5c4627b..bace89a 100644 --- a/src/main/java/com/zcloud/controller/keyProjects/app/AppKeyProjectsController.java +++ b/src/main/java/com/zcloud/controller/keyProjects/app/AppKeyProjectsController.java @@ -404,5 +404,41 @@ public class AppKeyProjectsController extends BaseController { return map; } + /**去修改页面获取数据 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd = personnelmanagementService.findByOutsourced(pd); //根据ID读取 + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + /**处罚管理列表 查询自己可以处罚的重点工程 角标计算逻辑 查询重点工程中所有处罚未选择是否处罚的隐患累加 + * @throws Exception + */ + @RequestMapping(value="/getPUNISHlist") + @ResponseBody + public Object getPUNISHlist(Page page) throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件 + if(Tools.notEmpty(KEYWORDS))pd.put("KEYWORDS", KEYWORDS.trim()); + page.setPd(pd); + List varList = outsourcedService.getPUNISHlist(page); //列出OutSourced列表 + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } } diff --git a/src/main/java/com/zcloud/controller/keyProjects/app/AppKeyprojectCheckController.java b/src/main/java/com/zcloud/controller/keyProjects/app/AppKeyprojectCheckController.java index f48dbc7..454fc5a 100644 --- a/src/main/java/com/zcloud/controller/keyProjects/app/AppKeyprojectCheckController.java +++ b/src/main/java/com/zcloud/controller/keyProjects/app/AppKeyprojectCheckController.java @@ -664,4 +664,25 @@ public class AppKeyprojectCheckController extends BaseController { map.put("dockData", JSON.toJSONString(pd)); return map; } + + /**重点工程处罚列表 包含 未选择处罚结果的隐患 已下发处罚但为反馈的隐患 不处罚的隐患 + * @param page + * @throws Exception + */ + @RequestMapping(value="/punishlist") + @ResponseBody + public Object punishlist(Page page) throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件 + if(Tools.notEmpty(KEYWORDS))pd.put("KEYWORDS", KEYWORDS.trim()); + page.setPd(pd); + List varList = keyprojectHiddenService.getpunishlist(page); //列出KeyprojectCheck列表 + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } } diff --git a/src/main/java/com/zcloud/mapper/datasource/relatedparty/OutSourcedMapper.java b/src/main/java/com/zcloud/mapper/datasource/relatedparty/OutSourcedMapper.java index d5c7b3e..3186202 100644 --- a/src/main/java/com/zcloud/mapper/datasource/relatedparty/OutSourcedMapper.java +++ b/src/main/java/com/zcloud/mapper/datasource/relatedparty/OutSourcedMapper.java @@ -90,5 +90,7 @@ public interface OutSourcedMapper{ List outSouceslistPage(Page page); Integer getDingWeiSum(PageData pd); + + List getPUNISHlistPage(Page page); } diff --git a/src/main/java/com/zcloud/mapper/datasource/specialoperation/PersonnelManagementMapper.java b/src/main/java/com/zcloud/mapper/datasource/specialoperation/PersonnelManagementMapper.java index cf7e812..2726158 100644 --- a/src/main/java/com/zcloud/mapper/datasource/specialoperation/PersonnelManagementMapper.java +++ b/src/main/java/com/zcloud/mapper/datasource/specialoperation/PersonnelManagementMapper.java @@ -66,5 +66,7 @@ public interface PersonnelManagementMapper{ void editPassword(PageData pd); PageData findForLogin(PageData pd); + + PageData findByOutsourced(PageData pd); } diff --git a/src/main/java/com/zcloud/service/keyProjects/KeyprojectHiddenService.java b/src/main/java/com/zcloud/service/keyProjects/KeyprojectHiddenService.java index df33096..4a6c822 100644 --- a/src/main/java/com/zcloud/service/keyProjects/KeyprojectHiddenService.java +++ b/src/main/java/com/zcloud/service/keyProjects/KeyprojectHiddenService.java @@ -192,5 +192,7 @@ public interface KeyprojectHiddenService { * @return */ String getCorpInfoIdByHiddenId(PageData pd); + + List getpunishlist(Page page); } diff --git a/src/main/java/com/zcloud/service/keyProjects/impl/KeyprojectHiddenServiceImpl.java b/src/main/java/com/zcloud/service/keyProjects/impl/KeyprojectHiddenServiceImpl.java index 4d9d1c8..c6fb365 100644 --- a/src/main/java/com/zcloud/service/keyProjects/impl/KeyprojectHiddenServiceImpl.java +++ b/src/main/java/com/zcloud/service/keyProjects/impl/KeyprojectHiddenServiceImpl.java @@ -264,5 +264,6 @@ public class KeyprojectHiddenServiceImpl implements KeyprojectHiddenService { public String getCorpInfoIdByHiddenId(PageData pd) { return hiddenMapper.getCorpInfoIdByHiddenId(pd); } + } diff --git a/src/main/java/com/zcloud/service/relatedparty/OutSourcedService.java b/src/main/java/com/zcloud/service/relatedparty/OutSourcedService.java index 0516c34..89a1272 100644 --- a/src/main/java/com/zcloud/service/relatedparty/OutSourcedService.java +++ b/src/main/java/com/zcloud/service/relatedparty/OutSourcedService.java @@ -95,5 +95,7 @@ public interface OutSourcedService{ List outSouceslistPage(Page page); Integer getDingWeiSum(PageData pd); + + List getPUNISHlist(Page page); } diff --git a/src/main/java/com/zcloud/service/relatedparty/impl/OutSourcedServiceImpl.java b/src/main/java/com/zcloud/service/relatedparty/impl/OutSourcedServiceImpl.java index 186bea6..d7103b3 100644 --- a/src/main/java/com/zcloud/service/relatedparty/impl/OutSourcedServiceImpl.java +++ b/src/main/java/com/zcloud/service/relatedparty/impl/OutSourcedServiceImpl.java @@ -147,5 +147,10 @@ public class OutSourcedServiceImpl implements OutSourcedService{ return outsourcedMapper.getDingWeiSum(pd); } + @Override + public List getPUNISHlist(Page page) { + return outsourcedMapper.getPUNISHlistPage(page); + } + } diff --git a/src/main/java/com/zcloud/service/specialoperation/PersonnelManagementService.java b/src/main/java/com/zcloud/service/specialoperation/PersonnelManagementService.java index cc17929..e7adff7 100644 --- a/src/main/java/com/zcloud/service/specialoperation/PersonnelManagementService.java +++ b/src/main/java/com/zcloud/service/specialoperation/PersonnelManagementService.java @@ -66,5 +66,7 @@ public interface PersonnelManagementService{ void editPassword(PageData updateUser) throws Exception; PageData findForLogin(PageData pd); + + PageData findByOutsourced(PageData pd); } diff --git a/src/main/java/com/zcloud/service/specialoperation/impl/PersonnelManagementServiceImpl.java b/src/main/java/com/zcloud/service/specialoperation/impl/PersonnelManagementServiceImpl.java index cac1592..44a6dbc 100644 --- a/src/main/java/com/zcloud/service/specialoperation/impl/PersonnelManagementServiceImpl.java +++ b/src/main/java/com/zcloud/service/specialoperation/impl/PersonnelManagementServiceImpl.java @@ -105,5 +105,10 @@ public class PersonnelManagementServiceImpl implements PersonnelManagementServic return personnelmanagementMapper.findForLogin(pd); } + @Override + public PageData findByOutsourced(PageData pd) { + return personnelmanagementMapper.findByOutsourced(pd); + } + } diff --git a/src/main/resources/mybatis/datasource/keyProjects/KeyprojectHiddenMapper.xml b/src/main/resources/mybatis/datasource/keyProjects/KeyprojectHiddenMapper.xml index 929b44d..6ac38f8 100644 --- a/src/main/resources/mybatis/datasource/keyProjects/KeyprojectHiddenMapper.xml +++ b/src/main/resources/mybatis/datasource/keyProjects/KeyprojectHiddenMapper.xml @@ -1569,33 +1569,33 @@ select + f.WORK_LONGITUDE, + f.WORK_LATITUDE, f.CONTRACT_PIC, f.STARTTIME, f.ENDTIME, @@ -850,4 +853,112 @@ AND (WORK_LONGITUDE IS NULL or WORK_LONGITUDE = '' ) ) c + + + diff --git a/src/main/resources/mybatis/datasource/specialoperation/PersonnelManagementMapper.xml b/src/main/resources/mybatis/datasource/specialoperation/PersonnelManagementMapper.xml index 41ada3d..7747fb3 100644 --- a/src/main/resources/mybatis/datasource/specialoperation/PersonnelManagementMapper.xml +++ b/src/main/resources/mybatis/datasource/specialoperation/PersonnelManagementMapper.xml @@ -33,7 +33,8 @@ f.OPERATTIME, f.ISDELETE, f.CORPINFO_ID, - f.PERSONNELMANAGEMENT_ID + f.PERSONNELMANAGEMENT_ID, + f.PASSWORD @@ -263,4 +264,15 @@ + +