From a58333403e272bcbe7c7d8e1749d000d72dffa8f Mon Sep 17 00:00:00 2001 From: verou <857149855@qq.com> Date: 星期四, 03 四月 2025 17:16:36 +0800 Subject: [PATCH] fix:修改 --- rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/TaskItem.java | 26 +++++++++++++++++++++++--- 1 files changed, 23 insertions(+), 3 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 87aeffc..3b7d24a 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 @@ -4,6 +4,10 @@ import java.text.SimpleDateFormat; import java.util.Date; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.vincent.rsf.server.system.constant.DictTypeCode; +import com.vincent.rsf.server.system.entity.DictData; +import com.vincent.rsf.server.system.service.DictDataService; import lombok.experimental.Accessors; import org.springframework.format.annotation.DateTimeFormat; import java.text.SimpleDateFormat; @@ -22,6 +26,7 @@ import com.vincent.rsf.server.system.entity.User; import java.io.Serializable; import java.util.Date; +import java.util.Objects; @Data @Accessors(chain = true) @@ -55,9 +60,8 @@ @ApiModelProperty(value= "鐗╂枡鍚嶇О") private String maktx; - @ApiModelProperty("婧愮紪鐮�") - private String sourceCode; + private Long source; @ApiModelProperty("鍗曟嵁ID") private Long orderId; @@ -67,6 +71,11 @@ @ApiModelProperty("鍗曟嵁鏄庣粏ID") private Long orderItemId; + /** + * 鐗╂枡璺熻釜鐮� + */ + @ApiModelProperty("鐗╂枡璺熻釜鐮�") + private String trackCode; /** * 鐗╂枡缂栫爜 */ @@ -119,7 +128,6 @@ * 鏄惁鍒犻櫎 1: 鏄� 0: 鍚� */ @ApiModelProperty(value= "鏄惁鍒犻櫎 1: 鏄� 0: 鍚� ") - @TableLogic private Integer deleted; /** @@ -204,6 +212,18 @@ // null // 澶囨敞 // ); + 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(); + } + public String getStatus$(){ if (null == this.status){ return null; } switch (this.status){ -- Gitblit v1.9.1