diff --git a/urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/controller/admin/attachment/AttachmentController.java b/urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/controller/admin/attachment/AttachmentController.java index 6848a02..874ed6e 100644 --- a/urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/controller/admin/attachment/AttachmentController.java +++ b/urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/controller/admin/attachment/AttachmentController.java @@ -104,7 +104,7 @@ public class AttachmentController { @PostMapping("/getByCondition") @Operation(summary = "获得工单附件信息") @PreAuthorize("@ss.hasPermission('workorder:attachment:query')") - public CommonResult> getAttachmentByCondition(@Valid @RequestBody AttachmentPageReqVO reqVO) { + public CommonResult> getAttachmentByCondition(@Valid @RequestBody AttachmentReqVO reqVO) { List attachment = attachmentService.getAttachmentByCondition(reqVO); return success(BeanUtils.toBean(attachment, AttachmentRespVO.class)); } diff --git a/urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/controller/admin/attachment/vo/AttachmentReqVO.java b/urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/controller/admin/attachment/vo/AttachmentReqVO.java new file mode 100644 index 0000000..5ed9651 --- /dev/null +++ b/urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/controller/admin/attachment/vo/AttachmentReqVO.java @@ -0,0 +1,25 @@ +package com.zteits.urbanops.module.workorder.controller.admin.attachment.vo; + +import com.zteits.urbanops.framework.common.pojo.PageParam; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; + +import java.time.LocalDateTime; + +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; + +@Schema(description = "管理后台 - 工单附件信息分页 Request VO") +@Data +public class AttachmentReqVO extends PageParam { + + @Schema(description = "工单号") + private String orderNo; + + @Schema(description = "业务线:yl 园林,wy 物业,sz 市政 ") + private String busiLine; + + @Schema(description = "业务类型:01 问题图片,02 进行中图片,03 已完成图片", example = "01") + private String busiType; + +} diff --git a/urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/service/attachment/AttachmentService.java b/urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/service/attachment/AttachmentService.java index 13190e2..bba13aa 100644 --- a/urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/service/attachment/AttachmentService.java +++ b/urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/service/attachment/AttachmentService.java @@ -65,6 +65,6 @@ public interface AttachmentService { * @param reqVO 编号 * @return 工单附件信息 */ - List getAttachmentByCondition(AttachmentPageReqVO reqVO); + List getAttachmentByCondition(AttachmentReqVO reqVO); } diff --git a/urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/service/attachment/AttachmentServiceImpl.java b/urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/service/attachment/AttachmentServiceImpl.java index fe7594b..e2194a8 100644 --- a/urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/service/attachment/AttachmentServiceImpl.java +++ b/urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/service/attachment/AttachmentServiceImpl.java @@ -87,7 +87,7 @@ public class AttachmentServiceImpl implements AttachmentService { } @Override - public List getAttachmentByCondition(AttachmentPageReqVO reqVO) { + public List getAttachmentByCondition(AttachmentReqVO reqVO) { if (StringUtils.isEmpty(reqVO.getOrderNo())) { throw exception0(BAD_REQUEST.getCode(),"工单号不能为空"); }