From 8f444535d40bf13ce7ca2fb0585e1f9b8d089f1a Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期三, 24 十二月 2025 14:30:25 +0800
Subject: [PATCH] #

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

diff --git a/src/main/java/com/zy/asrs/entity/BasDualCrnpOpt.java b/src/main/java/com/zy/asrs/entity/BasDualCrnpOpt.java
new file mode 100644
index 0000000..0b9f642
--- /dev/null
+++ b/src/main/java/com/zy/asrs/entity/BasDualCrnpOpt.java
@@ -0,0 +1,191 @@
+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 java.text.SimpleDateFormat;
+import java.util.Date;
+import com.core.common.SpringUtils;
+import com.zy.system.service.UserService;
+import com.zy.system.entity.User;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import com.baomidou.mybatisplus.annotations.TableName;
+import java.io.Serializable;
+
+@Data
+@TableName("asr_bas_dual_crnp_opt")
+public class BasDualCrnpOpt implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 缂栧彿
+     */
+    @ApiModelProperty(value= "缂栧彿")
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 宸ヤ綔鍙�
+     */
+    @ApiModelProperty(value= "宸ヤ綔鍙�")
+    @TableField("wrk_no")
+    private Integer wrkNo;
+
+    /**
+     * 鍫嗗灈鏈哄彿
+     */
+    @ApiModelProperty(value= "鍫嗗灈鏈哄彿")
+    @TableField("crn_no")
+    private Integer crnNo;
+
+    /**
+     * 涓嬪彂鏃堕棿
+     */
+    @ApiModelProperty(value= "涓嬪彂鏃堕棿")
+    @TableField("send_time")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    private Date sendTime;
+
+    /**
+     * 浣滀笟
+     */
+    @ApiModelProperty(value= "浣滀笟")
+    private String mode;
+
+    /**
+     * 璧风偣搴撲綅
+     */
+    @ApiModelProperty(value= "璧风偣搴撲綅")
+    @TableField("source_loc_no")
+    private String sourceLocNo;
+
+    /**
+     * 鐩爣搴撲綅
+     */
+    @ApiModelProperty(value= "鐩爣搴撲綅")
+    @TableField("target_loc_no")
+    private String targetLocNo;
+
+    /**
+     * 淇敼鏃堕棿
+     */
+    @ApiModelProperty(value= "淇敼鏃堕棿")
+    @TableField("update_time")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    private Date updateTime;
+
+    /**
+     * 淇敼浜哄憳
+     */
+    @ApiModelProperty(value= "淇敼浜哄憳")
+    @TableField("update_by")
+    private Long updateBy;
+
+    /**
+     * 澶囨敞
+     */
+    @ApiModelProperty(value= "澶囨敞")
+    private String memo;
+
+    /**
+     * 鍛戒护
+     */
+    @ApiModelProperty(value= "鍛戒护")
+    private String command;
+
+    /**
+     * 绯荤粺鐘舵��
+     */
+    @ApiModelProperty(value= "绯荤粺鐘舵��")
+    @TableField("system_status")
+    private String systemStatus;
+
+    /**
+     * 涓嬪彂鐘舵�� 0: 鏈笅鍙�  1: 宸蹭笅鍙�  
+     */
+    @ApiModelProperty(value= "涓嬪彂鐘舵�� 0: 鏈笅鍙�  1: 宸蹭笅鍙�  ")
+    private Integer send;
+
+    /**
+     * 璇锋眰鍝嶅簲
+     */
+    @ApiModelProperty(value= "璇锋眰鍝嶅簲")
+    private String response;
+
+    public BasDualCrnpOpt() {}
+
+    public BasDualCrnpOpt(Integer wrkNo,Integer crnNo,Date sendTime,String mode,String sourceLocNo,String targetLocNo,Date updateTime,Long updateBy,String memo,String command,String systemStatus,Integer send,String response) {
+        this.wrkNo = wrkNo;
+        this.crnNo = crnNo;
+        this.sendTime = sendTime;
+        this.mode = mode;
+        this.sourceLocNo = sourceLocNo;
+        this.targetLocNo = targetLocNo;
+        this.updateTime = updateTime;
+        this.updateBy = updateBy;
+        this.memo = memo;
+        this.command = command;
+        this.systemStatus = systemStatus;
+        this.send = send;
+        this.response = response;
+    }
+
+//    BasDualCrnpOpt basDualCrnpOpt = new BasDualCrnpOpt(
+//            null,    // 宸ヤ綔鍙�
+//            null,    // 鍫嗗灈鏈哄彿
+//            null,    // 涓嬪彂鏃堕棿
+//            null,    // 浣滀笟
+//            null,    // 璧风偣搴撲綅
+//            null,    // 鐩爣搴撲綅
+//            null,    // 淇敼鏃堕棿
+//            null,    // 淇敼浜哄憳
+//            null,    // 澶囨敞
+//            null,    // 鍛戒护
+//            null,    // 绯荤粺鐘舵��
+//            null,    // 涓嬪彂鐘舵��
+//            null    // 璇锋眰鍝嶅簲
+//    );
+
+    public String getSendTime$(){
+        if (Cools.isEmpty(this.sendTime)){
+            return "";
+        }
+        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.sendTime);
+    }
+
+    public String getUpdateTime$(){
+        if (Cools.isEmpty(this.updateTime)){
+            return "";
+        }
+        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
+    }
+
+    public String getUpdateBy$(){
+        UserService service = SpringUtils.getBean(UserService.class);
+        User user = service.selectById(this.updateBy);
+        if (!Cools.isEmpty(user)){
+            return String.valueOf(user.getId());
+        }
+        return null;
+    }
+
+    public String getSend$(){
+        if (null == this.send){ return null; }
+        switch (this.send){
+            case 0:
+                return "鏈笅鍙�";
+            case 1:
+                return "宸蹭笅鍙�";
+            default:
+                return String.valueOf(this.send);
+        }
+    }
+
+
+}

--
Gitblit v1.9.1