From f56e004dac74ebcf6638e0b8dc162062f19dbe34 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期一, 06 一月 2025 15:50:02 +0800 Subject: [PATCH] #平库入库完成+库存明细+库存统计 --- src/main/java/com/zy/asrs/entity/LocDetl.java | 47 ++++++++++++++++++++++++++++++++++++----------- 1 files changed, 36 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/LocDetl.java b/src/main/java/com/zy/asrs/entity/LocDetl.java index bd7eab3..59974a3 100644 --- a/src/main/java/com/zy/asrs/entity/LocDetl.java +++ b/src/main/java/com/zy/asrs/entity/LocDetl.java @@ -7,6 +7,7 @@ import com.core.common.Cools; import com.core.common.SpringUtils; import com.zy.asrs.service.LocMastService; +import com.zy.common.utils.Synchro; import com.zy.system.entity.User; import com.zy.system.service.UserService; import io.swagger.annotations.ApiModelProperty; @@ -42,17 +43,18 @@ @ExcelProperty("鍟嗗搧鍚嶇О") private String maktx; - @ApiModelProperty(value= "鎵瑰彿") - @ExcelProperty("鎵瑰彿") + @ApiModelProperty(value= "瑙勬牸") + @ExcelProperty("瑙勬牸") + private String specs; + + @ApiModelProperty(value= "璐у搧鐗瑰緛") + @ExcelProperty("璐у搧鐗瑰緛") private String batch; @ApiModelProperty(value= "鍗曟嵁缂栧彿") @ExcelProperty("鍗曟嵁缂栧彿") @TableField("order_no") private String orderNo; - - @ApiModelProperty(value= "瑙勬牸") - private String specs; @ApiModelProperty(value= "鍨嬪彿") private String model; @@ -132,7 +134,7 @@ private Integer source; @ApiModelProperty(value= "瑕佹眰妫�楠� 1: 鏄� 0: 鍚� ") - private Integer check; + private Integer inspect; @ApiModelProperty(value= "鍗遍櫓鍝� 1: 鏄� 0: 鍚� ") private Integer danger; @@ -155,6 +157,15 @@ @ApiModelProperty(value= "澶囨敞") private String memo; + + @ApiModelProperty(value= "棰勭暀1") + private String temp1; + @ApiModelProperty(value= "棰勭暀1") + private String temp2; + @ApiModelProperty(value= "棰勭暀1") + private String temp3; + @ApiModelProperty(value= "棰勭暀1") + private String temp4; public String getLocNo$(){ LocMastService service = SpringUtils.getBean(LocMastService.class); @@ -191,15 +202,15 @@ } } - public String getCheck$(){ - if (null == this.check){ return null; } - switch (this.check){ + public String getInspect$(){ + if (null == this.inspect){ return null; } + switch (this.inspect){ case 1: return "鏄�"; case 0: return "鍚�"; default: - return String.valueOf(this.check); + return String.valueOf(this.inspect); } } @@ -231,7 +242,6 @@ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); } - public String getAppeUser$(){ UserService service = SpringUtils.getBean(UserService.class); User user = service.selectById(this.appeUser); @@ -248,4 +258,19 @@ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); } + public long getStoreDate(){ + if (Cools.isEmpty(this.appeTime)){ + this.appeTime = new Date(); + } + long timeNow = new Date().getTime(); + long timeCreate = this.appeTime.getTime(); + + + return (timeNow - timeCreate) /24/60/60/1000; + } + + public void sync(Object source) { + Synchro.Copy(source, this); + } + } -- Gitblit v1.9.1