Commit a5cfb23ddb80bd98afcf76dfbe256fa8b9dfdb02
1 parent
bbdc1308
临时提交
Showing
9 changed files
with
51 additions
and
15 deletions
urbanops-module-bpm/src/main/java/com/zteits/urbanops/module/bpm/framework/flowable/config/BpmFlowableConfiguration.java
| @@ -92,4 +92,4 @@ public class BpmFlowableConfiguration { | @@ -92,4 +92,4 @@ public class BpmFlowableConfiguration { | ||
| 92 | return new BpmProcessInstanceEventPublisher(publisher); | 92 | return new BpmProcessInstanceEventPublisher(publisher); |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | -} | ||
| 96 | \ No newline at end of file | 95 | \ No newline at end of file |
| 96 | +} |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/maintainplan/vo/AppMaintainPlanCommitSaveReqVO.java
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/maintainplan/MaintainPlanCommitServiceImpl.java
| @@ -96,7 +96,7 @@ public class MaintainPlanCommitServiceImpl implements MaintainPlanCommitService | @@ -96,7 +96,7 @@ public class MaintainPlanCommitServiceImpl implements MaintainPlanCommitService | ||
| 96 | 96 | ||
| 97 | int sortNum = maintainPlanDetailDO.getPlanFinishNum() +1; | 97 | int sortNum = maintainPlanDetailDO.getPlanFinishNum() +1; |
| 98 | /*3.查询已完成比例*/ | 98 | /*3.查询已完成比例*/ |
| 99 | - int finishPercent = maintainPlanCommitMapper.selectFinishPercent(createReqVO.getPlanNo(), sortNum); | 99 | +// int finishPercent = maintainPlanCommitMapper.selectFinishPercent(createReqVO.getPlanNo(), sortNum); |
| 100 | 100 | ||
| 101 | MaintainPlanCommitDO commitDO = new MaintainPlanCommitDO(); | 101 | MaintainPlanCommitDO commitDO = new MaintainPlanCommitDO(); |
| 102 | commitDO.setBatchNo(maintainPlanDO.getBatchNo()); | 102 | commitDO.setBatchNo(maintainPlanDO.getBatchNo()); |
| @@ -108,7 +108,7 @@ public class MaintainPlanCommitServiceImpl implements MaintainPlanCommitService | @@ -108,7 +108,7 @@ public class MaintainPlanCommitServiceImpl implements MaintainPlanCommitService | ||
| 108 | commitDO.setCompanyId(maintainPlanDO.getCompanyId()); | 108 | commitDO.setCompanyId(maintainPlanDO.getCompanyId()); |
| 109 | commitDO.setDeptId(maintainPlanDO.getDeptId()); | 109 | commitDO.setDeptId(maintainPlanDO.getDeptId()); |
| 110 | commitDO.setRoadId(maintainPlanDO.getRoadId()); | 110 | commitDO.setRoadId(maintainPlanDO.getRoadId()); |
| 111 | - commitDO.setFinishPercent(createReqVO.getTotalFinishPercent() - finishPercent); | 111 | + commitDO.setFinishPercent(createReqVO.getTotalFinishPercent()); |
| 112 | commitDO.setImgHost(createReqVO.getImgHost()); | 112 | commitDO.setImgHost(createReqVO.getImgHost()); |
| 113 | commitDO.setBeginImg(JSONObject.toJSONString(createReqVO.getBeginImg())); | 113 | commitDO.setBeginImg(JSONObject.toJSONString(createReqVO.getBeginImg())); |
| 114 | commitDO.setProcessImg("[]"); | 114 | commitDO.setProcessImg("[]"); |
| @@ -316,4 +316,4 @@ public class MaintainPlanCommitServiceImpl implements MaintainPlanCommitService | @@ -316,4 +316,4 @@ public class MaintainPlanCommitServiceImpl implements MaintainPlanCommitService | ||
| 316 | }); | 316 | }); |
| 317 | } | 317 | } |
| 318 | 318 | ||
| 319 | -} | ||
| 320 | \ No newline at end of file | 319 | \ No newline at end of file |
| 320 | +} |
urbanops-module-garden/src/main/resources/mapper/inspectionplan/InspectionPlanDetailMapper.xml
| @@ -46,6 +46,7 @@ | @@ -46,6 +46,7 @@ | ||
| 46 | </if> | 46 | </if> |
| 47 | <!--状态 1:未完成;2:已完成;3:已失效--> | 47 | <!--状态 1:未完成;2:已完成;3:已失效--> |
| 48 | <if test="req.finishState == 3"> | 48 | <if test="req.finishState == 3"> |
| 49 | + and b.finish_state = #{req.finishState} | ||
| 49 | <![CDATA[and b.end_time < #{req.localDateTime}]]> | 50 | <![CDATA[and b.end_time < #{req.localDateTime}]]> |
| 50 | </if> | 51 | </if> |
| 51 | <if test="req.finishState == 2"> | 52 | <if test="req.finishState == 2"> |
| @@ -60,4 +61,4 @@ | @@ -60,4 +61,4 @@ | ||
| 60 | </select> | 61 | </select> |
| 61 | 62 | ||
| 62 | 63 | ||
| 63 | -</mapper> | ||
| 64 | \ No newline at end of file | 64 | \ No newline at end of file |
| 65 | +</mapper> |
urbanops-module-garden/src/main/resources/mapper/inspectionplan/InspectionPlanMapper.xml
| @@ -54,7 +54,6 @@ | @@ -54,7 +54,6 @@ | ||
| 54 | </if> | 54 | </if> |
| 55 | <if test="req.finishState == 1"> | 55 | <if test="req.finishState == 1"> |
| 56 | and b.finish_state = #{req.finishState} | 56 | and b.finish_state = #{req.finishState} |
| 57 | - <![CDATA[and a.end_time >= #{req.localDate}]]> | ||
| 58 | <![CDATA[and b.end_time >= #{req.localDate}]]> | 57 | <![CDATA[and b.end_time >= #{req.localDate}]]> |
| 59 | <![CDATA[and b.begin_time <= #{req.localDate}]]> | 58 | <![CDATA[and b.begin_time <= #{req.localDate}]]> |
| 60 | </if> | 59 | </if> |
urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanCommitMapper.xml
| @@ -104,7 +104,7 @@ | @@ -104,7 +104,7 @@ | ||
| 104 | a.company_id, | 104 | a.company_id, |
| 105 | a.finish_state, | 105 | a.finish_state, |
| 106 | a.dept_id, | 106 | a.dept_id, |
| 107 | - c.finish_percent, | 107 | +<!-- c.finish_percent,--> |
| 108 | c.begin_img, | 108 | c.begin_img, |
| 109 | c.img_host, | 109 | c.img_host, |
| 110 | c.finish_time, | 110 | c.finish_time, |
| @@ -123,7 +123,7 @@ | @@ -123,7 +123,7 @@ | ||
| 123 | 123 | ||
| 124 | <select id="selectFinishPercent" resultType="java.lang.Integer"> | 124 | <select id="selectFinishPercent" resultType="java.lang.Integer"> |
| 125 | SELECT | 125 | SELECT |
| 126 | - sum(a.finish_percent) as finishPercent, | 126 | + sum(a.finish_percent) as finishPercent |
| 127 | FROM | 127 | FROM |
| 128 | garden_maintain_plan_commit a | 128 | garden_maintain_plan_commit a |
| 129 | WHERE | 129 | WHERE |
urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanDetailMapper.xml
| @@ -23,6 +23,7 @@ | @@ -23,6 +23,7 @@ | ||
| 23 | a.cycle_id, | 23 | a.cycle_id, |
| 24 | c.plan_num, | 24 | c.plan_num, |
| 25 | c.plan_finish_num, | 25 | c.plan_finish_num, |
| 26 | +<!-- c.finish_percent,--> | ||
| 26 | c.finish_state, | 27 | c.finish_state, |
| 27 | c.begin_time, | 28 | c.begin_time, |
| 28 | c.end_time, | 29 | c.end_time, |
| @@ -33,8 +34,6 @@ | @@ -33,8 +34,6 @@ | ||
| 33 | WHERE a.batch_no=c.batch_no | 34 | WHERE a.batch_no=c.batch_no |
| 34 | AND a.deleted=0 | 35 | AND a.deleted=0 |
| 35 | AND a.road_id = #{req.roadId} | 36 | AND a.road_id = #{req.roadId} |
| 36 | - <!--状态 1:未完成;2:已完成;3:已失效--> | ||
| 37 | - AND a.finish_state = #{req.finishState} | ||
| 38 | <if test="req.planName != null and req.planName !=''"> | 37 | <if test="req.planName != null and req.planName !=''"> |
| 39 | AND a.plan_name LIKE CONCAT('%',#{req.planName},'%') | 38 | AND a.plan_name LIKE CONCAT('%',#{req.planName},'%') |
| 40 | </if> | 39 | </if> |
| @@ -50,6 +49,20 @@ | @@ -50,6 +49,20 @@ | ||
| 50 | #{batchNo} | 49 | #{batchNo} |
| 51 | </foreach> | 50 | </foreach> |
| 52 | </if> | 51 | </if> |
| 52 | + <!--状态 1:未完成;2:已完成;3:已失效--> | ||
| 53 | + <if test="req.finishState == 3"> | ||
| 54 | + and a.finish_state = #{req.finishState} | ||
| 55 | + <![CDATA[and c.end_time < #{req.localDateTime}]]> | ||
| 56 | + </if> | ||
| 57 | + <if test="req.finishState == 2"> | ||
| 58 | + and c.finish_state = #{req.finishState} | ||
| 59 | + </if> | ||
| 60 | + <if test="req.finishState == 1"> | ||
| 61 | + and c.finish_state = #{req.finishState} | ||
| 62 | + <![CDATA[and c.end_time >= #{req.localDateTime}]]> | ||
| 63 | + <![CDATA[and c.begin_time <= #{req.localDateTime}]]> | ||
| 64 | + | ||
| 65 | + </if> | ||
| 53 | </select> | 66 | </select> |
| 54 | 67 | ||
| 55 | <select id="getMaintainNotFinishPlanCommitDetail" resultType="com.zteits.urbanops.module.garden.controller.app.maintainplan.vo.AppMaintainNotFinishPlanDetailRespVO"> | 68 | <select id="getMaintainNotFinishPlanCommitDetail" resultType="com.zteits.urbanops.module.garden.controller.app.maintainplan.vo.AppMaintainNotFinishPlanDetailRespVO"> |
urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanMapper.xml
| @@ -30,7 +30,6 @@ | @@ -30,7 +30,6 @@ | ||
| 30 | garden_maintain_plan_detail b ON a.batch_no = b.batch_no | 30 | garden_maintain_plan_detail b ON a.batch_no = b.batch_no |
| 31 | AND a.deleted = b.deleted | 31 | AND a.deleted = b.deleted |
| 32 | WHERE a.deleted = 0 | 32 | WHERE a.deleted = 0 |
| 33 | - and b.finish_state = #{req.finishState} | ||
| 34 | <if test="req.roadName != null and req.roadName !=''"> | 33 | <if test="req.roadName != null and req.roadName !=''"> |
| 35 | AND a.road_name LIKE CONCAT('%',#{req.roadName},'%') | 34 | AND a.road_name LIKE CONCAT('%',#{req.roadName},'%') |
| 36 | </if> | 35 | </if> |
| @@ -46,6 +45,19 @@ | @@ -46,6 +45,19 @@ | ||
| 46 | #{busiLine} | 45 | #{busiLine} |
| 47 | </foreach> | 46 | </foreach> |
| 48 | </if> | 47 | </if> |
| 48 | + <!--状态 1:未完成;2:已完成;3:已失效--> | ||
| 49 | + <if test="req.finishState == 3"> | ||
| 50 | + and b.finish_state = #{req.finishState} | ||
| 51 | + <![CDATA[and a.end_time < #{req.localDate}]]> | ||
| 52 | + </if> | ||
| 53 | + <if test="req.finishState == 2"> | ||
| 54 | + and b.finish_state = #{req.finishState} | ||
| 55 | + </if> | ||
| 56 | + <if test="req.finishState == 1"> | ||
| 57 | + and b.finish_state = #{req.finishState} | ||
| 58 | + <![CDATA[and b.end_time >= #{req.localDate}]]> | ||
| 59 | + <![CDATA[and b.begin_time <= #{req.localDate}]]> | ||
| 60 | + </if> | ||
| 49 | </select> | 61 | </select> |
| 50 | 62 | ||
| 51 | <select id="appMaintainPlanPlanTypePage" resultType="com.zteits.urbanops.module.garden.controller.app.maintainplan.vo.AppMaintainPlanPagePlanTypeRespVO"> | 63 | <select id="appMaintainPlanPlanTypePage" resultType="com.zteits.urbanops.module.garden.controller.app.maintainplan.vo.AppMaintainPlanPagePlanTypeRespVO"> |
| @@ -69,8 +81,6 @@ | @@ -69,8 +81,6 @@ | ||
| 69 | AND a.deleted=c.deleted | 81 | AND a.deleted=c.deleted |
| 70 | AND a.deleted=0 | 82 | AND a.deleted=0 |
| 71 | AND a.plan_type_id = #{req.planTypeId} | 83 | AND a.plan_type_id = #{req.planTypeId} |
| 72 | - <!--状态 1:未完成;2:已完成;3:已失效--> | ||
| 73 | - AND c.finish_state = #{req.finishState} | ||
| 74 | <if test="req.planName != null and req.planName !=''"> | 84 | <if test="req.planName != null and req.planName !=''"> |
| 75 | AND a.plan_type_id LIKE CONCAT('%',#{req.planName},'%') | 85 | AND a.plan_type_id LIKE CONCAT('%',#{req.planName},'%') |
| 76 | </if> | 86 | </if> |
| @@ -86,6 +96,20 @@ | @@ -86,6 +96,20 @@ | ||
| 86 | #{busiLine} | 96 | #{busiLine} |
| 87 | </foreach> | 97 | </foreach> |
| 88 | </if> | 98 | </if> |
| 99 | + <!--状态 1:未完成;2:已完成;3:已失效--> | ||
| 100 | + <if test="req.finishState == 3"> | ||
| 101 | + and c.finish_state = #{req.finishState} | ||
| 102 | + <![CDATA[and c.end_time < #{req.localDateTime}]]> | ||
| 103 | + </if> | ||
| 104 | + <if test="req.finishState == 2"> | ||
| 105 | + and c.finish_state = #{req.finishState} | ||
| 106 | + </if> | ||
| 107 | + <if test="req.finishState == 1"> | ||
| 108 | + and c.finish_state = #{req.finishState} | ||
| 109 | + <![CDATA[and c.end_time >= #{req.localDateTime}]]> | ||
| 110 | + <![CDATA[and c.begin_time <= #{req.localDateTime}]]> | ||
| 111 | + | ||
| 112 | + </if> | ||
| 89 | </select> | 113 | </select> |
| 90 | 114 | ||
| 91 | </mapper> | 115 | </mapper> |
urbanops-module-system/src/main/java/com/zteits/urbanops/module/system/api/dept/DeptApi.java
| @@ -3,7 +3,6 @@ package com.zteits.urbanops.module.system.api.dept; | @@ -3,7 +3,6 @@ package com.zteits.urbanops.module.system.api.dept; | ||
| 3 | import com.zteits.urbanops.framework.common.util.collection.CollectionUtils; | 3 | import com.zteits.urbanops.framework.common.util.collection.CollectionUtils; |
| 4 | import com.zteits.urbanops.module.system.api.dept.dto.DeptRespDTO; | 4 | import com.zteits.urbanops.module.system.api.dept.dto.DeptRespDTO; |
| 5 | import com.zteits.urbanops.module.system.controller.admin.dept.vo.dept.DeptRespVO; | 5 | import com.zteits.urbanops.module.system.controller.admin.dept.vo.dept.DeptRespVO; |
| 6 | -import com.zteits.urbanops.module.system.dal.dataobject.dept.DeptDO; | ||
| 7 | 6 | ||
| 8 | import java.util.Collection; | 7 | import java.util.Collection; |
| 9 | import java.util.List; | 8 | import java.util.List; |