From b06233aa71b70f7a30ff382ae1ba19c29b134d7c Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期五, 28 十一月 2025 15:41:51 +0800
Subject: [PATCH] #库存调整完成
---
src/main/java/com/zy/asrs/entity/LocDetl.java | 36 ++++++++++++++++++++++++++++++++----
1 files changed, 32 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/zy/asrs/entity/LocDetl.java b/src/main/java/com/zy/asrs/entity/LocDetl.java
index c95626c..12178a7 100644
--- a/src/main/java/com/zy/asrs/entity/LocDetl.java
+++ b/src/main/java/com/zy/asrs/entity/LocDetl.java
@@ -5,6 +5,7 @@
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
+import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.core.common.Cools;
import com.core.common.SpringUtils;
@@ -20,6 +21,7 @@
import lombok.experimental.Accessors;
import java.io.Serializable;
+import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
@@ -31,7 +33,7 @@
private static final long serialVersionUID = 1L;
- @TableId
+ @TableId(type = IdType.AUTO)
private Long id;
@TableField("loc_id")
@@ -66,8 +68,8 @@
@ExcelProperty("瑙勬牸")
private String specs;
- @ApiModelProperty(value= "璐у搧鐗瑰緛")
- @ExcelProperty("璐у搧鐗瑰緛")
+ @ApiModelProperty(value= "鎵瑰彿")
+ @ExcelProperty("鎵瑰彿")
private String batch;
@ApiModelProperty(value= "鍗曟嵁缂栧彿")
@@ -121,7 +123,7 @@
private Double weight;
@ApiModelProperty(value= "闀垮害")
- private Double man_length;
+ private Double manLength;
@ApiModelProperty(value= "浣撶Н")
private Double volume;
@@ -228,6 +230,32 @@
@ApiModelProperty(value= "鏄惁鍐荤粨,0.鏈喕缁擄紝1.宸插喕缁�")
private Integer frozen;
+ /**
+ * 宸紓鏁伴噺
+ */
+ @ApiModelProperty(value= "宸紓鏁伴噺")
+ @TableField("diff_qty")
+ private BigDecimal diffQty = BigDecimal.ZERO;
+
+
+
+ @ApiModelProperty(value= "璐﹂潰鏁伴噺")
+ @TableField("book_qty")
+ private BigDecimal bookQty = BigDecimal.ZERO;
+// private BigDecimal bookQty = Cools.isEmpty(anfme)? BigDecimal.ZERO : new BigDecimal(anfme.toString());
+
+
+ public BigDecimal getBookQty() {
+
+ if (diffQty.compareTo(BigDecimal.ZERO) == 0 ) {
+ return BigDecimal.ZERO;
+ }
+ if ( diffQty.compareTo(BigDecimal.ZERO) > 0) {
+ return new BigDecimal(anfme.toString());
+ }
+ return new BigDecimal(anfme.toString()).subtract(diffQty);
+ }
+
public String getLocNo$(){
LocMastService service = SpringUtils.getBean(LocMastService.class);
LocMast locMast = service.selectById(this.locNo);
--
Gitblit v1.9.1