From dcd7fcf596005d0c7cf66558bee97edf6c3b03a0 Mon Sep 17 00:00:00 2001
From: wang..123 <brook_w@163.com>
Date: 星期四, 10 三月 2022 18:12:09 +0800
Subject: [PATCH] #物料状态维护
---
src/main/java/com/zy/asrs/entity/LocNormal.java | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/zy/asrs/entity/LocNormal.java b/src/main/java/com/zy/asrs/entity/LocNormal.java
index 453c3a6..a2d8673 100644
--- a/src/main/java/com/zy/asrs/entity/LocNormal.java
+++ b/src/main/java/com/zy/asrs/entity/LocNormal.java
@@ -4,9 +4,11 @@
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
+import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.zy.asrs.service.LocMastService;
import com.zy.system.entity.User;
import com.zy.system.service.UserService;
+import com.zy.asrs.service.LocAreaService;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import io.swagger.annotations.ApiModelProperty;
@@ -48,6 +50,12 @@
@ApiModelProperty(value= "浠撳簱")
private String warehouse;
+ @TableField(exist = false)
+ private String warehouseName;
+
+ @TableField(exist = false)
+ private String warehouse$;
+
@ApiModelProperty(value= "鍝佺墝")
private String brand;
@@ -84,7 +92,14 @@
private String state;
@TableField(exist = false)
+ private String getState$;
+
+ @TableField(exist = false)
private BigDecimal anfmeOut;
+
+ @ApiModelProperty(value= "鐗╂枡鐘舵��")
+ @TableField("mat_status")
+ private String matStatus;
public String getModiUser$(){
UserService service = SpringUtils.getBean(UserService.class);
@@ -119,4 +134,26 @@
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
}
+ public String getWarehouse$() {
+ LocAreaService warehouse = SpringUtils.getBean(LocAreaService.class);
+ LocArea warehouseName = warehouse.selectOne(new EntityWrapper<LocArea>().eq("uuid", this.warehouse));
+ if (!Cools.isEmpty(warehouseName)){
+ return String.valueOf(warehouseName.getName());
+ }
+ return null;
+ }
+
+ public String getState$() {
+ String txt = "";
+ switch (this.state) {
+ case "1":
+ txt = "宸插叆搴�";
+ break;
+ case "2":
+ txt = "宸插嚭搴�";
+ break;
+ }
+ return txt;
+ }
+
}
--
Gitblit v1.9.1