Commit af81ebc33f4a5921cf45bde092192d50b2a4ad52
1 parent
17967f8f
app养护计划明细提交
Showing
9 changed files
with
12 additions
and
12 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanCommitDetailRespVO.java
| @@ -41,11 +41,11 @@ public class MaintainPlanCommitDetailRespVO { | @@ -41,11 +41,11 @@ public class MaintainPlanCommitDetailRespVO { | ||
| 41 | private String remark; | 41 | private String remark; |
| 42 | 42 | ||
| 43 | @Schema(description = "总完成百分比", example = "98.00") | 43 | @Schema(description = "总完成百分比", example = "98.00") |
| 44 | - private Double totalFinishPercent; | 44 | + private Integer totalFinishPercent; |
| 45 | 45 | ||
| 46 | @Schema(description = "本次完成百分比", example = "98.00") | 46 | @Schema(description = "本次完成百分比", example = "98.00") |
| 47 | @ExcelProperty("本次完成百分比") | 47 | @ExcelProperty("本次完成百分比") |
| 48 | - private Double finishPercent; | 48 | + private Integer finishPercent; |
| 49 | 49 | ||
| 50 | @Schema(description = "照片host", example = "aaa") | 50 | @Schema(description = "照片host", example = "aaa") |
| 51 | @ExcelProperty("照片host") | 51 | @ExcelProperty("照片host") |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanCommitRespVO.java
| @@ -70,7 +70,7 @@ public class MaintainPlanCommitRespVO { | @@ -70,7 +70,7 @@ public class MaintainPlanCommitRespVO { | ||
| 70 | 70 | ||
| 71 | @Schema(description = "本次完成百分比") | 71 | @Schema(description = "本次完成百分比") |
| 72 | @ExcelProperty("本次完成百分比") | 72 | @ExcelProperty("本次完成百分比") |
| 73 | - private Double finishPercent; | 73 | + private Integer finishPercent; |
| 74 | 74 | ||
| 75 | @Schema(description = "完成时间") | 75 | @Schema(description = "完成时间") |
| 76 | @ExcelProperty("完成时间") | 76 | @ExcelProperty("完成时间") |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanCommitSaveReqVO.java
| @@ -22,7 +22,7 @@ public class MaintainPlanCommitSaveReqVO { | @@ -22,7 +22,7 @@ public class MaintainPlanCommitSaveReqVO { | ||
| 22 | 22 | ||
| 23 | @Schema(description = "本次完成百分比", requiredMode = Schema.RequiredMode.REQUIRED) | 23 | @Schema(description = "本次完成百分比", requiredMode = Schema.RequiredMode.REQUIRED) |
| 24 | @NotNull(message = "本次完成百分比不能为空") | 24 | @NotNull(message = "本次完成百分比不能为空") |
| 25 | - private Double finishPercent; | 25 | + private Integer finishPercent; |
| 26 | 26 | ||
| 27 | @Schema(description = "照片host", requiredMode = Schema.RequiredMode.REQUIRED) | 27 | @Schema(description = "照片host", requiredMode = Schema.RequiredMode.REQUIRED) |
| 28 | @NotEmpty(message = "照片host不能为空") | 28 | @NotEmpty(message = "照片host不能为空") |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanDetailPageReqVO.java
| @@ -46,7 +46,7 @@ public class MaintainPlanDetailPageReqVO extends PageParam { | @@ -46,7 +46,7 @@ public class MaintainPlanDetailPageReqVO extends PageParam { | ||
| 46 | private LocalDate[] endTime; | 46 | private LocalDate[] endTime; |
| 47 | 47 | ||
| 48 | @Schema(description = "完成百分比") | 48 | @Schema(description = "完成百分比") |
| 49 | - private Double finishPercent; | 49 | + private Integer finishPercent; |
| 50 | 50 | ||
| 51 | @Schema(description = "完成状态 1:未完成;2:进行中;3:已完成") | 51 | @Schema(description = "完成状态 1:未完成;2:进行中;3:已完成") |
| 52 | private Integer finishState; | 52 | private Integer finishState; |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanDetailSaveReqVO.java
| @@ -49,7 +49,7 @@ public class MaintainPlanDetailSaveReqVO { | @@ -49,7 +49,7 @@ public class MaintainPlanDetailSaveReqVO { | ||
| 49 | 49 | ||
| 50 | @Schema(description = "完成百分比", requiredMode = Schema.RequiredMode.REQUIRED) | 50 | @Schema(description = "完成百分比", requiredMode = Schema.RequiredMode.REQUIRED) |
| 51 | @NotNull(message = "完成百分比不能为空") | 51 | @NotNull(message = "完成百分比不能为空") |
| 52 | - private Double finishPercent; | 52 | + private Integer finishPercent; |
| 53 | 53 | ||
| 54 | @Schema(description = "完成状态 1:未完成;2:进行中;3:已完成", requiredMode = Schema.RequiredMode.REQUIRED) | 54 | @Schema(description = "完成状态 1:未完成;2:进行中;3:已完成", requiredMode = Schema.RequiredMode.REQUIRED) |
| 55 | @NotNull(message = "完成状态 1:未完成;2:进行中;3:已完成不能为空") | 55 | @NotNull(message = "完成状态 1:未完成;2:进行中;3:已完成不能为空") |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/maintainplan/vo/AppMaintainPlanCommitSaveReqVO.java
| @@ -18,7 +18,7 @@ public class AppMaintainPlanCommitSaveReqVO { | @@ -18,7 +18,7 @@ public class AppMaintainPlanCommitSaveReqVO { | ||
| 18 | 18 | ||
| 19 | @Schema(description = "本次总完成百分比", requiredMode = Schema.RequiredMode.REQUIRED) | 19 | @Schema(description = "本次总完成百分比", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | @NotNull(message = "本次总完成百分比不能为空") | 20 | @NotNull(message = "本次总完成百分比不能为空") |
| 21 | - private Double totalFinishPercent; | 21 | + private Integer totalFinishPercent; |
| 22 | 22 | ||
| 23 | @Schema(description = "照片host", requiredMode = Schema.RequiredMode.REQUIRED) | 23 | @Schema(description = "照片host", requiredMode = Schema.RequiredMode.REQUIRED) |
| 24 | @NotEmpty(message = "照片host不能为空") | 24 | @NotEmpty(message = "照片host不能为空") |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/maintainplan/MaintainPlanCommitDO.java
| @@ -61,7 +61,7 @@ public class MaintainPlanCommitDO extends BaseDO { | @@ -61,7 +61,7 @@ public class MaintainPlanCommitDO extends BaseDO { | ||
| 61 | /** | 61 | /** |
| 62 | * 本次完成百分比 | 62 | * 本次完成百分比 |
| 63 | */ | 63 | */ |
| 64 | - private Double finishPercent; | 64 | + private Integer finishPercent; |
| 65 | /** | 65 | /** |
| 66 | * 照片host | 66 | * 照片host |
| 67 | */ | 67 | */ |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/maintainplan/MaintainPlanDetailDO.java
| @@ -73,7 +73,7 @@ public class MaintainPlanDetailDO extends BaseDO { | @@ -73,7 +73,7 @@ public class MaintainPlanDetailDO extends BaseDO { | ||
| 73 | /** | 73 | /** |
| 74 | * 完成百分比 | 74 | * 完成百分比 |
| 75 | */ | 75 | */ |
| 76 | - private Double finishPercent; | 76 | + private Integer finishPercent; |
| 77 | /** | 77 | /** |
| 78 | * 完成状态 1:未完成;2:已完成 | 78 | * 完成状态 1:未完成;2:已完成 |
| 79 | */ | 79 | */ |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/maintainplan/MaintainPlanCommitServiceImpl.java
| @@ -143,7 +143,7 @@ public class MaintainPlanCommitServiceImpl implements MaintainPlanCommitService | @@ -143,7 +143,7 @@ public class MaintainPlanCommitServiceImpl implements MaintainPlanCommitService | ||
| 143 | 143 | ||
| 144 | //完成状态 1:未完成;2:已完成 | 144 | //完成状态 1:未完成;2:已完成 |
| 145 | int detailFinishState = 1; | 145 | int detailFinishState = 1; |
| 146 | - if(createReqVO.getTotalFinishPercent().equals(100.00)){ | 146 | + if(createReqVO.getTotalFinishPercent().equals(100)){ |
| 147 | detailFinishState = 2; | 147 | detailFinishState = 2; |
| 148 | } | 148 | } |
| 149 | 149 | ||
| @@ -219,11 +219,11 @@ public class MaintainPlanCommitServiceImpl implements MaintainPlanCommitService | @@ -219,11 +219,11 @@ public class MaintainPlanCommitServiceImpl implements MaintainPlanCommitService | ||
| 219 | } | 219 | } |
| 220 | /*2.查询明细总完成次数*/ | 220 | /*2.查询明细总完成次数*/ |
| 221 | MaintainPlanDetailDO maintainPlanDetailDO = maintainPlanDetailMapper.selectOne(MaintainPlanDetailDO::getPlanNo, planNo); | 221 | MaintainPlanDetailDO maintainPlanDetailDO = maintainPlanDetailMapper.selectOne(MaintainPlanDetailDO::getPlanNo, planNo); |
| 222 | - Double totalFinishPercent; | 222 | + Integer totalFinishPercent; |
| 223 | if (maintainPlanDetailDO != null) { | 223 | if (maintainPlanDetailDO != null) { |
| 224 | totalFinishPercent = maintainPlanDetailDO.getFinishPercent(); | 224 | totalFinishPercent = maintainPlanDetailDO.getFinishPercent(); |
| 225 | } else { | 225 | } else { |
| 226 | - totalFinishPercent = 0.0; | 226 | + totalFinishPercent = 0; |
| 227 | } | 227 | } |
| 228 | /*1.查询共同处理人*/ | 228 | /*1.查询共同处理人*/ |
| 229 | list.forEach(e -> { | 229 | list.forEach(e -> { |