From 9c7e5bc10f242b71f3d94e2c700cb7de79feda17 Mon Sep 17 00:00:00 2001 From: yxFwq <1> Date: 星期二, 25 二月 2025 08:45:14 +0800 Subject: [PATCH] * --- src/main/java/com/zy/asrs/entity/WrkDetlSingle.java | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/WrkDetlSingle.java b/src/main/java/com/zy/asrs/entity/WrkDetlSingle.java index db72854..857ec01 100644 --- a/src/main/java/com/zy/asrs/entity/WrkDetlSingle.java +++ b/src/main/java/com/zy/asrs/entity/WrkDetlSingle.java @@ -1,9 +1,11 @@ package com.zy.asrs.entity; +import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableField; import java.text.SimpleDateFormat; import java.util.Date; +import com.zy.asrs.service.BasBoxTypeService; import com.zy.common.utils.Synchro; import org.springframework.format.annotation.DateTimeFormat; import com.core.common.SpringUtils; @@ -465,5 +467,14 @@ 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