From 15f9bf6147e3a925094055ae2b56cfdf768338a8 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期三, 29 三月 2023 16:40:38 +0800
Subject: [PATCH] 读取四向穿梭车数据后保存至数据表中

---
 src/main/java/com/zy/core/model/protocol/ShuttleProtocol.java |    2 
 src/main/java/com/zy/asrs/entity/BasShuttle.java              |  222 +++++++++++++++++++++++++++---------
 src/main/java/com/zy/asrs/controller/ShuttleController.java   |    6 -
 src/main/java/com/zy/core/thread/ShuttleThread.java           |   62 +++++++++
 src/main/resources/mapper/BasShuttleMapper.xml                |   24 +++-
 src/main/java/com/zy/asrs/domain/vo/ShuttleDataVo.java        |    2 
 src/main/java/com/zy/common/CodeBuilder.java                  |    6 
 7 files changed, 245 insertions(+), 79 deletions(-)

diff --git a/src/main/java/com/zy/asrs/controller/ShuttleController.java b/src/main/java/com/zy/asrs/controller/ShuttleController.java
index 839572d..3dc3b05 100644
--- a/src/main/java/com/zy/asrs/controller/ShuttleController.java
+++ b/src/main/java/com/zy/asrs/controller/ShuttleController.java
@@ -164,9 +164,6 @@
                 vo.setShuttleNo(shuttleSlave.getId());
                 BasShuttle basShuttle = basShuttleService.selectById(shuttleSlave.getId());
                 if (!Cools.isEmpty(basShuttle)) {
-                    vo.setRow(basShuttle.getRow());
-                    vo.setBay(basShuttle.getBay());
-                    vo.setLev(basShuttle.getLev());
                     vo.setWorkNo(basShuttle.getWrkNo());
                     vo.setPakMk(basShuttle.getPakMk());
                 }
@@ -228,9 +225,6 @@
         } else {
             throw new CoolException("鍛戒护涓嬪彂澶辫触");
         }
-        basShuttle.setRow(vo.getRow());
-        basShuttle.setBay(vo.getBay());
-        basShuttle.setLev(vo.getLev());
 
         basShuttle.setPakMk(vo.getPakMk());
         basShuttle.setWrkNo(vo.getWorkNo());
diff --git a/src/main/java/com/zy/asrs/domain/vo/ShuttleDataVo.java b/src/main/java/com/zy/asrs/domain/vo/ShuttleDataVo.java
index 82a7f81..13eeb6a 100644
--- a/src/main/java/com/zy/asrs/domain/vo/ShuttleDataVo.java
+++ b/src/main/java/com/zy/asrs/domain/vo/ShuttleDataVo.java
@@ -17,6 +17,6 @@
 
     private Integer lev;
 
-    private String pakMk;
+    private Boolean pakMk;
 
 }
diff --git a/src/main/java/com/zy/asrs/entity/BasShuttle.java b/src/main/java/com/zy/asrs/entity/BasShuttle.java
index 999eb2b..c182e77 100644
--- a/src/main/java/com/zy/asrs/entity/BasShuttle.java
+++ b/src/main/java/com/zy/asrs/entity/BasShuttle.java
@@ -41,9 +41,9 @@
     private Integer status;
 
     /**
-     * 浣滀笟鎬�
+     * 褰撳墠灏忚溅鐘舵�侊紙鍐呴儴鑷垜缁存姢锛�
      */
-    @ApiModelProperty(value= "浣滀笟鎬�")
+    @ApiModelProperty(value= "褰撳墠灏忚溅鐘舵�侊紙鍐呴儴鑷垜缁存姢锛�")
     @TableField("shuttle_status")
     private Integer shuttleStatus;
 
@@ -53,45 +53,6 @@
     @ApiModelProperty(value= "浠诲姟鍙�")
     @TableField("wrk_no")
     private Integer wrkNo;
-
-    /**
-     * 鎺�
-     */
-    @ApiModelProperty(value= "鎺�")
-    private Integer row;
-
-    /**
-     * 鍒�
-     */
-    @ApiModelProperty(value= "鍒�")
-    private Integer bay;
-
-    /**
-     * 灞�
-     */
-    @ApiModelProperty(value= "灞�")
-    private Integer lev;
-
-    /**
-     * 鍘嗗彶鎺�
-     */
-    @ApiModelProperty(value= "鍘嗗彶鎺�")
-    @TableField("his_row")
-    private Integer hisRow;
-
-    /**
-     * 鍘嗗彶鍒�
-     */
-    @ApiModelProperty(value= "鍘嗗彶鍒�")
-    @TableField("his_bay")
-    private Integer hisBay;
-
-    /**
-     * 鍘嗗彶灞�
-     */
-    @ApiModelProperty(value= "鍘嗗彶灞�")
-    @TableField("his_lev")
-    private Integer hisLev;
 
     /**
      * 鏆傚瓨搴撲綅
@@ -158,25 +119,138 @@
     private Integer liftNo;
 
     /**
-     * 鏍囪
+     * 浣滀笟鏍囪
      */
-    @ApiModelProperty(value= "鏍囪")
+    @ApiModelProperty(value= "浣滀笟鏍囪")
     @TableField("pak_mk")
-    private String pakMk;
+    private Boolean pakMk;
+
+    /**
+     * 灏忚溅蹇欑姸鎬佷綅
+     */
+    @ApiModelProperty(value= "灏忚溅蹇欑姸鎬佷綅")
+    @TableField("busy_status")
+    private Integer busyStatus;
+
+    /**
+     * 褰撳墠浜岀淮鐮�
+     */
+    @ApiModelProperty(value= "褰撳墠浜岀淮鐮�")
+    @TableField("current_code")
+    private Integer currentCode;
+
+    /**
+     * 鐢垫睜鐢甸噺鐧惧垎姣�
+     */
+    @ApiModelProperty(value= "鐢垫睜鐢甸噺鐧惧垎姣�")
+    @TableField("battery_power")
+    private Integer batteryPower;
+
+    /**
+     * 鐢垫睜娓╁害
+     */
+    @ApiModelProperty(value= "鐢垫睜娓╁害")
+    @TableField("battery_temp")
+    private Integer batteryTemp;
+
+    /**
+     * 閿欒缂栧彿
+     */
+    @ApiModelProperty(value= "閿欒缂栧彿")
+    @TableField("error_code")
+    private Integer errorCode;
+
+    /**
+     * Plc杈撳嚭鐘舵�両O
+     */
+    @ApiModelProperty(value= "Plc杈撳嚭鐘舵�両O")
+    @TableField("plc_output_status_io")
+    private Integer plcOutputStatusIo;
+
+    /**
+     * 閿欒淇℃伅鐮�
+     */
+    @ApiModelProperty(value= "閿欒淇℃伅鐮�")
+    @TableField("status_error_code")
+    private Integer statusErrorCode;
+
+    /**
+     * PLC杈撳叆鐘舵��
+     */
+    @ApiModelProperty(value= "PLC杈撳叆鐘舵��")
+    @TableField("plc_input_status")
+    private Integer plcInputStatus;
+
+    /**
+     * 褰撳墠鎴栬�呬箣鍓嶈鍒扮殑浜岀淮鐮佸��
+     */
+    @ApiModelProperty(value= "褰撳墠鎴栬�呬箣鍓嶈鍒扮殑浜岀淮鐮佸��")
+    @TableField("current_or_before_code")
+    private Integer currentOrBeforeCode;
+
+    /**
+     * 璇诲埌鐨勪簩缁寸爜X鏂瑰悜鍋忕Щ閲�
+     */
+    @ApiModelProperty(value= "璇诲埌鐨勪簩缁寸爜X鏂瑰悜鍋忕Щ閲�")
+    @TableField("code_offset_x")
+    private Integer codeOffsetX;
+
+    /**
+     * 璇诲埌鐨勪簩缁寸爜Y鏂瑰悜鍋忕Щ閲�
+     */
+    @ApiModelProperty(value= "璇诲埌鐨勪簩缁寸爜Y鏂瑰悜鍋忕Щ閲�")
+    @TableField("code_offset_y")
+    private Integer codeOffsetY;
+
+    /**
+     * 褰撳墠鐨勭數鍘嬪��
+     */
+    @ApiModelProperty(value= "褰撳墠鐨勭數鍘嬪��")
+    @TableField("current_voltage")
+    private Integer currentVoltage;
+
+    /**
+     * 褰撳墠鐨勬ā鎷熼噺鍊�
+     */
+    @ApiModelProperty(value= "褰撳墠鐨勬ā鎷熼噺鍊�")
+    @TableField("current_analog_value")
+    private Integer currentAnalogValue;
+
+    /**
+     * 褰撳墠鐨勫崌闄嶄己鏈嶉�熷害
+     */
+    @ApiModelProperty(value= "褰撳墠鐨勫崌闄嶄己鏈嶉�熷害")
+    @TableField("current_lift_servo_speed")
+    private Integer currentLiftServoSpeed;
+
+    /**
+     * 褰撳墠鐨勮璧颁己鏈嶉�熷害
+     */
+    @ApiModelProperty(value= "褰撳墠鐨勮璧颁己鏈嶉�熷害")
+    @TableField("current_move_servo_speed")
+    private Integer currentMoveServoSpeed;
+
+    /**
+     * 褰撳墠鐨勫崌闄嶄己鏈嶈礋杞界巼
+     */
+    @ApiModelProperty(value= "褰撳墠鐨勫崌闄嶄己鏈嶈礋杞界巼")
+    @TableField("current_lift_servo_load")
+    private Integer currentLiftServoLoad;
+
+    /**
+     * 褰撳墠鐨勮璧颁己鏈嶈礋杞界巼
+     */
+    @ApiModelProperty(value= "褰撳墠鐨勮璧颁己鏈嶈礋杞界巼")
+    @TableField("current_move_servo_load")
+    private Integer currentMoveServoLoad;
 
     public BasShuttle() {}
 
-    public BasShuttle(Integer shuttleNo,Integer status,Integer shuttleStatus,Integer wrkNo,Integer row,Integer bay,Integer lev,Integer hisRow,Integer hisBay,Integer hisLev,String idleLoc,Integer autoCharge,Integer chargeLine,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo,Integer liftNo) {
+    public BasShuttle(Integer shuttleNo,Integer status,Integer shuttleStatus,Integer wrkNo,String idleLoc,Integer autoCharge,Integer chargeLine,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo,Integer liftNo,Boolean pakMk,Integer busyStatus,Integer currentCode,Integer batteryPower,Integer batteryTemp,Integer errorCode,Integer plcOutputStatusIo,Integer statusErrorCode,Integer plcInputStatus,Integer currentOrBeforeCode,Integer codeOffsetX,Integer codeOffsetY,Integer currentVoltage,Integer currentAnalogValue,Integer currentLiftServoSpeed,Integer currentMoveServoSpeed,Integer currentLiftServoLoad,Integer currentMoveServoLoad) {
         this.shuttleNo = shuttleNo;
         this.status = status;
         this.shuttleStatus = shuttleStatus;
         this.wrkNo = wrkNo;
-        this.row = row;
-        this.bay = bay;
-        this.lev = lev;
-        this.hisRow = hisRow;
-        this.hisBay = hisBay;
-        this.hisLev = hisLev;
         this.idleLoc = idleLoc;
         this.autoCharge = autoCharge;
         this.chargeLine = chargeLine;
@@ -186,19 +260,31 @@
         this.updateTime = updateTime;
         this.memo = memo;
         this.liftNo = liftNo;
+        this.pakMk = pakMk;
+        this.busyStatus = busyStatus;
+        this.currentCode = currentCode;
+        this.batteryPower = batteryPower;
+        this.batteryTemp = batteryTemp;
+        this.errorCode = errorCode;
+        this.plcOutputStatusIo = plcOutputStatusIo;
+        this.statusErrorCode = statusErrorCode;
+        this.plcInputStatus = plcInputStatus;
+        this.currentOrBeforeCode = currentOrBeforeCode;
+        this.codeOffsetX = codeOffsetX;
+        this.codeOffsetY = codeOffsetY;
+        this.currentVoltage = currentVoltage;
+        this.currentAnalogValue = currentAnalogValue;
+        this.currentLiftServoSpeed = currentLiftServoSpeed;
+        this.currentMoveServoSpeed = currentMoveServoSpeed;
+        this.currentLiftServoLoad = currentLiftServoLoad;
+        this.currentMoveServoLoad = currentMoveServoLoad;
     }
 
 //    BasShuttle basShuttle = new BasShuttle(
 //            null,    // 鍥涘悜绌挎杞﹀彿[闈炵┖]
 //            null,    // 鐘舵��
-//            null,    // 浣滀笟鎬�
+//            null,    // 褰撳墠灏忚溅鐘舵�侊紙鍐呴儴鑷垜缁存姢锛�
 //            null,    // 浠诲姟鍙�
-//            null,    // 鎺�
-//            null,    // 鍒�
-//            null,    // 灞�
-//            null,    // 鍘嗗彶鎺�
-//            null,    // 鍘嗗彶鍒�
-//            null,    // 鍘嗗彶灞�
 //            null,    // 鏆傚瓨搴撲綅
 //            null,    // 鑷姩鍏呯數
 //            null,    // 鐢甸噺绾�
@@ -207,7 +293,25 @@
 //            null,    // 淇敼浜哄憳
 //            null,    // 淇敼鏃堕棿
 //            null,    // 澶囨敞
-//            null    // 鎻愬崌鏈哄彿
+//            null,    // 鎻愬崌鏈哄彿
+//            null,    // 浣滀笟鏍囪
+//            null,    // 灏忚溅蹇欑姸鎬佷綅
+//            null,    // 褰撳墠浜岀淮鐮�
+//            null,    // 鐢垫睜鐢甸噺鐧惧垎姣�
+//            null,    // 鐢垫睜娓╁害
+//            null,    // 閿欒缂栧彿
+//            null,    // Plc杈撳嚭鐘舵�両O
+//            null,    // 閿欒淇℃伅鐮�
+//            null,    // PLC杈撳叆鐘舵��
+//            null,    // 褰撳墠鎴栬�呬箣鍓嶈鍒扮殑浜岀淮鐮佸��
+//            null,    // 璇诲埌鐨勪簩缁寸爜X鏂瑰悜鍋忕Щ閲�
+//            null,    // 璇诲埌鐨勪簩缁寸爜Y鏂瑰悜鍋忕Щ閲�
+//            null,    // 褰撳墠鐨勭數鍘嬪��
+//            null,    // 褰撳墠鐨勬ā鎷熼噺鍊�
+//            null,    // 褰撳墠鐨勫崌闄嶄己鏈嶉�熷害
+//            null,    // 褰撳墠鐨勮璧颁己鏈嶉�熷害
+//            null,    // 褰撳墠鐨勫崌闄嶄己鏈嶈礋杞界巼
+//            null    // 褰撳墠鐨勮璧颁己鏈嶈礋杞界巼
 //    );
 
     public String getStatus$(){
diff --git a/src/main/java/com/zy/common/CodeBuilder.java b/src/main/java/com/zy/common/CodeBuilder.java
index 4a18385..ed558f4 100644
--- a/src/main/java/com/zy/common/CodeBuilder.java
+++ b/src/main/java/com/zy/common/CodeBuilder.java
@@ -1,6 +1,7 @@
 package com.zy.common;
 
 import com.core.generators.CoolGenerator;
+import com.core.generators.constant.SqlOsType;
 
 /**
  * Created by vincent on 2019-06-04
@@ -15,10 +16,11 @@
 //        generator.password="xltys1995";
 //        generator.table="sys_host";
         // sqlserver
-        generator.url="localhost:1433;databasename=bfasrs";
+        generator.sqlOsType = SqlOsType.SQL_SERVER;
+        generator.url="192.168.4.15:1433;databasename=xzjlasrs";
         generator.username="sa";
         generator.password="sa@123";
-        generator.table="asr_bas_ste_err";
+        generator.table="asr_bas_shuttle";
         generator.packagePath="com.zy.asrs";
 
         generator.controller = false;
diff --git a/src/main/java/com/zy/core/model/protocol/ShuttleProtocol.java b/src/main/java/com/zy/core/model/protocol/ShuttleProtocol.java
index 0214f58..8e407ec 100644
--- a/src/main/java/com/zy/core/model/protocol/ShuttleProtocol.java
+++ b/src/main/java/com/zy/core/model/protocol/ShuttleProtocol.java
@@ -2,12 +2,10 @@
 
 import com.core.common.SpringUtils;
 import com.zy.asrs.service.BasShuttleService;
-import com.zy.asrs.service.BasSteService;
 import com.zy.core.News;
 import com.zy.core.enums.ShuttleErrorCodeType;
 import com.zy.core.enums.ShuttleProtocolStatusType;
 import com.zy.core.enums.ShuttleStatusType;
-import com.zy.core.enums.SteStatusType;
 import com.zy.core.model.command.ShuttleAssignCommand;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
diff --git a/src/main/java/com/zy/core/thread/ShuttleThread.java b/src/main/java/com/zy/core/thread/ShuttleThread.java
index e2ee80d..43a6f6a 100644
--- a/src/main/java/com/zy/core/thread/ShuttleThread.java
+++ b/src/main/java/com/zy/core/thread/ShuttleThread.java
@@ -8,8 +8,11 @@
 import com.core.common.DateUtils;
 import com.core.common.SpringUtils;
 import com.core.exception.CoolException;
+import com.zy.asrs.entity.BasShuttle;
 import com.zy.asrs.entity.BasShuttleOpt;
+import com.zy.asrs.mapper.BasShuttleMapper;
 import com.zy.asrs.service.BasShuttleOptService;
+import com.zy.asrs.service.BasShuttleService;
 import com.zy.common.model.NavigateNode;
 import com.zy.common.utils.CommonUtils;
 import com.zy.common.utils.NavigatePositionConvert;
@@ -160,9 +163,6 @@
 
                 ///璇诲彇鍥涘悜绌挎杞︾姸鎬�-end
 
-                OutputQueue.SHUTTLE.offer(MessageFormat.format("銆恵0}銆慬id:{1}] <<<<< 瀹炴椂鏁版嵁鏇存柊鎴愬姛",DateUtils.convert(new Date()), slave.getId()));
-                log.info(MessageFormat.format("銆恵0}銆慬id:{1}] <<<<< 瀹炴椂鏁版嵁鏇存柊鎴愬姛",DateUtils.convert(new Date()), slave.getId()));
-
                 //灏忚溅澶勪簬蹇欑鐘舵�侊紝灏嗘爣璁扮疆涓簍rue
                 if (shuttleProtocol.getBusyStatusType() == ShuttleStatusType.BUSY) {
                     shuttleProtocol.setPakMk(true);
@@ -174,6 +174,62 @@
                     executeWork(shuttleProtocol.getAssignCommand());
                 }
 
+                //灏嗗洓鍚戠┛姊溅鐘舵�佷繚瀛樿嚦鏁版嵁搴�
+                BasShuttleService shuttleService = SpringUtils.getBean(BasShuttleService.class);
+                BasShuttle basShuttle = shuttleService.selectById(shuttleProtocol.getShuttleNo());
+                if (basShuttle == null) {
+                    basShuttle = new BasShuttle();
+                    //鍥涘悜绌挎杞﹀彿
+                    basShuttle.setShuttleNo(slave.getId());
+                    shuttleService.insert(basShuttle);
+                }
+                //灏忚溅蹇欑姸鎬佷綅
+                basShuttle.setBusyStatus(shuttleProtocol.getBusyStatus().intValue());
+                //褰撳墠浜岀淮鐮�
+                basShuttle.setCurrentCode(shuttleProtocol.getCurrentCode().intValue());
+                //鐢垫睜鐢甸噺鐧惧垎姣�
+                basShuttle.setBatteryPower(shuttleProtocol.getBatteryPower().intValue());
+                //鐢垫睜娓╁害
+                basShuttle.setBatteryTemp(shuttleProtocol.getBatteryTemp().intValue());
+                //閿欒缂栧彿
+                basShuttle.setErrorCode(shuttleProtocol.getErrorCode().intValue());
+                //Plc杈撳嚭鐘舵�両O
+                basShuttle.setPlcOutputStatusIo(shuttleProtocol.getPlcOutputStatusIO().intValue());
+                //閿欒淇℃伅鐮�
+                basShuttle.setStatusErrorCode(shuttleProtocol.getStatusErrorCode().intValue());
+                //PLC杈撳叆鐘舵��
+                basShuttle.setPlcInputStatus(shuttleProtocol.getPlcInputStatus().intValue());
+                //褰撳墠鎴栬�呬箣鍓嶈鍒扮殑浜岀淮鐮佸��
+                basShuttle.setCurrentOrBeforeCode(shuttleProtocol.getCurrentOrBeforeCode().intValue());
+                //璇诲埌鐨勪簩缁寸爜X鏂瑰悜鍋忕Щ閲�
+                basShuttle.setCodeOffsetX(shuttleProtocol.getCodeOffsetX().intValue());
+                //璇诲埌鐨勪簩缁寸爜Y鏂瑰悜鍋忕Щ閲�
+                basShuttle.setCodeOffsetY(shuttleProtocol.getCodeOffsetY().intValue());
+                //褰撳墠鐨勭數鍘嬪��
+                basShuttle.setCurrentVoltage(shuttleProtocol.getCurrentVoltage().intValue());
+                //褰撳墠鐨勬ā鎷熼噺鍊�
+                basShuttle.setCurrentAnalogValue(shuttleProtocol.getCurrentAnalogValue().intValue());
+                //褰撳墠鐨勫崌闄嶄己鏈嶉�熷害
+                basShuttle.setCurrentLiftServoSpeed(shuttleProtocol.getCurrentLiftServoSpeed().intValue());
+                //褰撳墠鐨勮璧颁己鏈嶉�熷害
+                basShuttle.setCurrentMoveServoSpeed(shuttleProtocol.getCurrentMoveServoSpeed().intValue());
+                //褰撳墠鐨勫崌闄嶄己鏈嶈礋杞界巼
+                basShuttle.setCurrentLiftServoLoad(shuttleProtocol.getCurrentLiftServoLoad().intValue());
+                //褰撳墠鐨勮璧颁己鏈嶈礋杞界巼
+                basShuttle.setCurrentMoveServoLoad(shuttleProtocol.getCurrentMoveServoLoad().intValue());
+                //褰撳墠灏忚溅鐘舵�侊紙鍐呴儴鑷垜缁存姢锛�
+                basShuttle.setShuttleStatus(shuttleProtocol.getProtocolStatus());
+                //浠诲姟鍙�
+                basShuttle.setWrkNo(shuttleProtocol.getTaskNo().intValue());
+                //淇敼鏃堕棿
+                basShuttle.setUpdateTime(new Date());
+                //浣滀笟鏍囪
+                basShuttle.setPakMk(shuttleProtocol.getPakMk());
+                if (shuttleService.updateById(basShuttle)) {
+                    OutputQueue.SHUTTLE.offer(MessageFormat.format("銆恵0}銆慬id:{1}] <<<<< 瀹炴椂鏁版嵁鏇存柊鎴愬姛",DateUtils.convert(new Date()), slave.getId()));
+                    log.info(MessageFormat.format("銆恵0}銆慬id:{1}] <<<<< 瀹炴椂鏁版嵁鏇存柊鎴愬姛",DateUtils.convert(new Date()), slave.getId()));
+                }
+
             }else {
                 OutputQueue.SHUTTLE.offer(MessageFormat.format("銆恵0}銆憑1}鍥涘悜绌挎杞lc鐘舵�佷俊鎭け璐�", DateUtils.convert(new Date()), slave.getId()));
                 throw new CoolException(MessageFormat.format( "鍥涘悜绌挎杞lc鐘舵�佷俊鎭け璐� ===>> [id:{0}] [ip:{1}] [port:{2}]", slave.getId(), slave.getIp(), slave.getPort()));
diff --git a/src/main/resources/mapper/BasShuttleMapper.xml b/src/main/resources/mapper/BasShuttleMapper.xml
index 724891e..181726d 100644
--- a/src/main/resources/mapper/BasShuttleMapper.xml
+++ b/src/main/resources/mapper/BasShuttleMapper.xml
@@ -8,12 +8,6 @@
         <result column="status" property="status" />
         <result column="shuttle_status" property="shuttleStatus" />
         <result column="wrk_no" property="wrkNo" />
-        <result column="row" property="row" />
-        <result column="bay" property="bay" />
-        <result column="lev" property="lev" />
-        <result column="his_row" property="hisRow" />
-        <result column="his_bay" property="hisBay" />
-        <result column="his_lev" property="hisLev" />
         <result column="idle_loc" property="idleLoc" />
         <result column="auto_charge" property="autoCharge" />
         <result column="charge_line" property="chargeLine" />
@@ -23,6 +17,24 @@
         <result column="update_time" property="updateTime" />
         <result column="memo" property="memo" />
         <result column="lift_no" property="liftNo" />
+        <result column="pak_mk" property="pakMk" />
+        <result column="busy_status" property="busyStatus" />
+        <result column="current_code" property="currentCode" />
+        <result column="battery_power" property="batteryPower" />
+        <result column="battery_temp" property="batteryTemp" />
+        <result column="error_code" property="errorCode" />
+        <result column="plc_output_status_io" property="plcOutputStatusIo" />
+        <result column="status_error_code" property="statusErrorCode" />
+        <result column="plc_input_status" property="plcInputStatus" />
+        <result column="current_or_before_code" property="currentOrBeforeCode" />
+        <result column="code_offset_x" property="codeOffsetX" />
+        <result column="code_offset_y" property="codeOffsetY" />
+        <result column="current_voltage" property="currentVoltage" />
+        <result column="current_analog_value" property="currentAnalogValue" />
+        <result column="current_lift_servo_speed" property="currentLiftServoSpeed" />
+        <result column="current_move_servo_speed" property="currentMoveServoSpeed" />
+        <result column="current_lift_servo_load" property="currentLiftServoLoad" />
+        <result column="current_move_servo_load" property="currentMoveServoLoad" />
 
     </resultMap>
 

--
Gitblit v1.9.1