From e4a7d5239f176c5cf5ba95b52c88366908d2ecfa Mon Sep 17 00:00:00 2001 From: L <L@123> Date: 星期三, 16 七月 2025 15:30:00 +0800 Subject: [PATCH] * --- src/main/java/com/zy/asrs/entity/WrkDetlLog.java | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 50 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/WrkDetlLog.java b/src/main/java/com/zy/asrs/entity/WrkDetlLog.java index 0383b98..988850b 100644 --- a/src/main/java/com/zy/asrs/entity/WrkDetlLog.java +++ b/src/main/java/com/zy/asrs/entity/WrkDetlLog.java @@ -2,8 +2,10 @@ import com.baomidou.mybatisplus.annotations.TableField; import com.baomidou.mybatisplus.annotations.TableName; +import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.core.common.Cools; import com.core.common.SpringUtils; +import com.zy.asrs.service.BasBoxTypeService; import com.zy.system.entity.User; import com.zy.system.service.UserService; import io.swagger.annotations.ApiModelProperty; @@ -12,6 +14,7 @@ import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; +import java.util.List; @Data @TableName("asr_wrk_detl_log") @@ -268,6 +271,13 @@ @ApiModelProperty(value= "澶囨敞") private String memo; + /** + * 鍗蜂俊鎭疘D + */ + @ApiModelProperty(value= "鍗蜂俊鎭疘D") + @TableField("roll_up") + private Long rollUp; + public String getIoTime$(){ if (Cools.isEmpty(this.ioTime)){ return ""; @@ -287,17 +297,37 @@ } } +// public String getSource$(){ +// if (null == this.source){ return null; } +// switch (this.source){ +// case 1: +// return "鍒堕��"; +// case 2: +// return "閲囪喘"; +// case 3: +// return "澶栧崗"; +// default: +// return String.valueOf(this.source); +// } +// } + public String getSource$(){ - if (null == this.source){ return null; } + if (null == this.source){ return "鏈‘璁�"; } switch (this.source){ case 1: - return "鍒堕��"; - case 2: - return "閲囪喘"; - case 3: - return "澶栧崗"; + return "宸茬‘璁�"; default: - return String.valueOf(this.source); + return "鏈‘璁�"; + } + } + + public String getDeadTime(){ + if (null == this.source){ return "鏈‘璁�"; } + switch (this.source){ + case 1: + return "宸茬‘璁�"; + default: + return "鏈‘璁�"; } } @@ -317,9 +347,11 @@ if (null == this.danger){ return null; } switch (this.danger){ case 1: - return "鏄�"; + return "鍚堟牸"; + case 2: + return "涓嶅悎鏍�"; case 0: - return "鍚�"; + return "寰呭垽"; default: return String.valueOf(this.danger); } @@ -357,5 +389,14 @@ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); } + public String getBrand$(){ + BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); + List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); + for (BasBoxType basBoxType:basBoxTypes){ + return String.valueOf(basBoxType.getBoxSpecs()); + } + return this.brand; + } + } -- Gitblit v1.9.1