Commit 0b01801ad8d5e61929597d5fa21cdc45044b5437
1 parent
687f8778
工单管理附件查询修改
Showing
4 changed files
with
28 additions
and
3 deletions
urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/controller/admin/attachment/AttachmentController.java
| @@ -104,7 +104,7 @@ public class AttachmentController { | @@ -104,7 +104,7 @@ public class AttachmentController { | ||
| 104 | @PostMapping("/getByCondition") | 104 | @PostMapping("/getByCondition") |
| 105 | @Operation(summary = "获得工单附件信息") | 105 | @Operation(summary = "获得工单附件信息") |
| 106 | @PreAuthorize("@ss.hasPermission('workorder:attachment:query')") | 106 | @PreAuthorize("@ss.hasPermission('workorder:attachment:query')") |
| 107 | - public CommonResult<List<AttachmentRespVO>> getAttachmentByCondition(@Valid @RequestBody AttachmentPageReqVO reqVO) { | 107 | + public CommonResult<List<AttachmentRespVO>> getAttachmentByCondition(@Valid @RequestBody AttachmentReqVO reqVO) { |
| 108 | List<AttachmentDO> attachment = attachmentService.getAttachmentByCondition(reqVO); | 108 | List<AttachmentDO> attachment = attachmentService.getAttachmentByCondition(reqVO); |
| 109 | return success(BeanUtils.toBean(attachment, AttachmentRespVO.class)); | 109 | return success(BeanUtils.toBean(attachment, AttachmentRespVO.class)); |
| 110 | } | 110 | } |
urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/controller/admin/attachment/vo/AttachmentReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.workorder.controller.admin.attachment.vo; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 4 | +import io.swagger.v3.oas.annotations.media.Schema; | ||
| 5 | +import lombok.Data; | ||
| 6 | +import org.springframework.format.annotation.DateTimeFormat; | ||
| 7 | + | ||
| 8 | +import java.time.LocalDateTime; | ||
| 9 | + | ||
| 10 | +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; | ||
| 11 | + | ||
| 12 | +@Schema(description = "管理后台 - 工单附件信息分页 Request VO") | ||
| 13 | +@Data | ||
| 14 | +public class AttachmentReqVO extends PageParam { | ||
| 15 | + | ||
| 16 | + @Schema(description = "工单号") | ||
| 17 | + private String orderNo; | ||
| 18 | + | ||
| 19 | + @Schema(description = "业务线:yl 园林,wy 物业,sz 市政 ") | ||
| 20 | + private String busiLine; | ||
| 21 | + | ||
| 22 | + @Schema(description = "业务类型:01 问题图片,02 进行中图片,03 已完成图片", example = "01") | ||
| 23 | + private String busiType; | ||
| 24 | + | ||
| 25 | +} |
urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/service/attachment/AttachmentService.java
| @@ -65,6 +65,6 @@ public interface AttachmentService { | @@ -65,6 +65,6 @@ public interface AttachmentService { | ||
| 65 | * @param reqVO 编号 | 65 | * @param reqVO 编号 |
| 66 | * @return 工单附件信息 | 66 | * @return 工单附件信息 |
| 67 | */ | 67 | */ |
| 68 | - List<AttachmentDO> getAttachmentByCondition(AttachmentPageReqVO reqVO); | 68 | + List<AttachmentDO> getAttachmentByCondition(AttachmentReqVO reqVO); |
| 69 | 69 | ||
| 70 | } | 70 | } |
urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/service/attachment/AttachmentServiceImpl.java
| @@ -87,7 +87,7 @@ public class AttachmentServiceImpl implements AttachmentService { | @@ -87,7 +87,7 @@ public class AttachmentServiceImpl implements AttachmentService { | ||
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | @Override | 89 | @Override |
| 90 | - public List<AttachmentDO> getAttachmentByCondition(AttachmentPageReqVO reqVO) { | 90 | + public List<AttachmentDO> getAttachmentByCondition(AttachmentReqVO reqVO) { |
| 91 | if (StringUtils.isEmpty(reqVO.getOrderNo())) { | 91 | if (StringUtils.isEmpty(reqVO.getOrderNo())) { |
| 92 | throw exception0(BAD_REQUEST.getCode(),"工单号不能为空"); | 92 | throw exception0(BAD_REQUEST.getCode(),"工单号不能为空"); |
| 93 | } | 93 | } |