|
|
@@ -1,13 +1,11 @@
|
|
|
package cn.iocoder.yudao.module.iscs.controller.admin.materialsloan.vo;
|
|
|
|
|
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import lombok.Data;
|
|
|
-import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
|
-import java.time.LocalDateTime;
|
|
|
-
|
|
|
-import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
|
|
+import java.util.Date;
|
|
|
|
|
|
@Schema(description = "管理后台 - 物资借出分页 Request VO")
|
|
|
@Data
|
|
|
@@ -23,12 +21,12 @@ public class MaterialsLoanPageReqVO extends PageParam {
|
|
|
private Long loanFromId;
|
|
|
|
|
|
@Schema(description = "领取时间")
|
|
|
- @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
- private LocalDateTime[] loanTime;
|
|
|
+ @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ private Date loanTime;
|
|
|
|
|
|
@Schema(description = "提醒时间")
|
|
|
- @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
- private LocalDateTime[] reminderTime;
|
|
|
+ @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ private Date reminderTime;
|
|
|
|
|
|
@Schema(description = "归还人ID", example = "28697")
|
|
|
private Long restitutionUserId;
|
|
|
@@ -37,15 +35,15 @@ public class MaterialsLoanPageReqVO extends PageParam {
|
|
|
private Long restitutionToId;
|
|
|
|
|
|
@Schema(description = "理应归还时间")
|
|
|
- @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
- private LocalDateTime[] restitutionTime;
|
|
|
+ @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ private Date restitutionTime;
|
|
|
|
|
|
@Schema(description = "实际归还时间")
|
|
|
- @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
- private LocalDateTime[] actualRestitutionTime;
|
|
|
+ @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ private Date actualRestitutionTime;
|
|
|
|
|
|
@Schema(description = "超时报警")
|
|
|
- private LocalDateTime timeoutAlarm;
|
|
|
+ private Date timeoutAlarm;
|
|
|
|
|
|
@Schema(description = "是否需要归还")
|
|
|
private Integer restitutionRequired;
|
|
|
@@ -57,8 +55,8 @@ public class MaterialsLoanPageReqVO extends PageParam {
|
|
|
private String status;
|
|
|
|
|
|
@Schema(description = "创建时间")
|
|
|
- @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
- private LocalDateTime[] createTime;
|
|
|
+ @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ private Date createTime;
|
|
|
|
|
|
@Schema(description = "物资名称")
|
|
|
private String materialsName;
|