From 1dcfa3702505f0c431757312b5304531029f90f6 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 09 四月 2026 18:57:38 +0800
Subject: [PATCH] #getter$摘出entity

---
 rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/TaskItem.java |   42 +++++++++++++-----------------------------
 1 files changed, 13 insertions(+), 29 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/TaskItem.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/TaskItem.java
index abeee6b..7e08525 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/TaskItem.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/TaskItem.java
@@ -259,6 +259,16 @@
 
     @TableField(exist = false)
     private BigDecimal inputQty = BigDecimal.ZERO;
+    @TableField(exist = false)
+    private String orderType$;
+
+    @TableField(exist = false)
+    private String wkType$;
+
+    @TableField(exist = false)
+    private String isptResult$;
+
+
     public TaskItem() {}
 
     public TaskItem(Long taskId,Long matnrId,String maktx,String matnrCode,String unit,Double anfme,String batch,String spec,String model,String fieldsIndex,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
@@ -304,42 +314,16 @@
 //    );
 
     public String getOrderType$(){
-        if (null == this.orderType) {return  null;}
-        DictDataService dictDataService = SpringUtils.getBean(DictDataService.class);
-        DictData dictDatas = dictDataService.getOne(new LambdaQueryWrapper<DictData>()
-                .eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_ORDER_TYPE)
-                .eq(DictData::getValue, this.orderType));
-        if (Objects.isNull(dictDatas) || Objects.isNull(dictDatas.getLabel())) {
-            return null;
-        }
-        return dictDatas.getLabel();
+        return this.orderType$;
     }
 
     public String getWkType$(){
-        if (Cools.isEmpty(this.wkType)){
-            return "";
-        }
-        DictDataService dictDataService = SpringUtils.getBean(DictDataService.class);
-        DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>().eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_BUSINESS_TYPE).eq(DictData::getValue, this.wkType));
-        if (Objects.isNull(dictData)) {
-            return null;
-        }
-        return dictData.getLabel();
+        return this.wkType$;
     }
 
 
     public String getIsptResult$(){
-        if (Cools.isEmpty(this.isptResult)){
-            return null;
-        }
-        DictDataService dictDataService = SpringUtils.getBean(DictDataService.class);
-        DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>()
-                .eq(DictData::getDictTypeCode, DictTypeCode.DICT_INSPECT_RESULT)
-                .eq(DictData::getValue, this.isptResult));
-        if (Objects.isNull(dictData)) {
-            return null;
-        }
-        return dictData.getLabel();
+        return this.isptResult$;
     }
 
     public String getStatus$(){

--
Gitblit v1.9.1