From 84759c579add1daea7b3dca92dcadf17c9318ec9 Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期四, 12 十二月 2024 13:28:34 +0800 Subject: [PATCH] 库存上下限预警 --- src/main/java/com/zy/asrs/entity/Order.java | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/Order.java b/src/main/java/com/zy/asrs/entity/Order.java index 99abc64..b42101b 100644 --- a/src/main/java/com/zy/asrs/entity/Order.java +++ b/src/main/java/com/zy/asrs/entity/Order.java @@ -8,6 +8,7 @@ import com.core.common.SpringUtils; import com.zy.asrs.service.DocTypeService; import com.zy.asrs.service.OrderSettleService; +import com.zy.common.utils.Synchro; import com.zy.system.entity.User; import com.zy.system.service.UserService; import io.swagger.annotations.ApiModelProperty; @@ -261,6 +262,13 @@ @ApiModelProperty(value= "澶囨敞") private String memo; + /** + * 鐘舵�� 1: 杩涜涓� 0: 鍒濆 2:宸插畬鎴� + */ + @ApiModelProperty(value= "鐘舵�� 2:宸插畬鎴� 1: 杩涜涓� 0: 鍒濆 ") + @TableField("move_status") + private Integer moveStatus; + public Order() {} public Order(String uuid,String orderNo,String orderTime,Long docType,Long itemId,String itemName,Long allotItemId,String defNumber,String number,Long cstmr,String cstmrName,String tel,String operMemb,Double totalFee,Double discount,Double discountFee,Double otherFee,Double actFee,Integer payType,String salesman,Integer accountDay,Integer postFeeType,Double postFee,Date payTime,Date sendTime,String shipName,String shipCode,Long settle,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { @@ -405,6 +413,20 @@ } } + public String getMoveStatus$(){ + if (null == this.moveStatus){ return null; } + switch (this.moveStatus){ + case 2: + return "宸插璐�"; + case 1: + return "澶囪揣涓�"; + case 0: + return "鏈垵濮�"; + default: + return String.valueOf(this.moveStatus); + } + } + public String getCreateBy$(){ UserService service = SpringUtils.getBean(UserService.class); User user = service.selectById(this.createBy); @@ -437,5 +459,8 @@ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); } + public void sync(Object source) { + Synchro.Copy(source, this); + } } -- Gitblit v1.9.1