Browse Source

书记日志脚本

master
sunyuchao 4 years ago
parent
commit
485f360692
  1. 4
      epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/MemoConcernDTO.java
  2. 2
      epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/MemoDifficultyDTO.java
  3. 7
      epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/form/AddMemoDifficultyFromDTO.java
  4. 4
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/entity/MemoConcernEntity.java
  5. 2
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/entity/MemoDifficultyEntity.java
  6. 86
      epmet-module/gov-project/gov-project-server/src/main/resources/db/migration/V0.0.21__create_memo_table.sql

4
epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/MemoConcernDTO.java

@ -61,13 +61,13 @@ public class MemoConcernDTO implements Serializable {
private String content;
/**
* 计划执行时间
* 预计关怀时间
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm")
private Date scheduledTime;
/**
* 实际执行时间
* 实际执行时间(预留字段)
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm")
private Date actualTime;

2
epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/MemoDifficultyDTO.java

@ -45,7 +45,7 @@ public class MemoDifficultyDTO implements Serializable {
private String remark;
/**
* 计划执行时间
* 预计处理时间
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm")
private Date scheduledTime;

7
epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/form/AddMemoDifficultyFromDTO.java

@ -5,7 +5,6 @@ import com.epmet.dto.MemoAttachmentDTO;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
@ -34,21 +33,23 @@ public class AddMemoDifficultyFromDTO implements Serializable {
* 内容
*/
@NotBlank(message = "难点堵点内容不能为空", groups = { AddMemoDifficulty.class })
@Length(max = 500, message = "难点堵点内容最为50个字", groups = { AddMemoDifficulty.class })
@Length(max = 500, message = "难点堵点内容最为50个字", groups = { AddMemoDifficulty.class })
private String content;
/**
* 解决方式
*/
@Length(max = 500, message = "解决方式最多为500个字", groups = { AddMemoDifficulty.class })
private String resolveWay;
/**
* 备注
*/
@Length(max = 200, message = "备注最多为200个字", groups = { AddMemoDifficulty.class })
private String remark;
/**
* 计划执行时间
* 预计处理时间
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm")
private Date scheduledTime;

4
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/entity/MemoConcernEntity.java

@ -51,12 +51,12 @@ public class MemoConcernEntity extends BaseEpmetEntity {
private String content;
/**
* 计划执行时间
* 预计关怀时间
*/
private Date scheduledTime;
/**
* 实际执行时间
* 实际执行时间(预留字段)
*/
private Date actualTime;

2
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/entity/MemoDifficultyEntity.java

@ -41,7 +41,7 @@ public class MemoDifficultyEntity extends BaseEpmetEntity {
private String remark;
/**
* 计划执行时间
* 预计处理时间
*/
private Date scheduledTime;

86
epmet-module/gov-project/gov-project-server/src/main/resources/db/migration/V0.0.21__create_memo_table.sql

@ -0,0 +1,86 @@
CREATE TABLE `memo_attachment` (
`ID` varchar(64) NOT NULL COMMENT '主键',
`CUSTOMER_ID` varchar(64) NOT NULL COMMENT '客户ID',
`REMIND_MSG_ID` varchar(64) NOT NULL COMMENT 'REMIND_MSG.ID 业务(工作日志、难点堵点、人员关怀)表Id',
`FILE_NAME` varchar(255) DEFAULT NULL COMMENT '文件名',
`ATTACHMENT_NAME` varchar(64) DEFAULT NULL COMMENT '附件名(uuid随机生成)',
`ATTACHMENT_SIZE` int(11) DEFAULT NULL COMMENT '文件大小,单位b',
`ATTACHMENT_FORMAT` varchar(64) NOT NULL COMMENT '文件格式(JPG、PNG、PDF、JPEG、BMP、MP4、WMA、M4A、MP3、DOC、DOCX、XLS)',
`ATTACHMENT_TYPE` varchar(64) NOT NULL COMMENT '附件类型((图片 - image、 视频 - video、 语音 - voice、 文档 - doc))',
`ATTACHMENT_URL` varchar(255) NOT NULL COMMENT '附件地址',
`DURATION` int(11) DEFAULT '0' COMMENT '语音或视频时长,秒',
`SORT` int(1) NOT NULL COMMENT '排序字段',
`DEL_FLAG` varchar(1) NOT NULL COMMENT '删除标记 0:未删除,1:已删除',
`REVISION` int(11) NOT NULL COMMENT '乐观锁',
`CREATED_BY` varchar(32) NOT NULL COMMENT '创建人',
`CREATED_TIME` datetime NOT NULL COMMENT '创建时间',
`UPDATED_BY` varchar(32) NOT NULL COMMENT '更新人',
`UPDATED_TIME` datetime NOT NULL COMMENT '更新时间',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='备忘录-附件表';
CREATE TABLE `memo_attr` (
`ID` varchar(32) NOT NULL COMMENT '唯一标识',
`CUSTOMER_ID` varchar(64) NOT NULL COMMENT '客户ID',
`REMIND_TIME` datetime DEFAULT NULL COMMENT '提醒时间',
`TYPE` varchar(32) NOT NULL COMMENT '业务类型 人员关怀:concern;难点堵点:difficulty;工作日志:work_diary',
`READ_FLAG` tinyint(1) NOT NULL DEFAULT '0' COMMENT '阅读标记1 已读;0未读',
`RECEIVER` varchar(32) NOT NULL COMMENT '接收人ID',
`DEL_FLAG` char(1) NOT NULL COMMENT '删除标识:0.未删除 1.已删除',
`REVISION` int(11) NOT NULL COMMENT '乐观锁',
`CREATED_BY` varchar(32) NOT NULL COMMENT '创建人',
`CREATED_TIME` datetime NOT NULL COMMENT '创建时间',
`UPDATED_BY` varchar(32) NOT NULL COMMENT '更新人',
`UPDATED_TIME` datetime NOT NULL COMMENT '更新时间',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='备忘录-属性(通知)表';
CREATE TABLE `memo_concern` (
`ID` varchar(32) NOT NULL COMMENT '唯一标识(同memo_attr表Id)',
`CUSTOMER_ID` varchar(32) NOT NULL COMMENT '客户ID',
`CONCERN_TYPE` varchar(64) DEFAULT NULL COMMENT '关怀类型',
`RESI_NAME` varchar(64) NOT NULL COMMENT '关怀人员',
`PHONE` varchar(64) DEFAULT NULL COMMENT '关怀对象电话',
`ADDRESS` varchar(64) DEFAULT NULL COMMENT '关怀对象地址',
`CONTENT` varchar(1024) NOT NULL COMMENT '关怀事项',
`SCHEDULED_TIME` datetime DEFAULT NULL COMMENT '预计关怀时间',
`ACTUAL_TIME` datetime DEFAULT NULL COMMENT '实际执行时间(预留字段)',
`STATUS` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态 0未完成 1已完成',
`DEL_FLAG` char(1) NOT NULL COMMENT '删除标识:0.未删除 1.已删除',
`REVISION` int(11) NOT NULL COMMENT '乐观锁',
`CREATED_BY` varchar(32) NOT NULL COMMENT '操作人',
`CREATED_TIME` datetime NOT NULL COMMENT '创建时间',
`UPDATED_BY` varchar(32) NOT NULL COMMENT '更新人',
`UPDATED_TIME` datetime NOT NULL COMMENT '更新时间',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='备忘录-人文关怀';
CREATE TABLE `memo_difficulty` (
`ID` varchar(32) NOT NULL COMMENT '唯一标识(同memo_attr表Id)',
`CUSTOMER_ID` varchar(32) NOT NULL COMMENT '客户ID',
`CONTENT` varchar(1024) NOT NULL COMMENT '内容',
`RESOLVE_WAY` varchar(512) DEFAULT NULL COMMENT '解决方式',
`REMARK` varchar(255) DEFAULT NULL COMMENT '备注',
`SCHEDULED_TIME` datetime DEFAULT NULL COMMENT '预计处理时间',
`DEL_FLAG` char(1) NOT NULL COMMENT '删除标识:0.未删除 1.已删除',
`REVISION` int(11) NOT NULL COMMENT '乐观锁',
`CREATED_BY` varchar(32) NOT NULL COMMENT '创建人',
`CREATED_TIME` datetime NOT NULL COMMENT '创建时间',
`UPDATED_BY` varchar(32) NOT NULL COMMENT '更新人',
`UPDATED_TIME` datetime NOT NULL COMMENT '更新时间',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='备忘录-难点读点';
CREATE TABLE `memo_work_diary` (
`ID` varchar(32) NOT NULL COMMENT '唯一标识(同memo_attr表Id)',
`CUSTOMER_ID` varchar(64) NOT NULL COMMENT '客户ID',
`CONTENT` varchar(1024) NOT NULL COMMENT '内容',
`WORK_TYPE` varchar(64) DEFAULT NULL COMMENT '工作事项',
`DEL_FLAG` char(1) NOT NULL COMMENT '删除标识:0.未删除 1.已删除',
`REVISION` int(11) NOT NULL COMMENT '乐观锁',
`CREATED_BY` varchar(32) NOT NULL COMMENT '创建人',
`CREATED_TIME` datetime NOT NULL COMMENT '创建时间',
`UPDATED_BY` varchar(32) NOT NULL COMMENT '更新人',
`UPDATED_TIME` datetime NOT NULL COMMENT '更新时间',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='备忘录-工作日志';
Loading…
Cancel
Save