Commit eda571c61d4523d07cff07cf0e96fb86940d9b2b
1 parent
b24fbc1a
app养护计划明细提交
Showing
2 changed files
with
3 additions
and
2 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/maintainplan/vo/AppMaintainPlanCommitSaveReqVO.java
| ... | ... | @@ -26,7 +26,7 @@ public class AppMaintainPlanCommitSaveReqVO { |
| 26 | 26 | |
| 27 | 27 | @Schema(description = "开始照片", requiredMode = Schema.RequiredMode.REQUIRED) |
| 28 | 28 | @NotEmpty(message = "开始照片不能为空") |
| 29 | - private String beginImg; | |
| 29 | + private List<String> beginImg; | |
| 30 | 30 | |
| 31 | 31 | @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜") |
| 32 | 32 | @Size(max = 128, message = "备注长度不能超过 128 个字符") | ... | ... |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/maintainplan/MaintainPlanCommitServiceImpl.java
| 1 | 1 | package com.zteits.urbanops.module.garden.service.maintainplan; |
| 2 | 2 | |
| 3 | +import com.alibaba.fastjson.JSONObject; | |
| 3 | 4 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| 4 | 5 | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| 5 | 6 | import com.baomidou.mybatisplus.core.metadata.IPage; |
| ... | ... | @@ -107,7 +108,7 @@ public class MaintainPlanCommitServiceImpl implements MaintainPlanCommitService |
| 107 | 108 | commitDO.setRoadId(maintainPlanDO.getRoadId()); |
| 108 | 109 | commitDO.setFinishPercent(createReqVO.getTotalFinishPercent() - maintainPlanDetailDO.getFinishPercent()); |
| 109 | 110 | commitDO.setImgHost(createReqVO.getImgHost()); |
| 110 | - commitDO.setBeginImg(createReqVO.getBeginImg()); | |
| 111 | + commitDO.setBeginImg(JSONObject.toJSONString(createReqVO.getBeginImg())); | |
| 111 | 112 | commitDO.setProcessImg("[]"); |
| 112 | 113 | commitDO.setEndImg("[]"); |
| 113 | 114 | commitDO.setOpArea(0.0); | ... | ... |