From 3a2a9e174032cd3446b3e52036a18a83376bcadb Mon Sep 17 00:00:00 2001 From: "wh.g" Date: Tue, 20 Aug 2024 17:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E9=A3=8E=E9=99=A9=E6=B8=85?= =?UTF-8?q?=E5=8D=95=E6=9B=B4=E6=94=B9=EF=BC=8C=E5=8F=B0=E8=B4=A6=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/BusPlanningController.java | 8 +- .../projectstart/entity/BusPlanning.java | 3 + .../projectstart/entity/BusPlanningMain.java | 3 + .../service/impl/BusPlanningServiceImpl.java | 214 +++++++++--------- .../standingBook/entity/ProjectAccount.java | 2 +- .../mapper/xml/ProjectAccountMapper.xml | 1 + 6 files changed, 125 insertions(+), 106 deletions(-) diff --git a/projectinformationboot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/projectstart/controller/BusPlanningController.java b/projectinformationboot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/projectstart/controller/BusPlanningController.java index 34dcc65..97bee5c 100644 --- a/projectinformationboot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/projectstart/controller/BusPlanningController.java +++ b/projectinformationboot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/projectstart/controller/BusPlanningController.java @@ -158,7 +158,7 @@ public class BusPlanningController extends JeecgController busAqfxqdList; + /**风险安全清单*/ + private String busAqfxqd; + } diff --git a/projectinformationboot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/projectstart/service/impl/BusPlanningServiceImpl.java b/projectinformationboot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/projectstart/service/impl/BusPlanningServiceImpl.java index fa16850..198a04a 100644 --- a/projectinformationboot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/projectstart/service/impl/BusPlanningServiceImpl.java +++ b/projectinformationboot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/projectstart/service/impl/BusPlanningServiceImpl.java @@ -21,7 +21,7 @@ import java.util.Map; /** * @Description: 项目实施策划 * @Author: jeecg-boot - * @Date: 2022-01-24 + * @Date: 2022-01-24 * @Version: V1.0 */ @Service @@ -34,40 +34,43 @@ public class BusPlanningServiceImpl extends ServiceImpl pageByParams(Page page, BusPlanningQuery busPlanning){ + public Page pageByParams(Page page, BusPlanningQuery busPlanning) { LoginUser loginUser = LoginUtil.getLoginUser(); - String whereSql=""; - if("0".equals(StringUtils.strTrim(loginUser.getPositionSelect()))){ - whereSql=" p.create_user='"+loginUser.getId()+"'"; - }else{ + String whereSql = ""; + if ("0".equals(StringUtils.strTrim(loginUser.getPositionSelect()))) { + whereSql = " p.create_user='" + loginUser.getId() + "'"; + } else { List list = userResponsibleDepartmentService.queryOrgCodeByUserId(loginUser.getId()); - if(list!=null&&list.size()>0){ - whereSql=" ("; - String s =""; + if (list != null && list.size() > 0) { + whereSql = " ("; + String s = ""; int size = list.size(); - for(int k=0;k busDivisionLabourList = busPlanningMain.getBusDivisionLabourList(); - if(busDivisionLabourList!=null&&busDivisionLabourList.size()>0){ - BusDivisionLabour busDivisionLabour=null; + if (busDivisionLabourList != null && busDivisionLabourList.size() > 0) { + BusDivisionLabour busDivisionLabour = null; for (int i = 0; i < busDivisionLabourList.size(); i++) { - busDivisionLabour= busDivisionLabourList.get(i); + busDivisionLabour = busDivisionLabourList.get(i); busDivisionLabour.setProjectId(projectId); busDivisionLabour.setDepartmentCode(taskBearingDepartment); busDivisionLabour.setCreateTime(CommonDateUtil.getNowTime("yyyy-MM-dd HH:mm:ss")); @@ -189,8 +196,8 @@ public class BusPlanningServiceImpl extends ServiceImpl busContractAcceptanceList = busPlanningMain.getBusContractAcceptanceList(); - if(busContractAcceptanceList!=null&&busContractAcceptanceList.size()>0){ - BusContractAcceptance busContractAcceptance =null; + if (busContractAcceptanceList != null && busContractAcceptanceList.size() > 0) { + BusContractAcceptance busContractAcceptance = null; for (int i = 0; i < busContractAcceptanceList.size(); i++) { busContractAcceptance = busContractAcceptanceList.get(i); busContractAcceptance.setProjectId(projectId); @@ -204,8 +211,8 @@ public class BusPlanningServiceImpl extends ServiceImpl busDivisionDutiesList = busPlanningMain.getBusDivisionDutiesList(); - if(busDivisionDutiesList!=null&&busDivisionDutiesList.size()>0){ - BusDivisionDuties busDivisionDuties =null; + if (busDivisionDutiesList != null && busDivisionDutiesList.size() > 0) { + BusDivisionDuties busDivisionDuties = null; for (int i = 0; i < busDivisionDutiesList.size(); i++) { busDivisionDuties = busDivisionDutiesList.get(i); busDivisionDuties.setProjectId(projectId); @@ -219,8 +226,8 @@ public class BusPlanningServiceImpl extends ServiceImpl busExternalCollaborationList = busPlanningMain.getBusExternalCollaborationList(); - if(busExternalCollaborationList!=null&&busExternalCollaborationList.size()>0){ - BusExternalCollaboration busExternalCollaboration =null; + if (busExternalCollaborationList != null && busExternalCollaborationList.size() > 0) { + BusExternalCollaboration busExternalCollaboration = null; for (int i = 0; i < busExternalCollaborationList.size(); i++) { busExternalCollaboration = busExternalCollaborationList.get(i); busExternalCollaboration.setProjectId(projectId); @@ -236,8 +243,8 @@ public class BusPlanningServiceImpl extends ServiceImpl busProjectFinancialPlanningList = busPlanningMain.getBusProjectFinancialPlanningList(); - if(busProjectFinancialPlanningList!=null&&busProjectFinancialPlanningList.size()>0){ - BusProjectFinancialPlanning busProjectFinancialPlanning =null; + if (busProjectFinancialPlanningList != null && busProjectFinancialPlanningList.size() > 0) { + BusProjectFinancialPlanning busProjectFinancialPlanning = null; for (int i = 0; i < busProjectFinancialPlanningList.size(); i++) { busProjectFinancialPlanning = busProjectFinancialPlanningList.get(i); busProjectFinancialPlanning.setProjectId(projectId); @@ -252,10 +259,10 @@ public class BusPlanningServiceImpl extends ServiceImpl busProjectOutsourcingExpenditurePlanningList = busPlanningMain.getBusProjectOutsourcingExpenditurePlanningList(); - if(busProjectOutsourcingExpenditurePlanningList!=null&&busProjectOutsourcingExpenditurePlanningList.size()>0){ - BusProjectOutsourcingExpenditurePlanning busProjectOutsourcingExpenditurePlanning =null; + if (busProjectOutsourcingExpenditurePlanningList != null && busProjectOutsourcingExpenditurePlanningList.size() > 0) { + BusProjectOutsourcingExpenditurePlanning busProjectOutsourcingExpenditurePlanning = null; for (int i = 0; i < busProjectOutsourcingExpenditurePlanningList.size(); i++) { - busProjectOutsourcingExpenditurePlanning = busProjectOutsourcingExpenditurePlanningList.get(i); + busProjectOutsourcingExpenditurePlanning = busProjectOutsourcingExpenditurePlanningList.get(i); busProjectOutsourcingExpenditurePlanning.setProjectId(projectId); busProjectOutsourcingExpenditurePlanning.setDepartmentCode(taskBearingDepartment); busProjectOutsourcingExpenditurePlanning.setCreateTime(CommonDateUtil.getNowTime("yyyy-MM-dd HH:mm:ss")); @@ -266,8 +273,8 @@ public class BusPlanningServiceImpl extends ServiceImpl busContractGjchList = busPlanningMain.getBusContractGjchList(); - if(busContractGjchList!=null&&busContractGjchList.size()>0){ - BusContractGjch busContractGjch =null; + if (busContractGjchList != null && busContractGjchList.size() > 0) { + BusContractGjch busContractGjch = null; for (int i = 0; i < busContractGjchList.size(); i++) { busContractGjch = busContractGjchList.get(i); busContractGjch.setProjectId(projectId); @@ -279,8 +286,8 @@ public class BusPlanningServiceImpl extends ServiceImpl busContractZscqList = busPlanningMain.getBusContractZscqList(); - if(busContractZscqList!=null&&busContractZscqList.size()>0){ - BusContractZscq busContractZscq =null; + if (busContractZscqList != null && busContractZscqList.size() > 0) { + BusContractZscq busContractZscq = null; for (int i = 0; i < busContractZscqList.size(); i++) { busContractZscq = busContractZscqList.get(i); busContractZscq.setProjectId(projectId); @@ -292,7 +299,7 @@ public class BusPlanningServiceImpl extends ServiceImpl busAqfxqdList = busPlanningMain.getBusAqfxqdList(); + /*List busAqfxqdList = busPlanningMain.getBusAqfxqdList(); if(busAqfxqdList!=null&&busAqfxqdList.size()>0){ BusAqfxqd busAqfxqd =null; for (int i = 0; i < busAqfxqdList.size(); i++) { @@ -303,12 +310,10 @@ public class BusPlanningServiceImpl extends ServiceImpl queryPlanning(String loginUserOrgCode){ + public List queryPlanning(String loginUserOrgCode) { LoginUser loginUser = LoginUtil.getLoginUser(); - String whereSql=""; - if("0".equals(StringUtils.strTrim(loginUser.getPositionSelect()))){ - whereSql=" so.create_user='"+loginUser.getId()+"'"; - }else{ + String whereSql = ""; + if ("0".equals(StringUtils.strTrim(loginUser.getPositionSelect()))) { + whereSql = " so.create_user='" + loginUser.getId() + "'"; + } else { List list = userResponsibleDepartmentService.queryOrgCodeByUserId(loginUser.getId()); - if(list!=null&&list.size()>0){ - whereSql=" ("; - String s =""; + if (list != null && list.size() > 0) { + whereSql = " ("; + String s = ""; int size = list.size(); - for(int k=0;k queryPlanningAll(String loginUserOrgCode){ + public List queryPlanningAll(String loginUserOrgCode) { LoginUser loginUser = LoginUtil.getLoginUser(); - String whereSql=""; - if("0".equals(StringUtils.strTrim(loginUser.getPositionSelect()))){ - whereSql=" so.create_user='"+loginUser.getId()+"'"; - }else{ + String whereSql = ""; + if ("0".equals(StringUtils.strTrim(loginUser.getPositionSelect()))) { + whereSql = " so.create_user='" + loginUser.getId() + "'"; + } else { List list = userResponsibleDepartmentService.queryOrgCodeByUserId(loginUser.getId()); - if(list!=null&&list.size()>0){ - whereSql=" ("; - String s =""; + if (list != null && list.size() > 0) { + whereSql = " ("; + String s = ""; int size = list.size(); - for(int k=0;k + order by itemNo asc