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