Commit c12cb98233f9b062958809322cb291af3f376b69
1 parent
b68ab034
修复sql错误
Showing
3 changed files
with
7 additions
and
6 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/maintainplan/vo/AppMaintainPlanCommitPageReqVO.java
| @@ -2,7 +2,7 @@ package com.zteits.urbanops.module.garden.controller.app.maintainplan.vo; | @@ -2,7 +2,7 @@ package com.zteits.urbanops.module.garden.controller.app.maintainplan.vo; | ||
| 2 | 2 | ||
| 3 | import com.zteits.urbanops.framework.common.pojo.PageParam; | 3 | import com.zteits.urbanops.framework.common.pojo.PageParam; |
| 4 | import io.swagger.v3.oas.annotations.media.Schema; | 4 | import io.swagger.v3.oas.annotations.media.Schema; |
| 5 | -import jakarta.validation.constraints.NotBlank; | 5 | +import jakarta.validation.constraints.NotEmpty; |
| 6 | import lombok.Data; | 6 | import lombok.Data; |
| 7 | 7 | ||
| 8 | @Schema(description = "管理后台 - 未完成养护计划明细 Request VO") | 8 | @Schema(description = "管理后台 - 未完成养护计划明细 Request VO") |
| @@ -10,7 +10,7 @@ import lombok.Data; | @@ -10,7 +10,7 @@ import lombok.Data; | ||
| 10 | public class AppMaintainPlanCommitPageReqVO extends PageParam { | 10 | public class AppMaintainPlanCommitPageReqVO extends PageParam { |
| 11 | 11 | ||
| 12 | @Schema(description = "计划编码") | 12 | @Schema(description = "计划编码") |
| 13 | - @NotBlank(message = "计划编码不能为空") | 13 | + @NotEmpty(message = "计划编码不能为空") |
| 14 | private String planNo; | 14 | private String planNo; |
| 15 | 15 | ||
| 16 | } | 16 | } |
urbanops-module-garden/src/main/resources/mapper/inspectionplan/InspectionPlanCommitMapper.xml
| @@ -29,14 +29,13 @@ | @@ -29,14 +29,13 @@ | ||
| 29 | a.finish_time as finishTime, | 29 | a.finish_time as finishTime, |
| 30 | a.user_id, | 30 | a.user_id, |
| 31 | a.user_name, | 31 | a.user_name, |
| 32 | - a.role_id, | ||
| 33 | - a.role_name, | ||
| 34 | a.remark, | 32 | a.remark, |
| 35 | a.creator, | 33 | a.creator, |
| 36 | a.creator_name, | 34 | a.creator_name, |
| 37 | a.create_time | 35 | a.create_time |
| 38 | FROM | 36 | FROM |
| 39 | - garden_inspection_plan_commit a, garden_inspection_plan b | 37 | + garden_inspection_plan_commit a, |
| 38 | + garden_inspection_plan b | ||
| 40 | where a.batch_no=b.batch_no | 39 | where a.batch_no=b.batch_no |
| 41 | AND a.deleted = b. deleted | 40 | AND a.deleted = b. deleted |
| 42 | AND a.deleted = 0 | 41 | AND a.deleted = 0 |
urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanCommitMapper.xml
| @@ -98,7 +98,8 @@ | @@ -98,7 +98,8 @@ | ||
| 98 | a.company_id, | 98 | a.company_id, |
| 99 | a.dept_id, | 99 | a.dept_id, |
| 100 | a.finish_percent, | 100 | a.finish_percent, |
| 101 | - c.role_name, | 101 | + c.begin_img, |
| 102 | + c.img_host | ||
| 102 | c.finish_time, | 103 | c.finish_time, |
| 103 | c.user_name | 104 | c.user_name |
| 104 | FROM | 105 | FROM |
| @@ -107,6 +108,7 @@ | @@ -107,6 +108,7 @@ | ||
| 107 | garden_maintain_plan_commit c | 108 | garden_maintain_plan_commit c |
| 108 | WHERE | 109 | WHERE |
| 109 | a.batch_no = b.batch_no | 110 | a.batch_no = b.batch_no |
| 111 | + AND a.batch_no = c.batch_no | ||
| 110 | AND a.plan_no = c.plan_no | 112 | AND a.plan_no = c.plan_no |
| 111 | AND a.finish_state = 2 | 113 | AND a.finish_state = 2 |
| 112 | AND c.plan_no = #{req.planNo} | 114 | AND c.plan_no = #{req.planNo} |