From 306caa806d05016da049d6def6abcb85b819260e Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期六, 16 三月 2024 10:43:03 +0800
Subject: [PATCH] #显示屏作业数量为负数情况

---
 src/main/java/com/zy/asrs/entity/BasLift.java |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/asrs/entity/BasLift.java b/src/main/java/com/zy/asrs/entity/BasLift.java
index 2cddf57..cc7b5fa 100644
--- a/src/main/java/com/zy/asrs/entity/BasLift.java
+++ b/src/main/java/com/zy/asrs/entity/BasLift.java
@@ -1,5 +1,6 @@
 package com.zy.asrs.entity;
 
+import com.alibaba.fastjson.JSON;
 import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId;
 import com.baomidou.mybatisplus.enums.IdType;
 import com.baomidou.mybatisplus.annotations.TableField;
@@ -78,7 +79,7 @@
      */
     @ApiModelProperty(value= "鎻愬崌鏈哄潗鏍�")
     @TableField("point")
-    private NyShuttleProtocol.NyShuttlePointClass point;
+    private String point;
 
     /**
      * 妯″紡
@@ -187,7 +188,7 @@
 
     public BasLift() {}
 
-    public BasLift(Integer liftNo, Integer status, Integer wrkNo, Date updateTime, Long updateBy, String memo, Boolean pakMk, NyShuttleProtocol.NyShuttlePointClass point, Boolean model, Boolean busy, Boolean frontOverrun, Boolean backOverrun, Boolean leftOverrun, Boolean rightOverrun, Boolean overHeight, Boolean overWeight, Boolean hasTray, Boolean hasCar, Boolean deviceError, Integer taskAddress, Integer distAddress, Integer completeTaskNo, Integer lev) {
+    public BasLift(Integer liftNo, Integer status, Integer wrkNo, Date updateTime, Long updateBy, String memo, Boolean pakMk, String point, Boolean model, Boolean busy, Boolean frontOverrun, Boolean backOverrun, Boolean leftOverrun, Boolean rightOverrun, Boolean overHeight, Boolean overWeight, Boolean hasTray, Boolean hasCar, Boolean deviceError, Integer taskAddress, Integer distAddress, Integer completeTaskNo, Integer lev) {
         this.liftNo = liftNo;
         this.status = status;
         this.wrkNo = wrkNo;
@@ -229,5 +230,12 @@
         return null;
     }
 
+    public NyShuttleProtocol.NyShuttlePointClass getPoint$() {
+        if (Cools.isEmpty(this.point)){
+            return null;
+        }
+        return JSON.parseObject(this.point, NyShuttleProtocol.NyShuttlePointClass.class);
+    }
+
 
 }

--
Gitblit v1.9.1