瀏覽代碼

添加字段

zhoutg 5 年之前
父節點
當前提交
59de5af107

+ 6 - 2
docs/029.20200109模板新需求/icss.sql

@@ -8,10 +8,11 @@ CREATE TABLE `icss_template_folder` (
   `gmt_modified` datetime NOT NULL DEFAULT '1970-01-01 12:00:00' COMMENT '记录修改时间,如果时间是1970年则表示纪录未修改',
   `creator` varchar(20)  NOT NULL DEFAULT '' COMMENT '创建人姓名',
   `modifier` varchar(20)  NOT NULL DEFAULT '' COMMENT '修改人姓名',
-  `name` varchar(300) DEFAULT NULL COMMENT '名称',
+  `name` varchar(300) NOT NULL DEFAULT '' COMMENT '名称',
   `hospital_id` bigint(20) DEFAULT NULL COMMENT '医院id',
   `doctor_id` bigint(20) DEFAULT NULL COMMENT '医生id',
   `template_type` int(11) NOT NULL DEFAULT '1' COMMENT '模板类型(个人1,管理员2)',
+  `order_no` int(11) NOT NULL DEFAULT '1' COMMENT '排序号',
   `remark` varchar(255)  NOT NULL DEFAULT '' COMMENT '备注',
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8  COMMENT='模板文件夹表';
@@ -27,6 +28,7 @@ CREATE TABLE `icss_folder_mapping` (
   `modifier` varchar(20)  NOT NULL DEFAULT '' COMMENT '修改人姓名',
   `template_id` bigint(20) DEFAULT NULL COMMENT '模板id',
   `folder_id` bigint(20) DEFAULT NULL COMMENT '文件夹id',
+  `order_no` int(11) NOT NULL DEFAULT '1' COMMENT '排序号',
   `remark` varchar(255)  NOT NULL DEFAULT '' COMMENT '备注',
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8  COMMENT='模板文件夹映射表';
@@ -41,10 +43,11 @@ CREATE TABLE `icss_template_classify` (
   `gmt_modified` datetime NOT NULL DEFAULT '1970-01-01 12:00:00' COMMENT '记录修改时间,如果时间是1970年则表示纪录未修改',
   `creator` varchar(20)  NOT NULL DEFAULT '' COMMENT '创建人姓名',
   `modifier` varchar(20)  NOT NULL DEFAULT '' COMMENT '修改人姓名',
-  `name` varchar(300) DEFAULT NULL COMMENT '名称',
+  `name` varchar(300) NOT NULL DEFAULT '' COMMENT '名称',
   `hospital_id` bigint(20) DEFAULT NULL COMMENT '医院id',
   `doctor_id` bigint(20) DEFAULT NULL COMMENT '医生id',
   `template_type` int(11) NOT NULL DEFAULT '1' COMMENT '模板类型(个人1,管理员2)',
+  `order_no` int(11) NOT NULL DEFAULT '1' COMMENT '排序号',
   `remark` varchar(255)  NOT NULL DEFAULT '' COMMENT '备注',
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8  COMMENT='模板分类表';
@@ -60,6 +63,7 @@ CREATE TABLE `icss_classify_mapping` (
   `modifier` varchar(20)  NOT NULL DEFAULT '' COMMENT '修改人姓名',
   `template_id` bigint(20) DEFAULT NULL COMMENT '模板id',
   `classify_id` bigint(20) DEFAULT NULL COMMENT '模板分类id',
+  `order_no` int(11) NOT NULL DEFAULT '1' COMMENT '排序号',
   `remark` varchar(255)  NOT NULL DEFAULT '' COMMENT '备注',
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8  COMMENT='模板分类映射表';

+ 5 - 0
icss-service/src/main/java/com/diagbot/entity/ClassifyMapping.java

@@ -65,6 +65,11 @@ public class ClassifyMapping implements Serializable {
      */
     private Long classifyId;
 
+    /**
+     * 排序号
+     */
+    private Long orderNo;
+
     /**
      * 备注
      */

+ 5 - 0
icss-service/src/main/java/com/diagbot/entity/FolderMapping.java

@@ -66,6 +66,11 @@ public class FolderMapping implements Serializable {
      */
     private Long folderId;
 
+    /**
+     * 排序号
+     */
+    private Long orderNo;
+
     /**
      * 备注
      */

+ 5 - 0
icss-service/src/main/java/com/diagbot/entity/TemplateClassify.java

@@ -76,6 +76,11 @@ public class TemplateClassify implements Serializable {
      */
     private Integer templateType;
 
+    /**
+     * 排序号
+     */
+    private Long orderNo;
+
     /**
      * 备注
      */

+ 5 - 0
icss-service/src/main/java/com/diagbot/entity/TemplateFolder.java

@@ -76,6 +76,11 @@ public class TemplateFolder implements Serializable {
      */
     private Integer templateType;
 
+    /**
+     * 排序号
+     */
+    private Integer orderNo;
+
     /**
      * 备注
      */

+ 5 - 0
icss-service/src/main/java/com/diagbot/vo/TemplateClassifyVO.java

@@ -44,6 +44,11 @@ public class TemplateClassifyVO implements Serializable {
      */
     private Integer templateType;
 
+    /**
+     * 排序号
+     */
+    private Long orderNo;
+
     /**
      * 备注
      */

+ 5 - 0
icss-service/src/main/java/com/diagbot/vo/TemplateFolderVO.java

@@ -48,6 +48,11 @@ public class TemplateFolderVO implements Serializable {
      */
     private Integer templateType;
 
+    /**
+     * 排序号
+     */
+    private Long orderNo;
+
     /**
      * 备注
      */

+ 1 - 0
icss-service/src/main/resources/mapper/ClassifyMappingMapper.xml

@@ -12,6 +12,7 @@
         <result column="modifier" property="modifier" />
         <result column="template_id" property="templateId" />
         <result column="classify_id" property="classifyId" />
+        <result column="order_no" property="orderNo" />
         <result column="remark" property="remark" />
     </resultMap>
 

+ 1 - 0
icss-service/src/main/resources/mapper/FolderMappingMapper.xml

@@ -12,6 +12,7 @@
         <result column="modifier" property="modifier" />
         <result column="template_id" property="templateId" />
         <result column="folder_id" property="folderId" />
+        <result column="order_no" property="orderNo" />
         <result column="remark" property="remark" />
     </resultMap>
 

+ 1 - 0
icss-service/src/main/resources/mapper/TemplateClassifyMapper.xml

@@ -14,6 +14,7 @@
         <result column="hospital_id" property="hospitalId" />
         <result column="doctor_id" property="doctorId" />
         <result column="template_type" property="templateType" />
+        <result column="order_no" property="orderNo" />
         <result column="remark" property="remark" />
     </resultMap>
 

+ 1 - 0
icss-service/src/main/resources/mapper/TemplateFolderMapper.xml

@@ -14,6 +14,7 @@
         <result column="hospital_id" property="hospitalId" />
         <result column="doctor_id" property="doctorId" />
         <result column="template_type" property="templateType" />
+        <result column="order_no" property="orderNo" />
         <result column="remark" property="remark" />
     </resultMap>