From 15154033d40f857f61760f137ca59eaf29908aa3 Mon Sep 17 00:00:00 2001
From: cpT <1@123>
Date: 星期三, 02 七月 2025 10:03:57 +0800
Subject: [PATCH] #改造
---
src/main/java/com/zy/asrs/entity/CommandInfoLog.java | 37 ++++++++++++++++++++++++-------------
1 files changed, 24 insertions(+), 13 deletions(-)
diff --git a/src/main/java/com/zy/asrs/entity/CommandInfoLog.java b/src/main/java/com/zy/asrs/entity/CommandInfoLog.java
index 7576aef..231285f 100644
--- a/src/main/java/com/zy/asrs/entity/CommandInfoLog.java
+++ b/src/main/java/com/zy/asrs/entity/CommandInfoLog.java
@@ -5,6 +5,8 @@
import com.baomidou.mybatisplus.annotations.TableField;
import java.text.SimpleDateFormat;
import java.util.Date;
+
+import com.zy.core.enums.CommandType;
import org.springframework.format.annotation.DateTimeFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
@@ -17,48 +19,48 @@
import java.io.Serializable;
@Data
-@TableName("wcs_command_info_log")
+@TableName("\"SOURCE\".\"wcs_command_info_log\"")
public class CommandInfoLog implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value= "")
- @TableId(value = "id", type = IdType.AUTO)
+ @TableId(value = "ID", type = IdType.AUTO)
private Integer id;
/**
* 宸ヤ綔鍙�
*/
@ApiModelProperty(value= "宸ヤ綔鍙�")
- @TableField("wrk_no")
+ @TableField("WRK_NO")
private Integer wrkNo;
/**
* 璧风偣浣嶇疆
*/
@ApiModelProperty(value= "璧风偣浣嶇疆")
- @TableField("start_pos")
+ @TableField("START_POS")
private String startPos;
/**
* 缁堢偣浣嶇疆
*/
@ApiModelProperty(value= "缁堢偣浣嶇疆")
- @TableField("end_pos")
+ @TableField("END_POS")
private String endPos;
/**
* 鎸囦护鐘舵�� 1: 鍒涘缓 2: 鎵ц 3: 瀹屾垚
*/
@ApiModelProperty(value= "鎸囦护鐘舵�� 1: 鍒涘缓 2: 鎵ц 3: 瀹屾垚 ")
- @TableField("command_status")
+ @TableField("COMMAND_STATUS")
private Integer commandStatus;
/**
* 鍒涘缓鏃堕棿
*/
@ApiModelProperty(value= "鍒涘缓鏃堕棿")
- @TableField("start_time")
+ @TableField("START_TIME")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date startTime;
@@ -66,47 +68,49 @@
* 鎸囦护绫诲瀷
*/
@ApiModelProperty(value= "鎸囦护绫诲瀷")
- @TableField("command_type")
+ @TableField("COMMAND_TYPE")
private Integer commandType;
/**
* 璁惧
*/
@ApiModelProperty(value= "璁惧")
+ @TableField("DEVICE")
private String device;
/**
* 璁惧鎵ц淇℃伅
*/
@ApiModelProperty(value= "璁惧鎵ц淇℃伅")
- @TableField("device_log")
+ @TableField("DEVICE_LOG")
private String deviceLog;
/**
* 鍛戒护鎻忚堪
*/
@ApiModelProperty(value= "鍛戒护鎻忚堪")
- @TableField("command_desc")
+ @TableField("COMMAND_DESC")
private String commandDesc;
/**
* 鍛戒护JSON
*/
@ApiModelProperty(value= "鍛戒护JSON")
+ @TableField("COMMAND")
private String command;
/**
* 浠诲姟鍙�
*/
@ApiModelProperty(value= "浠诲姟鍙�")
- @TableField("task_no")
+ @TableField("TASK_NO")
private String taskNo;
/**
* 鎵ц鏃堕棿
*/
@ApiModelProperty(value= "鎵ц鏃堕棿")
- @TableField("execute_time")
+ @TableField("EXECUTE_TIME")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date executeTime;
@@ -114,7 +118,7 @@
* 瀹屾垚鏃堕棿
*/
@ApiModelProperty(value= "瀹屾垚鏃堕棿")
- @TableField("complete_time")
+ @TableField("COMPLETE_TIME")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date completeTime;
@@ -212,5 +216,12 @@
return Math.abs(day) + "澶�" + Math.abs(hour) + "灏忔椂" + Math.abs(min) + "鍒�" + Math.abs(s) + "绉�";
}
+ public String getCommandType$() {
+ if (Cools.isEmpty(this.commandType)) {
+ return "";
+ }
+ return CommandType.get(this.commandType).desc;
+ }
+
}
--
Gitblit v1.9.1