From e8cf4d70206fb9f4d09a4fc5a23aad2424e1369d Mon Sep 17 00:00:00 2001 From: 野心家 <1051256694@qq.com> Date: 星期二, 27 五月 2025 23:35:06 +0800 Subject: [PATCH] 合格 --- src/main/java/com/zy/asrs/entity/WrkDetlSingle.java | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/WrkDetlSingle.java b/src/main/java/com/zy/asrs/entity/WrkDetlSingle.java index 0a5735e..c46e733 100644 --- a/src/main/java/com/zy/asrs/entity/WrkDetlSingle.java +++ b/src/main/java/com/zy/asrs/entity/WrkDetlSingle.java @@ -1,8 +1,12 @@ 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; import com.zy.system.service.UserService; @@ -419,9 +423,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); } @@ -459,5 +465,18 @@ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); } + 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