From 9804bdb2b70ab01cd422845dfaa0d2d7bbd98758 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期六, 17 五月 2025 15:23:41 +0800
Subject: [PATCH] 接口编写

---
 src/main/java/com/zy/asrs/entity/InventoryCheckOrderDetl.java |  122 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 122 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/asrs/entity/InventoryCheckOrderDetl.java b/src/main/java/com/zy/asrs/entity/InventoryCheckOrderDetl.java
new file mode 100644
index 0000000..2961436
--- /dev/null
+++ b/src/main/java/com/zy/asrs/entity/InventoryCheckOrderDetl.java
@@ -0,0 +1,122 @@
+package com.zy.asrs.entity;
+
+import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId;
+import com.baomidou.mybatisplus.enums.IdType;
+import com.baomidou.mybatisplus.annotations.TableField;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import com.baomidou.mybatisplus.annotations.TableName;
+import java.io.Serializable;
+
+@Data
+@TableName("man_Inventory_check_order_detl")
+public class InventoryCheckOrderDetl implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty(value= "")
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    @ApiModelProperty(value= "")
+    @TableField("order_no")
+    private String orderNo;
+
+    @ApiModelProperty(value= "")
+    private String matnr;
+
+    @ApiModelProperty(value= "")
+    private String maktx;
+
+    @ApiModelProperty(value= "")
+    private String batch;
+
+    @ApiModelProperty(value= "")
+    private Double anfme;
+
+    @ApiModelProperty(value= "")
+    private String area;
+
+    @ApiModelProperty(value= "")
+    private String status;
+
+    @ApiModelProperty(value= "")
+    @TableField("loc_no")
+    private String locNo;
+
+    @ApiModelProperty(value= "")
+    @TableField("check_anfme")
+    private Double checkAnfme;
+
+    @ApiModelProperty(value= "")
+    @TableField("io_time")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    private Date ioTime;
+
+    public InventoryCheckOrderDetl() {}
+
+    public InventoryCheckOrderDetl(String orderNo,String matnr,String maktx,String batch,Double anfme,String area,String locNo,Date ioTime) {
+        this.orderNo = orderNo;
+        this.matnr = matnr;
+        this.maktx = maktx;
+        this.batch = batch;
+        this.anfme = anfme;
+        this.area = area;
+        this.locNo = locNo;
+        this.ioTime = ioTime;
+    }
+
+//    InventoryCheckOrderDetl inventoryCheckOrderDetl = new InventoryCheckOrderDetl(
+//            null,    // 
+//            null,    // 
+//            null,    // 
+//            null,    // 
+//            null,    // 
+//            null,    // 
+//            null,    // 
+//            null    // 
+//    );
+
+    public String getIoTime$(){
+        if (Cools.isEmpty(this.ioTime)){
+            return "";
+        }
+        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
+    }
+
+    public String getStatus$(){
+        if (Cools.isEmpty(this.status)){
+            return "";
+        }
+        switch (this.status){
+            case "1":
+                return "寰呯洏";
+            case "2":
+                return "宸茬洏";
+            default:
+                return "";
+        }
+    }
+
+    public String getProfit$(){
+        if (Cools.isEmpty(this.status) && !this.status.equals("1")){
+            return "鏈洏鐐�";
+        }
+        if (Cools.isEmpty(this.anfme) || Cools.isEmpty(this.checkAnfme)){
+            return "";
+        }
+        if (this.anfme > this.checkAnfme){
+            return "鐩樹簭";
+        }else if (this.anfme < this.checkAnfme){
+            return "鐩樼泩";
+        }else {
+            return "骞�";
+        }
+    }
+
+
+}

--
Gitblit v1.9.1