Quellcode durchsuchen

add:新增字段

caozixuan vor 1 Jahr
Ursprung
Commit
0b22889986

+ 6 - 6
sop-business/src/main/java/com/qmth/sop/business/entity/TBDeviceDelivery.java

@@ -34,8 +34,8 @@ public class TBDeviceDelivery extends BaseEntity implements Serializable {
     @ApiModelProperty(value = "sop单号")
     private String sopNo;
 
-    @ApiModelProperty(value = "设备号")
-    private String deviceNo;
+    @ApiModelProperty(value = "设备序列号")
+    private String serialNo;
 
     @ApiModelProperty(value = "用途类型,PROJECT:项目,OTHER:其它")
     private DeviceUsageTypeEnum usageType;
@@ -120,12 +120,12 @@ public class TBDeviceDelivery extends BaseEntity implements Serializable {
         this.sopNo = sopNo;
     }
 
-    public String getDeviceNo() {
-        return deviceNo;
+    public String getSerialNo() {
+        return serialNo;
     }
 
-    public void setDeviceNo(String deviceNo) {
-        this.deviceNo = deviceNo;
+    public void setSerialNo(String serialNo) {
+        this.serialNo = serialNo;
     }
 
     public DeviceUsageTypeEnum getUsageType() {

+ 4 - 1
sop-business/src/main/resources/db/log/caozixuan_update_log.sql

@@ -429,4 +429,7 @@ INSERT INTO sys_config (id, config_key, config_name, config_value, enable, sort,
 -- 2023-11-29
 ALTER TABLE t_b_device_delivery
     ADD COLUMN delivery_type VARCHAR(20) NOT NULL COMMENT '发货类型(出入库类型)' AFTER express_photo_path,
-    ADD COLUMN effect TINYINT NOT NULL COMMENT '有效的可操作的发货记录(当一个设备处于一个发货出入库生命周期时为有效), 0: 无效,1: 有效' AFTER update_time;
+    ADD COLUMN effect TINYINT NOT NULL COMMENT '有效的可操作的发货记录(当一个设备处于一个发货出入库生命周期时为有效), 0: 无效,1: 有效' AFTER update_time;
+
+ALTER TABLE t_b_device_delivery
+    CHANGE COLUMN device_no serial_no VARCHAR(50) NOT NULL COMMENT '设备序列号' ;