应急工单新建表
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for emergency_order_operator
|
||||
-- ----------------------------
|
||||
CREATE TABLE `emergency_order_operator` (
|
||||
`id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'id',
|
||||
`order_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '应急工单ID',
|
||||
`operator_type` int(11) NOT NULL COMMENT '人员类型(人员类型0:操作人员 1:专业人员)',
|
||||
`user_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '人员ID',
|
||||
`join_type` int(11) NOT NULL COMMENT '参与类型(0:处理应急,1:协助应急)',
|
||||
`join_date` datetime NOT NULL COMMENT '参与应急时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
package com.renkang.emergency.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description: emergency_order_operator 应急工单操作人员表,记录工单所有参与或协助应急的人员信息
|
||||
* @Author: feng
|
||||
* @Date: 2025-10-24
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("emergency_order_operator")
|
||||
@Schema(title = "应急工单操作人员表", description = "应急工单操作人员表")
|
||||
public class OrderOperator implements Serializable {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@Schema(title = "id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 应急工单ID
|
||||
*/
|
||||
@Schema(title = "应急工单ID")
|
||||
private String orderId;
|
||||
|
||||
/**
|
||||
* 人员类型(人员类型0:操作人员 1:专业人员)
|
||||
*/
|
||||
@Schema(title = "人员类型(人员类型0:操作人员 1:专业人员)")
|
||||
private Integer operatorType;
|
||||
|
||||
/**
|
||||
* 人员ID
|
||||
*/
|
||||
@Schema(title = "人员ID")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 参与类型(0:处理应急,1:协助应急)
|
||||
*/
|
||||
@Schema(title = "参与类型(0:处理应急,1:协助应急)")
|
||||
private Integer joinType;
|
||||
|
||||
/**
|
||||
* 参与应急时间
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(title = "参与应急时间")
|
||||
private Date joinDate;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user