From c94a87065a12006c1b3251418a13a459b23aa7e4 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期三, 27 九月 2023 10:15:42 +0800 Subject: [PATCH] #库龄、库存异常分离 --- src/main/java/com/zy/asrs/entity/WrkDetl.java | 37 +++++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/WrkDetl.java b/src/main/java/com/zy/asrs/entity/WrkDetl.java index 6431820..c6a5349 100644 --- a/src/main/java/com/zy/asrs/entity/WrkDetl.java +++ b/src/main/java/com/zy/asrs/entity/WrkDetl.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotations.TableName; import com.core.common.Cools; import com.core.common.SpringUtils; +import com.zy.asrs.service.LocOwnerService; import com.zy.common.utils.Synchro; import com.zy.system.entity.User; import com.zy.system.service.UserService; @@ -274,6 +275,16 @@ @ApiModelProperty(value= "鏄惁鍐荤粨") private Integer frozen; + /** + * 涓婃灦鍖哄煙{1:鍗曞搧鍖�,2:楂橀娣锋斁鍖�,3:浣庨娣锋斁鍖簘 + */ + @ApiModelProperty(value= "涓婃灦鍖哄煙") + @TableField("mat_type") + private Integer matType; + + @ApiModelProperty(value= "瀹㈡埛淇℃伅ID") + private Long owner; + public String getIoTime$(){ if (Cools.isEmpty(this.ioTime)){ return ""; @@ -292,6 +303,16 @@ return String.valueOf(this.beBatch); } } + + public String getOwner$(){ + LocOwnerService service = SpringUtils.getBean(LocOwnerService.class); + LocOwner locOwner = service.selectById(this.owner); + if (!Cools.isEmpty(locOwner)){ + return String.valueOf(locOwner.getOwner()); + } + return null; + } + public String getSource$(){ if (null == this.source){ return null; } @@ -367,4 +388,20 @@ Synchro.Copy(source, this); } + public String getMatType$() { + if (this.matType == null) { + return ""; + } + switch (this.matType) { + case 1: + return "鍗曞搧鍖�"; + case 2: + return "楂橀娣锋斁鍖�"; + case 3: + return "浣庨娣锋斁鍖�"; + default: + return ""; + } + } + } -- Gitblit v1.9.1