From 587fee18e22ed0ceee502ca12025a40e9d63989f Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期二, 03 九月 2024 10:47:43 +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