Commit 9c1c6b8fdf4c6544692ecb44e76d48da9fa27f01
1 parent
4c567386
优化
Showing
3 changed files
with
17 additions
and
4 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanCommitRespVO.java
| 1 | 1 | package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo; |
| 2 | 2 | |
| 3 | +import com.baomidou.mybatisplus.annotation.TableField; | |
| 4 | +import com.zteits.urbanops.framework.mybatis.core.type.StringListTypeHandler; | |
| 3 | 5 | import io.swagger.v3.oas.annotations.media.Schema; |
| 4 | 6 | import lombok.*; |
| 5 | 7 | |
| 6 | 8 | import java.time.LocalDateTime; |
| 9 | +import java.util.List; | |
| 7 | 10 | |
| 8 | 11 | import cn.idev.excel.annotation.*; |
| 9 | 12 | |
| ... | ... | @@ -71,6 +74,11 @@ public class MaintainPlanCommitRespVO { |
| 71 | 74 | @ExcelProperty("完成次数") |
| 72 | 75 | private Integer planFinishNum; |
| 73 | 76 | |
| 77 | + @Schema(description = "照片") | |
| 78 | + @ExcelProperty("照片") | |
| 79 | + @TableField(typeHandler = StringListTypeHandler.class) | |
| 80 | + private List<String> beginImgList; | |
| 81 | + | |
| 74 | 82 | @Schema(description = "完成时间") |
| 75 | 83 | @ExcelProperty("完成时间") |
| 76 | 84 | private LocalDateTime finishTime; | ... | ... |
urbanops-module-garden/src/main/resources/mapper/inspectionplan/InspectionPlanCommitMapper.xml
| ... | ... | @@ -125,7 +125,7 @@ |
| 125 | 125 | c.remark |
| 126 | 126 | FROM garden_inspection_plan_detail b |
| 127 | 127 | INNER JOIN garden_inspection_plan a ON a.batch_no = b.batch_no |
| 128 | - INNER JOIN garden_inspection_plan_commit c ON c.plan_no = a.plan_no AND b.batch_no = c.batch_no | |
| 128 | + INNER JOIN garden_inspection_plan_commit c ON c.plan_no = b.plan_no AND b.batch_no = c.batch_no | |
| 129 | 129 | WHERE a.deleted = 0 |
| 130 | 130 | AND b.plan_no = #{planNo} |
| 131 | 131 | <if test="busiLineList != null and busiLineList.size() > 0"> |
| ... | ... | @@ -134,6 +134,6 @@ |
| 134 | 134 | #{id} |
| 135 | 135 | </foreach> |
| 136 | 136 | </if> |
| 137 | - ODER BY c.id DESC | |
| 137 | + ORDER BY c.id DESC | |
| 138 | 138 | </select> |
| 139 | 139 | </mapper> | ... | ... |
urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanCommitMapper.xml
| ... | ... | @@ -13,9 +13,13 @@ |
| 13 | 13 | <result property="beginImgList" column="begin_img" typeHandler="com.zteits.urbanops.framework.mybatis.core.type.StringArrayToListTypeHandler"/> |
| 14 | 14 | </resultMap> |
| 15 | 15 | |
| 16 | + <resultMap id="BaseResultMapTwo" type="com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.MaintainPlanCommitRespVO"> | |
| 17 | + <result property="beginImgList" column="begin_img" typeHandler="com.zteits.urbanops.framework.mybatis.core.type.StringArrayToListTypeHandler"/> | |
| 18 | + </resultMap> | |
| 19 | + | |
| 16 | 20 | |
| 17 | 21 | |
| 18 | - <select id="selectForPage" resultType="com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.MaintainPlanCommitRespVO"> | |
| 22 | + <select id="selectForPage" resultMap="BaseResultMapTwo"> | |
| 19 | 23 | SELECT |
| 20 | 24 | a.batch_no, |
| 21 | 25 | a.plan_no, |
| ... | ... | @@ -34,9 +38,10 @@ |
| 34 | 38 | a.company_id, |
| 35 | 39 | a.dept_id, |
| 36 | 40 | c.finish_time, |
| 41 | + c.begin_img, | |
| 37 | 42 | c.user_name |
| 38 | 43 | FROM |
| 39 | - garden_maintain_plan_detail a, | |
| 44 | + garden_maintain_plan_detail a | |
| 40 | 45 | INNER JOIN garden_maintain_plan b ON a.batch_no = b.batch_no |
| 41 | 46 | INNER JOIN garden_maintain_plan_commit c ON a.batch_no = c.batch_no AND a.plan_no = c.plan_no |
| 42 | 47 | WHERE a.deleted = 0 | ... | ... |