From 8d3ff63ab144ad6b48015b01196bc901944a48f9 Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期一, 16 十二月 2024 10:51:41 +0800 Subject: [PATCH] 煤质部分后端代码 --- iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/detection/dto/QualityQuickDTO.java | 13 ++++--------- 1 files changed, 4 insertions(+), 9 deletions(-) diff --git a/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/detection/dto/QualityQuickDTO.java b/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/detection/dto/QualityQuickDTO.java index bd047eb..aa72f75 100644 --- a/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/detection/dto/QualityQuickDTO.java +++ b/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/detection/dto/QualityQuickDTO.java @@ -1,13 +1,10 @@ package com.iailab.module.pms.coalquality.modules.detection.dto; -import com.iailab.iems.common.annotation.Dict; -import com.iailab.iems.common.validator.group.AddGroup; -import com.iailab.iems.common.validator.group.UpdateGroup; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Null; +import java.util.Date; import java.util.List; /** @@ -21,21 +18,19 @@ private static final long serialVersionUID = 1L; @Schema(description = "id") - @Null(message="{id.null}", groups = AddGroup.class) - @NotNull(message="{id.require}", groups = UpdateGroup.class) private String id; @Schema(description = "流水号") private String lsh; @Schema(description = "采样时间") - private java.util.Date datetime; + @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8") + private Date datetime; @Schema(description = "煤种") private String mz; @Schema(description = "煤种") - @Dict(dicCode = "ymmz", itemValue = "mz") private String mzName; @Schema(description = "快速检查详情") -- Gitblit v1.9.3