Commit cd085bae9d6e7702ff40f50f44ae8481cd8cc180

Authored by 王富生
1 parent 20e63a6f

养护计划优化提交

urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/inspectionplan/vo/InspectionPlanCommitRespVO.java
... ... @@ -60,7 +60,7 @@ public class InspectionPlanCommitRespVO {
60 60 @Schema(description = "巡检照片")
61 61 @ExcelProperty("巡检照片")
62 62 @TableField(typeHandler = StringListTypeHandler.class)
63   - private List<String> img;
  63 + private List<String> imgList;
64 64  
65 65 @Schema(description = "巡检结果: 1:正常;2:异常")
66 66 @ExcelProperty("巡检结果: 1:正常;2:异常")
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/inspectionplan/InspectionPlanDetailMapper.java
... ... @@ -31,8 +31,8 @@ public interface InspectionPlanDetailMapper extends BaseMapperX&lt;InspectionPlanDe
31 31 endTime = reqVO.getEndTime().atTime(23, 59, 59);
32 32 }
33 33 return selectPage(reqVO, new LambdaQueryWrapperX<InspectionPlanDetailDO>()
34   - .eqIfPresent(InspectionPlanDetailDO::getBatchNo, reqVO.getBatchNo())
35   - .eqIfPresent(InspectionPlanDetailDO::getPlanNo, reqVO.getPlanNo())
  34 + .likeIfPresent(InspectionPlanDetailDO::getBatchNo, reqVO.getBatchNo())
  35 + .likeIfPresent(InspectionPlanDetailDO::getPlanNo, reqVO.getPlanNo())
36 36 .eqIfPresent(InspectionPlanDetailDO::getBusiLine, reqVO.getBusiLine())
37 37 .eqIfPresent(InspectionPlanDetailDO::getCompanyId, reqVO.getCompanyId())
38 38 .eqIfPresent(InspectionPlanDetailDO::getDeptId, reqVO.getDeptId())
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/inspectionplan/InspectionPlanInterceptMapper.java
... ... @@ -19,7 +19,7 @@ import org.apache.ibatis.annotations.Mapper;
19 19 public interface InspectionPlanInterceptMapper extends BaseMapperX<InspectionPlanDO> {
20 20 default PageResult<InspectionPlanDO> selectForPage(InspectionPlanPageReqVO reqVO) {
21 21 return selectPage(reqVO, new LambdaQueryWrapperX<InspectionPlanDO>()
22   - .eqIfPresent(InspectionPlanDO::getBatchNo, reqVO.getBatchNo())
  22 + .likeIfPresent(InspectionPlanDO::getBatchNo, reqVO.getBatchNo())
23 23 .likeIfPresent(InspectionPlanDO::getPlanName, reqVO.getPlanName())
24 24 .eqIfPresent(InspectionPlanDO::getPlanAttr, reqVO.getPlanAttr())
25 25 .eqIfPresent(InspectionPlanDO::getPlanTypeId, reqVO.getPlanTypeId())
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/maintainplan/MaintainPlanDetailMapper.java
... ... @@ -26,8 +26,8 @@ public interface MaintainPlanDetailMapper extends BaseMapperX&lt;MaintainPlanDetail
26 26  
27 27 default PageResult<MaintainPlanDetailDO> selectPage(MaintainPlanDetailPageReqVO reqVO) {
28 28 return selectPage(reqVO, new LambdaQueryWrapperX<MaintainPlanDetailDO>()
29   - .eqIfPresent(MaintainPlanDetailDO::getBatchNo, reqVO.getBatchNo())
30   - .eqIfPresent(MaintainPlanDetailDO::getPlanNo, reqVO.getPlanNo())
  29 + .likeIfPresent(MaintainPlanDetailDO::getBatchNo, reqVO.getBatchNo())
  30 + .likeIfPresent(MaintainPlanDetailDO::getPlanNo, reqVO.getPlanNo())
31 31 .eqIfPresent(MaintainPlanDetailDO::getBusiLine, reqVO.getBusiLine())
32 32 .eqIfPresent(MaintainPlanDetailDO::getCompanyId, reqVO.getCompanyId())
33 33 .eqIfPresent(MaintainPlanDetailDO::getDeptId, reqVO.getDeptId())
... ... @@ -39,7 +39,7 @@ public interface MaintainPlanDetailMapper extends BaseMapperX&lt;MaintainPlanDetail
39 39 .eqIfPresent(MaintainPlanDetailDO::getFinishState, reqVO.getFinishState())
40 40 .likeIfPresent(MaintainPlanDetailDO::getCreatorName, reqVO.getCreatorName())
41 41 .betweenIfPresent(MaintainPlanDetailDO::getCreateTime, reqVO.getCreateTime())
42   - .orderByDesc(MaintainPlanDetailDO::getId));
  42 + .orderByAsc(MaintainPlanDetailDO::getId));
43 43 }
44 44  
45 45 int deleteByBatchNo(@Param("batchNo") String batchNo);
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/maintainplan/MaintainPlanInterceptMapper.java
... ... @@ -20,7 +20,7 @@ public interface MaintainPlanInterceptMapper extends BaseMapperX&lt;MaintainPlanDO&gt;
20 20  
21 21 default PageResult<MaintainPlanDO> selectForPage(MaintainPlanPageReqVO reqVO) {
22 22 return selectPage(reqVO, new LambdaQueryWrapperX<MaintainPlanDO>()
23   - .eqIfPresent(MaintainPlanDO::getBatchNo, reqVO.getBatchNo())
  23 + .likeIfPresent(MaintainPlanDO::getBatchNo, reqVO.getBatchNo())
24 24 .likeIfPresent(MaintainPlanDO::getPlanName, reqVO.getPlanName())
25 25 .eqIfPresent(MaintainPlanDO::getPlanAttr, reqVO.getPlanAttr())
26 26 .eqIfPresent(MaintainPlanDO::getPlanTypeId, reqVO.getPlanTypeId())
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/road/RoadInterceptMapper.java
... ... @@ -32,10 +32,10 @@ public interface RoadInterceptMapper extends BaseMapperX&lt;RoadDO&gt; {
32 32 .eqIfPresent(RoadDO::getTreeArea, reqVO.getTreeArea())
33 33 .eqIfPresent(RoadDO::getStartingLatitude, reqVO.getStartingLatitude())
34 34 .eqIfPresent(RoadDO::getStartingLongitude, reqVO.getStartingLongitude())
35   - .eqIfPresent(RoadDO::getStartingRemark, reqVO.getStartingRemark())
  35 + .likeIfPresent(RoadDO::getStartingRemark, reqVO.getStartingRemark())
36 36 .eqIfPresent(RoadDO::getEndLatitude, reqVO.getEndLatitude())
37 37 .eqIfPresent(RoadDO::getEndLongitude, reqVO.getEndLongitude())
38   - .eqIfPresent(RoadDO::getEndRemark, reqVO.getEndRemark())
  38 + .likeIfPresent(RoadDO::getEndRemark, reqVO.getEndRemark())
39 39 .eqIfPresent(RoadDO::getRemark, reqVO.getRemark())
40 40 .eqIfPresent(RoadDO::getCompanyId, reqVO.getCompanyId())
41 41 .eqIfPresent(RoadDO::getDeptId, reqVO.getDeptId())
... ...
urbanops-module-garden/src/main/resources/mapper/inspectionplan/InspectionPlanCommitMapper.xml
... ... @@ -4,7 +4,7 @@
4 4  
5 5  
6 6 <resultMap id="BaseResultMap" type="com.zteits.urbanops.module.garden.controller.admin.inspectionplan.vo.InspectionPlanCommitRespVO">
7   - <result property="img" column="img" typeHandler="com.zteits.urbanops.framework.mybatis.core.type.StringArrayToListTypeHandler"/>
  7 + <result property="imgList" column="img" typeHandler="com.zteits.urbanops.framework.mybatis.core.type.StringArrayToListTypeHandler"/>
8 8 </resultMap>
9 9 <!--
10 10 一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
... ...