From 4b0cf5de549ebfb56a85b8e3e4f69331e90f1411 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期五, 08 八月 2025 16:06:45 +0800 Subject: [PATCH] no message --- rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/StockStatistic.java | 90 +++++++++++++++++++++++++++++++------------- 1 files changed, 63 insertions(+), 27 deletions(-) diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/StockStatistic.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/StockStatistic.java index e92e213..09c91ce 100644 --- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/StockStatistic.java +++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/StockStatistic.java @@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.vincent.rsf.server.manager.enums.TaskType; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -12,7 +14,10 @@ import com.vincent.rsf.framework.common.SpringUtils; import com.vincent.rsf.server.system.service.UserService; import com.vincent.rsf.server.system.entity.User; +import org.springframework.format.annotation.DateTimeFormat; + import java.io.Serializable; +import java.text.SimpleDateFormat; import java.util.Date; @Data @@ -54,8 +59,30 @@ @ApiModelProperty(value= "鐗╂枡缂栫爜") private String matnrCode; - @ApiModelProperty(value= "") + @ApiModelProperty(value= "鏁伴噺") private Long count; + + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + private Date createTime; + + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + private Date updateTime; + + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + private String createBy; + + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + private String updateBy; + + @ApiModelProperty("鎵樼洏鐮�") + private String barcode; + + @ApiModelProperty("搴撲綅") + private String locCode; /** * 搴撳瓨鎵规 @@ -63,7 +90,7 @@ @ApiModelProperty(value= "搴撳瓨鎵规") private String batch; - @ApiModelProperty(value= "") + @ApiModelProperty(value= "鏁伴噺") private Double anfme; /** @@ -87,31 +114,40 @@ this.unit = unit; } -// StockStatistic stockStatistic = new StockStatistic( -// null, // ID[闈炵┖] -// null, // -// null, // 浠诲姟绫诲瀷 -// null, // 浠诲姟鐘舵�� -// null, // 鐗╂枡鍚嶇О -// null, // 鐗╂枡缂栫爜 -// null, // [闈炵┖] -// null, // 搴撳瓨鎵规 -// null, // -// null // 搴撳瓨鍗曚綅 -// ); - - - - public Boolean getStatusBool(){ - if (null == this.status){ return null; } - switch (this.status){ - case 1: - return true; - case 0: - return false; - default: - return null; - } + public String getTaskType$() { + return TaskType.getTypeDesc(taskType); } + + public String getCreateBy$(){ + UserService service = SpringUtils.getBean(UserService.class); + User user = service.getById(this.createBy); + if (!Cools.isEmpty(user)){ + return String.valueOf(user.getNickname()); + } + return null; + } + + public String getCreateTime$(){ + if (Cools.isEmpty(this.createTime)){ + return ""; + } + return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); + } + + public String getUpdateBy$(){ + UserService service = SpringUtils.getBean(UserService.class); + User user = service.getById(this.updateBy); + if (!Cools.isEmpty(user)){ + return String.valueOf(user.getNickname()); + } + return null; + } + + public String getUpdateTime$(){ + if (Cools.isEmpty(this.updateTime)){ + return ""; + } + return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); + } } -- Gitblit v1.9.1