From e9c912f6b75360f5380579e4ed574f490ecd6d9e Mon Sep 17 00:00:00 2001 From: lsh <1> Date: 星期三, 24 一月 2024 17:22:01 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/entity/WaitPakin.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/WaitPakin.java b/src/main/java/com/zy/asrs/entity/WaitPakin.java index 000f169..c24dd70 100644 --- a/src/main/java/com/zy/asrs/entity/WaitPakin.java +++ b/src/main/java/com/zy/asrs/entity/WaitPakin.java @@ -2,7 +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.common.utils.Synchro; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -238,4 +241,13 @@ public void sync(Object source) { Synchro.Copy(source, this); } + + public String getBrand$(){ + BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); + BasBoxType basBoxType = basBoxTypeService.selectOne(new EntityWrapper<BasBoxType>().eq("box_type", this.brand)); + if (!Cools.isEmpty(basBoxType)){ + return String.valueOf(basBoxType.getBoxSpecs()); + } + return this.brand; + } } -- Gitblit v1.9.1