From 8be136c5e451b623cec21e806bd30e6e2698587d Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期一, 17 二月 2025 16:42:40 +0800 Subject: [PATCH] 新增捡货单excel导出,销售用 --- src/main/java/com/zy/asrs/entity/LocInPrintMat.java | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/LocInPrintMat.java b/src/main/java/com/zy/asrs/entity/LocInPrintMat.java index d4815d1..072f075 100644 --- a/src/main/java/com/zy/asrs/entity/LocInPrintMat.java +++ b/src/main/java/com/zy/asrs/entity/LocInPrintMat.java @@ -5,6 +5,7 @@ import com.core.common.Cools;import java.text.SimpleDateFormat; import java.util.Date; import com.baomidou.mybatisplus.annotations.TableField; +import com.zy.asrs.service.LocOwnerService; import org.springframework.format.annotation.DateTimeFormat; import com.core.common.SpringUtils; import com.zy.system.service.UserService; @@ -112,6 +113,12 @@ @ApiModelProperty(value= "鍟嗗搧鍚嶇О") private String maktx; + /** + * 鍟嗗搧鍚嶇О + */ + @ApiModelProperty(value= "鍟嗗搧鍚嶇О") + private Long ownerId; + public LocInPrintMat() {} public LocInPrintMat(String uuid,Integer status,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo,String matnr,String batch,Double anfme,String locNo,String maktx) { @@ -130,11 +137,11 @@ } public LocInPrintMat(Date now,Long userId,String matnr,String batch,Double anfme,String locNo,String maktx) { - this.uuid = now.toString(); + this.uuid = String.valueOf(now.getTime()); this.createTime = now; this.createBy = userId; - this.updateTime = now; - this.updateBy = userId; +// this.updateTime = now; +// this.updateBy = userId; this.matnr = matnr; this.batch = batch; this.anfme = anfme; @@ -185,6 +192,15 @@ return null; } + public String getOwner$(){ + LocOwnerService locOwnerService = SpringUtils.getBean(LocOwnerService.class); + LocOwner locOwner = locOwnerService.selectById(this.ownerId); + if (!Cools.isEmpty(locOwner)){ + return String.valueOf(locOwner.getOwner()); + } + return null; + } + public String getUpdateTime$(){ if (Cools.isEmpty(this.updateTime)){ return ""; -- Gitblit v1.9.1