From fcbb4059f11d1e2b320d581bf6f960d9965142c6 Mon Sep 17 00:00:00 2001 From: pjb <123456> Date: 星期二, 08 七月 2025 08:58:18 +0800 Subject: [PATCH] Merge branch 'ycds-wms-dev' of http://47.97.1.152:5880/r/zy-asrs-master into ycds-wms-dev --- zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/OrderDetl.java | 26 ++++++++++++++++++++++---- 1 files changed, 22 insertions(+), 4 deletions(-) diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/OrderDetl.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/OrderDetl.java index bcf2089..d1449e0 100644 --- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/OrderDetl.java +++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/OrderDetl.java @@ -1,6 +1,6 @@ package com.zy.asrs.wms.asrs.entity; -import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.*; import java.lang.reflect.Field; import java.text.SimpleDateFormat; @@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.zy.asrs.common.utils.Synchro; +import com.zy.asrs.wms.asrs.entity.enums.OrderType; import com.zy.asrs.wms.asrs.entity.param.FieldParam; import com.zy.asrs.wms.asrs.service.MatFieldService; import com.zy.asrs.wms.asrs.service.MatService; @@ -19,9 +20,6 @@ import org.springframework.format.annotation.DateTimeFormat; import java.util.Date; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import com.zy.asrs.framework.common.Cools; @@ -55,6 +53,14 @@ */ @ApiModelProperty(value= "璁㈠崟缂栧彿") private String orderNo; + + @ApiModelProperty("鍗曟嵁绫诲瀷") + @TableField(exist = false) + private Integer orderType; + + @ApiModelProperty("鐗╂枡鍚嶇О") + @TableField(exist = false) + private String maktx; /** * 鏁伴噺 @@ -194,6 +200,18 @@ return qty; } + public String getOrderType$() { + if (orderType == null) {return null;} + if (orderType == 1) { + return OrderType.UTC_IN_ORDER.desc; + } else if (orderType == 2) { + return OrderType.UTC_OUT_ORDER.desc; + } else { + return OrderType.PK_IN_ORDER.desc; + } + } + + public String getOrderId$(){ OrderService service = SpringUtils.getBean(OrderService.class); Order order = service.getById(this.orderId); -- Gitblit v1.9.1