Browse Source

增加染色标尺接口文档

yangwanyi 3 years ago
parent
commit
404be8374c

+ 490 - 0
doc/calendar-center.md

@@ -1110,3 +1110,493 @@ Header:Content-Type=application/json
 }
 ```
 
+# 染色标尺相关接口
+
+## 新增染色基础信息
+
+```
+URL:http://develop.persagy.com/calendar/dyeBasic/createDyeBasic
+Method:POST
+Header:Content-Type=application/json
+```
+
+请求:
+
+```
+{
+    "groupCode": "YL", // 集团编码 必传
+    "projectId": "Pj4403050002", // 项目ID 必传
+    "typeCode": "QQQQQQ", // 染色类型编码 必传
+    "typeName": "AAAA", // 染色类型名称 必传
+    "seasonCode": "ACSeason-3", // 季节类型编码 必传
+    "seasonName": "过渡季", // 季节类型名称 必传
+    "updateUserId": "423594c93c8f45ee904269f4d8d14743" // 操作人ID
+}
+```
+
+返回:
+
+```
+{
+    "respCode": "00000",
+    "respMsg": "保存成功"
+}
+```
+## 更新染色基础信息
+
+```
+URL:http://develop.persagy.com/calendar/dyeBasic/updateDyeBasic
+Method:POST
+Header:Content-Type=application/json
+```
+
+请求:
+
+```
+{
+    "id":"98af9c276010410aa56a8053f678fd8f", // 要更新的数据ID 必传
+    "groupCode": "YL", // 集团编码
+    "projectId": "Pj4403050002", // 项目ID
+    "typeCode": "QQQQQQ", // 染色类型编码
+    "typeName": "AAAA", // 染色类型名称
+    "seasonCode": "ACSeason-3", // 季节类型编码
+    "seasonName": "过渡季", // 季节类型名称
+    "updateUserId": "423594c93c8f45ee904269f4d8d14743" // 操作人ID
+}
+```
+
+返回:
+
+```
+{
+    "respCode": "00000",
+    "respMsg": "更新成功"
+}
+```
+
+## 逻辑删除染色基础信息
+
+```
+URL:http://develop.persagy.com/calendar/dyeBasic/deleteDyeBasic?dyeBasicId=必传&updateUserId=
+Method:POST
+Header:Content-Type=application/json
+```
+
+请求:
+
+```
+dyeBasicId=&updateUserId=
+```
+
+返回:
+
+```
+{
+    "respCode": "00000",
+    "respMsg": "删除成功"
+}
+```
+
+## 染色基础信息列表查询
+
+```
+URL:http://develop.persagy.com/calendar/dyeBasic/queryDyeBasicList
+Method:POST
+Header:Content-Type=application/json
+```
+
+请求:
+
+```
+{
+
+}
+```
+
+返回:
+
+```
+{
+    "content": [
+        {
+            "createTime": "2021-10-26 09:46:57", // 数据创建时间
+            "groupCode": "YL", // 集团编码
+            "id": "1afa744ee32a45da8af67f704c8c4207", // 数据主键
+            "isDelete": "0", // 是否删除
+            "projectId": "Pj4403050002", // 项目ID
+            "seasonCode": "ACSeason-1", // 季节编码
+            "seasonName": "供冷季", // 季节名称
+            "typeCode": "cO2", // 染色类型编码
+            "typeName": "空气CO2浓度", // 染色类型名称
+            "updateUserId": "423594c93c8f45ee904269f4d8d14743" // 最后操作人ID
+        },
+        ...
+    ],
+    "count": 16,
+    "respCode": "00000",
+    "respMsg": "success"
+}
+```
+
+## 新增默认染色规则信息
+
+```
+URL:http://develop.persagy.com/calendar/dyeRuleDefault/createDyeRuleDefault
+Method:POST
+Header:Content-Type=application/json
+```
+
+请求:
+
+```
+{
+    "basicId": "8a5ec9d1c28d4804b69de317f635752d", // 染色基础表数据 必传
+    "tempLowerLimit": "45", // 下限值 必传
+    "lowerSymbol": "(", // 下限符号 必传
+    "tempUpperLimit": "+∞", // 上限值 必传
+    "upperSymbol": ")", // 上限符号 必传
+    "name": "潮湿报警", // 染色标尺名称 必传
+    "colorValue": "#FF0000", // 色值 必传
+    "orderNum": "3", // 染色标尺排序 
+    "updateUserId": "423594c93c8f45ee904269f4d8d14743", // 操作人ID
+    "numSymbol": "%" // 数值单位(符号)
+}
+```
+
+返回:
+
+```
+{
+    "respCode": "00000",
+    "respMsg": "保存成功"
+}
+```
+## 更新默认染色规则信息
+
+```
+URL:http://develop.persagy.com/calendar/dyeRuleDefault/updateDyeRuleDefault
+Method:POST
+Header:Content-Type=application/json
+```
+
+请求:
+
+```
+{
+    "id":"98af9c276010410aa56a8053f678fd8f", // 要更新的数据ID 必传
+    "basicId": "8a5ec9d1c28d4804b69de317f635752d", // 染色基础表数据 必传
+    "tempLowerLimit": "45", // 下限值 必传
+    "lowerSymbol": "(", // 下限符号 必传
+    "tempUpperLimit": "+∞", // 上限值 必传
+    "upperSymbol": ")", // 上限符号 必传
+    "name": "潮湿报警", // 染色标尺名称 必传
+    "colorValue": "#FF0000", // 色值 必传
+    "orderNum": "3", // 染色标尺排序 
+    "updateUserId": "423594c93c8f45ee904269f4d8d14743", // 操作人ID
+    "numSymbol": "%" // 数值单位(符号)
+}
+```
+
+返回:
+
+```
+{
+    "respCode": "00000",
+    "respMsg": "更新成功"
+}
+```
+
+## 逻辑删除默认染色规则信息
+
+```
+URL:http://develop.persagy.com/calendar/dyeRuleDefault/deleteDyeRuleDefault?dyeRuleDefaultId=必传&updateUserId=
+Method:POST
+Header:Content-Type=application/json
+```
+
+请求:
+
+```
+dyeRuleDefaultId=&updateUserId=
+```
+
+返回:
+
+```
+{
+    "respCode": "00000",
+    "respMsg": "删除成功"
+}
+```
+
+## 默认染色规则信息列表查询
+
+```
+URL:http://develop.persagy.com/calendar/dyeRuleDefault/queryDyeRuleDefaultList
+Method:POST
+Header:Content-Type=application/json
+```
+
+请求:
+
+```
+{
+
+}
+```
+
+返回:
+
+```
+{
+    "content": [
+        {
+            "basicId": "e101200c05094f30af34c741b10e7069", // 染色基础表ID
+            "colorValue": "#00B050", // 色值
+            "createTime": "2021-10-27 15:17:39", // 创建时间
+            "id": "bec61d651b184609b4e62b4cc02b60b8", // 数据主键
+            "isDelete": "0", // 是否删除
+            "lowerLimit": -99, // 下限值(99在数据库代表无穷 前端显示建议使用返回字段tempLowerLimit)
+            "lowerSymbol": "(", // 下限符号
+            "name": "良好", // 染色名称
+            "numSymbol": "μg/m3 每24小时", // 数值单位(符号)
+            "orderNum": 3, // 染色排序
+            "tempLowerLimit": "(-∞", // 下限值 前端可直接用这个字段在列表回显
+            "tempUpperLimit": "15)", // 上限值 前端可直接用这个字段在列表回显
+            "updateUserId": "423594c93c8f45ee904269f4d8d14743", // 最后操作人ID
+            "upperLimit": 15, // 上限值(99在数据库代表无穷 前端显示建议使用返回字段tempUpperLimit)
+            "upperSymbol": ")" // 上限符号
+        },
+        ...
+    ],
+    "count": 16,
+    "respCode": "00000",
+    "respMsg": "success"
+}
+```
+
+
+## 新增自定义染色规则信息
+
+```
+URL:http://develop.persagy.com/calendar/dyeRuleCustom/createDyeRuleCustom
+Method:POST
+Header:Content-Type=application/json
+```
+
+请求:
+
+```
+{
+    "basicId": "8a5ec9d1c28d4804b69de317f635752d", // 染色基础表数据 必传
+    "tempLowerLimit": "45", // 下限值 必传
+    "lowerSymbol": "(", // 下限符号 必传
+    "tempUpperLimit": "+∞", // 上限值 必传
+    "upperSymbol": ")", // 上限符号 必传
+    "name": "潮湿报警", // 染色标尺名称 必传
+    "colorValue": "#FF0000", // 色值 必传
+    "orderNum": "3", // 染色标尺排序 
+    "updateUserId": "423594c93c8f45ee904269f4d8d14743", // 操作人ID
+    "numSymbol": "%" // 数值单位(符号)
+}
+```
+
+返回:
+
+```
+{
+    "respCode": "00000",
+    "respMsg": "保存成功"
+}
+```
+## 更新自定义染色规则信息
+
+```
+URL:http://develop.persagy.com/calendar/dyeRuleCustom/updateDyeRuleCustom
+Method:POST
+Header:Content-Type=application/json
+```
+
+请求:
+
+```
+{
+    "id":"98af9c276010410aa56a8053f678fd8f", // 要更新的数据ID 必传
+    "basicId": "8a5ec9d1c28d4804b69de317f635752d", // 染色基础表数据 必传
+    "tempLowerLimit": "45", // 下限值 必传
+    "lowerSymbol": "(", // 下限符号 必传
+    "tempUpperLimit": "+∞", // 上限值 必传
+    "upperSymbol": ")", // 上限符号 必传
+    "name": "潮湿报警", // 染色标尺名称 必传
+    "colorValue": "#FF0000", // 色值 必传
+    "orderNum": "3", // 染色标尺排序 
+    "updateUserId": "423594c93c8f45ee904269f4d8d14743", // 操作人ID
+    "numSymbol": "%" // 数值单位(符号)
+}
+```
+
+返回:
+
+```
+{
+    "respCode": "00000",
+    "respMsg": "更新成功"
+}
+```
+
+## 逻辑删除自定义染色规则信息
+
+```
+URL:http://develop.persagy.com/calendar/dyeRuleCustom/deleteDyeRuleCustom?dyeRuleCustomId=必传&updateUserId=
+Method:POST
+Header:Content-Type=application/json
+```
+
+请求:
+
+```
+dyeRuleCustomId=&updateUserId=
+```
+
+返回:
+
+```
+{
+    "respCode": "00000",
+    "respMsg": "删除成功"
+}
+```
+
+## 自定义染色规则信息列表查询
+
+```
+URL:http://develop.persagy.com/calendar/dyeRuleCustom/queryDyeRuleCustomList
+Method:POST
+Header:Content-Type=application/json
+```
+
+请求:
+
+```
+{
+
+}
+```
+
+返回:
+
+```
+{
+    "content": [
+        {
+            "basicId": "e101200c05094f30af34c741b10e7069", // 染色基础表ID
+            "colorValue": "#00B050", // 色值
+            "createTime": "2021-10-27 15:17:39", // 创建时间
+            "id": "bec61d651b184609b4e62b4cc02b60b8", // 数据主键
+            "isDelete": "0", // 是否删除
+            "lowerLimit": -99, // 下限值(99在数据库代表无穷 前端显示建议使用返回字段tempLowerLimit)
+            "lowerSymbol": "(", // 下限符号
+            "name": "良好", // 染色名称
+            "numSymbol": "μg/m3 每24小时", // 数值单位(符号)
+            "orderNum": 3, // 染色排序
+            "tempLowerLimit": "(-∞", // 下限值 前端可直接用这个字段在列表回显
+            "tempUpperLimit": "15)", // 上限值 前端可直接用这个字段在列表回显
+            "updateUserId": "423594c93c8f45ee904269f4d8d14743", // 最后操作人ID
+            "upperLimit": 15, // 上限值(99在数据库代表无穷 前端显示建议使用返回字段tempUpperLimit)
+            "upperSymbol": ")" // 上限符号
+        },
+        ...
+    ],
+    "count": 16,
+    "respCode": "00000",
+    "respMsg": "success"
+}
+```
+
+## 查询指定集团、项目和类型的染色标尺列表
+
+```
+URL:http://develop.persagy.com/calendar/dye/sdk/listDyeScaleplateByType
+Method:POST
+Header:Content-Type=application/json
+```
+
+请求:
+
+```
+{
+    "groupCode": "YL", // 集团编码 必传
+    "projectId": "Pj4403050002", // 项目ID 必传
+    "typeCode": "pM2d5" // 染色类型编码 必传
+}
+```
+
+返回:
+
+```
+{
+    "content": [
+        {
+            "name": "高", // 染色名称
+            "colorValue": "#FF0000", // 色值
+            "upperLimit": "+∞)", // 上限值
+            "lowerLimit": "(35", // 下限值
+            "ID": "0e7024ae696b44e38dbafacc86c28d18" // 染色标尺唯一ID
+        },
+        ...
+    ],
+    "count": 3,
+    "respCode": "00000",
+    "respMsg": "success"
+}
+```
+
+## 查询空间对应的染色标尺
+
+```
+URL:http://develop.persagy.com/calendar/dye/sdk/listDyeScaleplateWithSpaceIds
+Method:POST
+Header:Content-Type=application/json
+```
+
+请求:
+
+```
+{
+    "projectId": "Pj4403050002", // 项目ID 必传
+    "groupCode": "YL", // 集团编码 必传
+    "typeCode": "pM2d5", // 染色类型编码 必传
+    "dynamicArray": [ // 动态监测数据 必传
+        {
+            "spaceId": "SP369784854323156456", // 空间ID 必传
+            "realTimeNum": 22 // 动态监测值 必传
+        },
+        ...
+    ]
+}
+```
+
+返回:
+
+```
+{
+    "content": [
+        {
+            "spaceId": "SP369784854323156456", // 空间ID
+            "name": "达标", // 染色类型编码
+            "colorValue": "#C5E0B3", // 色值
+            "upperLimit": "35]", // 上限
+            "lowerLimit": "[15", // 下限
+            "ID": "b0e884ff3a5141a189f4f40b2878b83c", // 染色标尺主键
+            "projectId": "Pj4403050002", // 项目ID
+            "realTimeNum": 22, // 实时动态监测值
+            "groupCode": "YL", // 集团编码
+            "typeCode": "pM2d5" // 染色类型编码
+        },,
+        ...
+    ],
+    "count": 2,
+    "respCode": "00000",
+    "respMsg": "success"
+}
+```

+ 2 - 2
src/main/resources/mapper/DyeRuleCustomMapper.xml

@@ -46,8 +46,8 @@
                              AND is_delete = 0
                              AND season_code = (SELECT DICT_CODE FROM `work_calendar_label`  WHERE LABEL_DATE = #{dyeScaleplateVO.queryDate} AND PROJECT_ID = #{dyeScaleplateVO.projectId}))
           AND is_delete = 0
-          AND ((upper_symbol = '(' AND upper_limit > #{numValue}) OR (upper_symbol = '[' AND upper_limit >= #{numValue}))
-          AND ((lower_symbol = ')' AND lower_limit < #{numValue}) OR (lower_symbol = ']' AND lower_limit <= #{numValue}))
+          AND ((upper_symbol = ')' AND upper_limit > #{numValue}) OR (upper_symbol = ']' AND upper_limit >= #{numValue}))
+          AND ((lower_symbol = '(' AND lower_limit < #{numValue}) OR (lower_symbol = '[' AND lower_limit <= #{numValue}))
         ORDER BY order_num
     </select>
 </mapper>

+ 2 - 2
src/main/resources/mapper/DyeRuleDefaultMapper.xml

@@ -46,8 +46,8 @@
                              AND is_delete = 0
                              AND season_code = (SELECT DICT_CODE FROM `work_calendar_label`  WHERE LABEL_DATE = #{dyeScaleplateVO.queryDate} AND PROJECT_ID = #{dyeScaleplateVO.projectId}))
           AND is_delete = 0
-          AND ((upper_symbol = '(' AND upper_limit &gt; #{numValue}) OR (upper_symbol = '[' AND upper_limit &gt;= #{numValue}))
-          AND ((lower_symbol = ')' AND lower_limit &lt; #{numValue}) OR (lower_symbol = ']' AND lower_limit &lt;= #{numValue}))
+          AND ((upper_symbol = ')' AND upper_limit &gt; #{numValue}) OR (upper_symbol = ']' AND upper_limit &gt;= #{numValue}))
+          AND ((lower_symbol = '(' AND lower_limit &lt; #{numValue}) OR (lower_symbol = '[' AND lower_limit &lt;= #{numValue}))
         ORDER BY order_num
     </select>
 </mapper>

+ 49 - 0
src/main/resources/sql/data.sql

@@ -0,0 +1,49 @@
+INSERT INTO `calendar-center`.`dye_basic`(`id`, `group_code`, `project_id`, `type_code`, `type_name`, `season_code`, `season_name`, `create_time`, `update_time`, `update_user_id`, `is_delete`) VALUES ('1afa744ee32a45da8af67f704c8c4207', 'YL', 'Pj4403050002', 'cO2', '空气CO2浓度', 'ACSeason-1', '供冷季', '2021-10-26 09:46:57', NULL, '423594c93c8f45ee904269f4d8d14743', '0');
+INSERT INTO `calendar-center`.`dye_basic`(`id`, `group_code`, `project_id`, `type_code`, `type_name`, `season_code`, `season_name`, `create_time`, `update_time`, `update_user_id`, `is_delete`) VALUES ('775518f3555242b6af01c41c8b52984b', 'YL', 'Pj4403050002', 'cO', '空气CO浓度', 'ACSeason-1', '供冷季', '2021-10-26 09:48:14', NULL, '423594c93c8f45ee904269f4d8d14743', '0');
+INSERT INTO `calendar-center`.`dye_basic`(`id`, `group_code`, `project_id`, `type_code`, `type_name`, `season_code`, `season_name`, `create_time`, `update_time`, `update_user_id`, `is_delete`) VALUES ('80f7672d0da24ddf9485c09738746678', 'YL', 'Pj4403050002', 'rH', '湿度', 'ACSeason-2', '供暖季', '2021-10-26 09:46:33', NULL, '423594c93c8f45ee904269f4d8d14743', '0');
+INSERT INTO `calendar-center`.`dye_basic`(`id`, `group_code`, `project_id`, `type_code`, `type_name`, `season_code`, `season_name`, `create_time`, `update_time`, `update_user_id`, `is_delete`) VALUES ('87b5353842234aa88366954eb5dcacba', 'YL', 'Pj4403050002', 'tdb', '温度', 'ACSeason-1', '供冷季', '2021-10-26 09:45:40', '2021-10-26 09:51:54', '423594c93c8f45ee904269f4d8d14743', '0');
+INSERT INTO `calendar-center`.`dye_basic`(`id`, `group_code`, `project_id`, `type_code`, `type_name`, `season_code`, `season_name`, `create_time`, `update_time`, `update_user_id`, `is_delete`) VALUES ('8a5ec9d1c28d4804b69de317f635752d', 'YL', 'Pj4403050002', 'rH', '湿度', 'ACSeason-1', '供冷季', '2021-10-26 09:46:40', NULL, '423594c93c8f45ee904269f4d8d14743', '0');
+INSERT INTO `calendar-center`.`dye_basic`(`id`, `group_code`, `project_id`, `type_code`, `type_name`, `season_code`, `season_name`, `create_time`, `update_time`, `update_user_id`, `is_delete`) VALUES ('8a625b6e64344fd084486f7b20fe7199', 'YL', 'Pj4403050002', 'pM2d5', '空气PM2.5浓度', 'ACSeason-2', '供暖季', '2021-10-26 09:48:48', NULL, '423594c93c8f45ee904269f4d8d14743', '0');
+INSERT INTO `calendar-center`.`dye_basic`(`id`, `group_code`, `project_id`, `type_code`, `type_name`, `season_code`, `season_name`, `create_time`, `update_time`, `update_user_id`, `is_delete`) VALUES ('98af9c276010410aa56a8053f678fd8f', 'YL', 'Pj4403050002', 'tdb', '温度', 'ACSeason-3', '过渡季', '2021-10-26 09:45:04', '2021-10-26 09:52:50', '423594c93c8f45ee904269f4d8d14743', '0');
+INSERT INTO `calendar-center`.`dye_basic`(`id`, `group_code`, `project_id`, `type_code`, `type_name`, `season_code`, `season_name`, `create_time`, `update_time`, `update_user_id`, `is_delete`) VALUES ('c06ead288b0044d0a873743cbb384132', 'YL', 'Pj4403050002', 'cO2', '空气CO2浓度', 'ACSeason-3', '过渡季', '2021-10-26 09:47:20', NULL, '423594c93c8f45ee904269f4d8d14743', '0');
+INSERT INTO `calendar-center`.`dye_basic`(`id`, `group_code`, `project_id`, `type_code`, `type_name`, `season_code`, `season_name`, `create_time`, `update_time`, `update_user_id`, `is_delete`) VALUES ('ca48540a47d54e3a8e01413f9a818645', 'YL', 'Pj4403050002', 'cO', '空气CO浓度', 'ACSeason-3', '过渡季', '2021-10-26 09:47:46', NULL, '423594c93c8f45ee904269f4d8d14743', '0');
+INSERT INTO `calendar-center`.`dye_basic`(`id`, `group_code`, `project_id`, `type_code`, `type_name`, `season_code`, `season_name`, `create_time`, `update_time`, `update_user_id`, `is_delete`) VALUES ('cdc9ca8bba7b4462a93ee601205b4cdc', 'YL', 'Pj4403050002', 'cO2', '空气CO2浓度', 'ACSeason-2', '供暖季', '2021-10-26 09:47:08', NULL, '423594c93c8f45ee904269f4d8d14743', '0');
+INSERT INTO `calendar-center`.`dye_basic`(`id`, `group_code`, `project_id`, `type_code`, `type_name`, `season_code`, `season_name`, `create_time`, `update_time`, `update_user_id`, `is_delete`) VALUES ('e101200c05094f30af34c741b10e7069', 'YL', 'Pj4403050002', 'pM2d5', '空气PM2.5浓度', 'ACSeason-1', '供冷季', '2021-10-26 09:48:41', NULL, '423594c93c8f45ee904269f4d8d14743', '0');
+INSERT INTO `calendar-center`.`dye_basic`(`id`, `group_code`, `project_id`, `type_code`, `type_name`, `season_code`, `season_name`, `create_time`, `update_time`, `update_user_id`, `is_delete`) VALUES ('e13d4c9ed86f4662af2f77869da7b9dd', 'YL', 'Pj4403050002', 'pM2d5', '空气PM2.5浓度', 'ACSeason-3', '过渡季', '2021-10-26 09:48:55', NULL, '423594c93c8f45ee904269f4d8d14743', '0');
+INSERT INTO `calendar-center`.`dye_basic`(`id`, `group_code`, `project_id`, `type_code`, `type_name`, `season_code`, `season_name`, `create_time`, `update_time`, `update_user_id`, `is_delete`) VALUES ('e3faf2642a5e4bb9ab194bd366352d31', 'YL', 'Pj4403050002', 'cO', '空气CO浓度', 'ACSeason-2', '供暖季', '2021-10-26 09:48:04', NULL, '423594c93c8f45ee904269f4d8d14743', '0');
+INSERT INTO `calendar-center`.`dye_basic`(`id`, `group_code`, `project_id`, `type_code`, `type_name`, `season_code`, `season_name`, `create_time`, `update_time`, `update_user_id`, `is_delete`) VALUES ('faf0533dc5464b4898ba07708e40f9e5', 'YL', 'Pj4403050002', 'rH', '湿度', 'ACSeason-3', '过渡季', '2021-10-26 09:46:26', NULL, '423594c93c8f45ee904269f4d8d14743', '0');
+INSERT INTO `calendar-center`.`dye_basic`(`id`, `group_code`, `project_id`, `type_code`, `type_name`, `season_code`, `season_name`, `create_time`, `update_time`, `update_user_id`, `is_delete`) VALUES ('fb7c8df3350747abb098b93c143646d2', 'YL', 'Pj4403050002', 'tdb', '温度', 'ACSeason-2', '供暖季', '2021-10-26 09:45:33', '2021-10-26 09:52:29', '423594c93c8f45ee904269f4d8d14743', '0');
+
+-- 默认染色标尺
+INSERT INTO `calendar-center`.`dye_rule_default`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('03e3cfc6c6134505a50e2aaadfd66717', '1afa744ee32a45da8af67f704c8c4207', 99, ')', 1000, '(', '浓度过高', '#FF0000', '2021-10-27 15:17:39', '2021-10-27 15:19:35', '423594c93c8f45ee904269f4d8d14743', '0', 1, 'PPM');
+INSERT INTO `calendar-center`.`dye_rule_default`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('8bbd77c4a4ff41b499ffd83fc2207d63', '1afa744ee32a45da8af67f704c8c4207', 1000, ']', 800, '[', '达标', '#C5E0B3', '2021-10-27 15:19:15', NULL, '423594c93c8f45ee904269f4d8d14743', '0', 2, 'PPM');
+INSERT INTO `calendar-center`.`dye_rule_default`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('93a20dd6fdc440ad8b4376c153ae1e19', '1afa744ee32a45da8af67f704c8c4207', 800, ')', -99, '(', '良好', '#00B050', '2021-10-27 15:17:39', NULL, '423594c93c8f45ee904269f4d8d14743', '0', 3, 'PPM');
+INSERT INTO `calendar-center`.`dye_rule_default`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('1660936da3204bb6b8df5bb0212d771d', '87b5353842234aa88366954eb5dcacba', 99, ')', 27, '(', '高温报警', '#FF0000', '2021-10-27 15:31:02', NULL, '423594c93c8f45ee904269f4d8d14743', '0', 5, '℃');
+INSERT INTO `calendar-center`.`dye_rule_default`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('51c48b9de8ab417695bd5f65d2a13155', '87b5353842234aa88366954eb5dcacba', 26, ']', 24, '(', '良好', '#00B050', '2021-10-27 15:28:01', NULL, '423594c93c8f45ee904269f4d8d14743', '0', 3, '℃');
+INSERT INTO `calendar-center`.`dye_rule_default`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('52690df8af524e79941515e4125deeab', '87b5353842234aa88366954eb5dcacba', 23, ')', -99, '(', '低温报警', '#4472C4', '2021-10-27 15:23:49', NULL, '423594c93c8f45ee904269f4d8d14743', '0', 1, '℃');
+INSERT INTO `calendar-center`.`dye_rule_default`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('61257f9924374c3ca98a97fd84ad2665', '87b5353842234aa88366954eb5dcacba', 27, ']', 26, '(', '高温预警', '#F4B083', '2021-10-27 15:30:13', NULL, '423594c93c8f45ee904269f4d8d14743', '0', 4, '℃');
+INSERT INTO `calendar-center`.`dye_rule_default`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('f159d0f0964e41949397b60e96345c67', '87b5353842234aa88366954eb5dcacba', 24, ']', 23, '[', '低温预警', '#D9E2F3', '2021-10-27 15:25:44', NULL, '423594c93c8f45ee904269f4d8d14743', '0', 2, '℃');
+INSERT INTO `calendar-center`.`dye_rule_default`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('5589aa8bfd1141bb9cfd519eba872090', '8a5ec9d1c28d4804b69de317f635752d', 40, ']', -99, '(', '达标', '#C5E0B3', '2021-10-27 15:32:39', NULL, '423594c93c8f45ee904269f4d8d14743', '0', 1, '%');
+INSERT INTO `calendar-center`.`dye_rule_default`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('9dabc82afd134220a57bf9a899d3ddd5', '8a5ec9d1c28d4804b69de317f635752d', 45, ']', 40, '(', '潮湿预警', '#F4B083', '2021-10-27 15:33:36', NULL, '423594c93c8f45ee904269f4d8d14743', '0', 2, '%');
+INSERT INTO `calendar-center`.`dye_rule_default`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('e3d49936e1534e7190868c12520bdcdb', '8a5ec9d1c28d4804b69de317f635752d', 99, ')', 45, '(', '潮湿报警', '#FF0000', '2021-10-27 15:34:30', NULL, '423594c93c8f45ee904269f4d8d14743', '0', 3, '%');
+INSERT INTO `calendar-center`.`dye_rule_default`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('0e7024ae696b44e38dbafacc86c28d18', 'e101200c05094f30af34c741b10e7069', 99, ')', 35, '(', '高', '#FF0000', '2021-10-27 15:17:39', NULL, '423594c93c8f45ee904269f4d8d14743', '0', 1, 'μg/m3 每24小时');
+INSERT INTO `calendar-center`.`dye_rule_default`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('b0e884ff3a5141a189f4f40b2878b83c', 'e101200c05094f30af34c741b10e7069', 35, ']', 15, '[', '达标', '#C5E0B3', '2021-10-27 15:17:39', NULL, '423594c93c8f45ee904269f4d8d14743', '0', 2, 'μg/m3 每24小时');
+INSERT INTO `calendar-center`.`dye_rule_default`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('bec61d651b184609b4e62b4cc02b60b8', 'e101200c05094f30af34c741b10e7069', 15, ')', -99, '(', '良好', '#00B050', '2021-10-27 15:17:39', NULL, '423594c93c8f45ee904269f4d8d14743', '0', 3, 'μg/m3 每24小时');
+
+
+-- 自定义染色标尺表
+-- INSERT INTO `calendar-center`.`dye_rule_custom`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('0aba12a248dd455482754ffd1d1eef85', '98af9c276010410aa56a8053f678fd8f', 99, ')', 27, '(', '很热', '#CC0000', '2021-10-26 10:12:45', NULL, '98af9c276010410aa56a8053f678fd8f', '0', 5, NULL);
+-- INSERT INTO `calendar-center`.`dye_rule_custom`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('14f8e4b7c35d4dbd94cd3efc5de56cf2', '98af9c276010410aa56a8053f678fd8f', 21, ')', -99, '(', '很冷', '#00DDDD', '2021-10-26 10:09:59', NULL, '98af9c276010410aa56a8053f678fd8f', '0', 1, NULL);
+-- INSERT INTO `calendar-center`.`dye_rule_custom`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('263a9cbff1324302a74c3f2911b723ea', 'fb7c8df3350747abb098b93c143646d2', 20, ']', -99, '(', '很冷', '#0066FF', '2021-10-26 10:13:56', NULL, '98af9c276010410aa56a8053f678fd8f', '0', 1, NULL);
+-- INSERT INTO `calendar-center`.`dye_rule_custom`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('3125dbf369e645c8bb0123903a47385e', '98af9c276010410aa56a8053f678fd8f', 27, ']', 25, '[', '热', '#EE7700', '2021-10-26 10:12:04', NULL, '98af9c276010410aa56a8053f678fd8f', '0', 4, NULL);
+-- INSERT INTO `calendar-center`.`dye_rule_custom`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('3d364527444f4589b5cd6ee199f5409f', 'fb7c8df3350747abb098b93c143646d2', 24, ']', 22, '[', '适中', '#008800', '2021-10-26 10:15:41', NULL, '98af9c276010410aa56a8053f678fd8f', '0', 3, NULL);
+-- INSERT INTO `calendar-center`.`dye_rule_custom`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('4f770757f7e347f49e924cb431b14fd3', 'fb7c8df3350747abb098b93c143646d2', 99, ')', 26, '(', '很热', '#FF3333', '2021-10-26 10:16:55', NULL, '98af9c276010410aa56a8053f678fd8f', '0', 5, NULL);
+-- INSERT INTO `calendar-center`.`dye_rule_custom`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('5862006c0cc94c8aacff4678c8c206a6', '87b5353842234aa88366954eb5dcacba', 23, ')', -99, '(', '很冷', '#009FCC', '2021-10-26 10:01:44', NULL, '98af9c276010410aa56a8053f678fd8f', '0', 1, NULL);
+-- INSERT INTO `calendar-center`.`dye_rule_custom`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('67f474e6726c452a89a830a1e77f55ea', '87b5353842234aa88366954eb5dcacba', 24, ']', 23, ']', '冷', '#77DDFF', '2021-10-26 10:04:21', NULL, '98af9c276010410aa56a8053f678fd8f', '0', 2, NULL);
+-- INSERT INTO `calendar-center`.`dye_rule_custom`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('83d8aa7a1a1f469081efcecb712e1faf', '98af9c276010410aa56a8053f678fd8f', 23, ')', 21, '(', '冷', '#BBFFEE', '2021-10-26 10:10:53', NULL, '98af9c276010410aa56a8053f678fd8f', '0', 2, NULL);
+-- INSERT INTO `calendar-center`.`dye_rule_custom`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('8b63db32d8f44fcdb6192419eeca9f56', 'fb7c8df3350747abb098b93c143646d2', 22, ')', 20, '(', '冷', '#00DDDD', '2021-10-26 10:15:11', NULL, '98af9c276010410aa56a8053f678fd8f', '0', 2, NULL);
+-- INSERT INTO `calendar-center`.`dye_rule_custom`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('b94186f6052c4de598ff0010623567fb', '87b5353842234aa88366954eb5dcacba', 99, ')', 27, '(', '很热', '#FF0000', '2021-10-26 10:07:54', NULL, '98af9c276010410aa56a8053f678fd8f', '0', 5, NULL);
+-- INSERT INTO `calendar-center`.`dye_rule_custom`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('cb4b0ec5de6547a9ba638b2230052e02', '87b5353842234aa88366954eb5dcacba', 26, ']', 24, ']', '适中', '#00AA00', '2021-10-26 10:05:44', NULL, '98af9c276010410aa56a8053f678fd8f', '0', 3, NULL);
+-- INSERT INTO `calendar-center`.`dye_rule_custom`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('d190d54b1e7240d8b70dafc3513dab31', '98af9c276010410aa56a8053f678fd8f', 26, ']', 24, '[', '适中', '#55AA00', '2021-10-26 10:11:34', NULL, '98af9c276010410aa56a8053f678fd8f', '0', 3, NULL);
+-- INSERT INTO `calendar-center`.`dye_rule_custom`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('e9714499df1046fd80c533c8048d09fb', 'fb7c8df3350747abb098b93c143646d2', 26, ']', 24, '(', '热', '#FF7744', '2021-10-26 10:16:09', '2021-10-26 10:18:44', '98af9c276010410aa56a8053f678fd8f', '0', 4, NULL);
+-- INSERT INTO `calendar-center`.`dye_rule_custom`(`id`, `basic_id`, `upper_limit`, `upper_symbol`, `lower_limit`, `lower_symbol`, `name`, `color_value`, `create_time`, `update_time`, `update_user_id`, `is_delete`, `order_num`, `num_symbol`) VALUES ('f92e42cadb234c0dbb8c70cfb83574c4', '87b5353842234aa88366954eb5dcacba', 27, ')', 26, '(', '热', '#FF8800', '2021-10-26 10:06:37', NULL, '98af9c276010410aa56a8053f678fd8f', '0', 4, NULL);

+ 131 - 0
src/main/resources/sql/schema.sql

@@ -0,0 +1,131 @@
+/*
+ Navicat Premium Data Transfer
+
+ Source Server         : 192.168.100.94
+ Source Server Type    : MySQL
+ Source Server Version : 50723
+ Source Host           : 192.168.100.94:9934
+ Source Schema         : calendar-center
+
+ Target Server Type    : MySQL
+ Target Server Version : 50723
+ File Encoding         : 65001
+
+ Date: 27/10/2021 11:47:10
+*/
+
+SET NAMES utf8mb4;
+SET FOREIGN_KEY_CHECKS = 0;
+
+-- ----------------------------
+-- Table structure for dye_rule_custom
+-- ----------------------------
+DROP TABLE IF EXISTS `dye_rule_custom`;
+CREATE TABLE `dye_rule_custom`  (
+  `id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
+  `basic_id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '基础表ID',
+  `upper_limit` int(50) NOT NULL COMMENT '上限',
+  `upper_symbol` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '上限符号',
+  `lower_limit` int(50) NOT NULL COMMENT '下限',
+  `lower_symbol` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '下限符号',
+  `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '名称',
+  `color_value` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '色值',
+  `create_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建时间',
+  `update_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改时间',
+  `update_user_id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '最后修改人ID',
+  `is_delete` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '是否删除(0:否 1:是)',
+  `order_num` int(10) NULL DEFAULT NULL COMMENT '排序',
+  `num_symbol` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数值单位符号',
+  PRIMARY KEY (`id`) USING BTREE,
+  UNIQUE INDEX `id`(`id`) USING BTREE COMMENT '主键索引',
+  INDEX `basic_id`(`basic_id`) USING BTREE COMMENT '外键索引',
+  CONSTRAINT `fk_custom` FOREIGN KEY (`basic_id`) REFERENCES `dye_basic` (`id`) ON DELETE RESTRICT ON UPDATE NO ACTION
+) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '染色规则自定义表' ROW_FORMAT = Dynamic;
+
+SET FOREIGN_KEY_CHECKS = 1;
+
+/*
+ Navicat Premium Data Transfer
+
+ Source Server         : 192.168.100.94
+ Source Server Type    : MySQL
+ Source Server Version : 50723
+ Source Host           : 192.168.100.94:9934
+ Source Schema         : calendar-center
+
+ Target Server Type    : MySQL
+ Target Server Version : 50723
+ File Encoding         : 65001
+
+ Date: 27/10/2021 11:47:17
+*/
+
+SET NAMES utf8mb4;
+SET FOREIGN_KEY_CHECKS = 0;
+
+-- ----------------------------
+-- Table structure for dye_rule_default
+-- ----------------------------
+DROP TABLE IF EXISTS `dye_rule_default`;
+CREATE TABLE `dye_rule_default`  (
+  `id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主键',
+  `basic_id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '染色基础表ID',
+  `upper_limit` int(50) NOT NULL COMMENT '上限',
+  `upper_symbol` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '上限符号',
+  `lower_limit` int(50) NOT NULL COMMENT '下限',
+  `lower_symbol` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '下限符号',
+  `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '名称',
+  `color_value` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '色值',
+  `create_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建时间',
+  `update_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新时间',
+  `update_user_id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '最后更新人ID',
+  `is_delete` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '是否删除(0:否  1:是)',
+  `order_num` int(10) NULL DEFAULT NULL COMMENT '排序',
+  `num_symbol` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数值单位符号',
+  PRIMARY KEY (`id`) USING BTREE,
+  UNIQUE INDEX `id`(`id`) USING BTREE COMMENT '主键索引',
+  INDEX `basic_id`(`basic_id`) USING BTREE COMMENT '外键索引',
+  CONSTRAINT `fk_default` FOREIGN KEY (`basic_id`) REFERENCES `dye_basic` (`id`) ON DELETE RESTRICT ON UPDATE NO ACTION
+) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '默认染色规则' ROW_FORMAT = Dynamic;
+
+SET FOREIGN_KEY_CHECKS = 1;
+
+/*
+ Navicat Premium Data Transfer
+
+ Source Server         : 192.168.100.94
+ Source Server Type    : MySQL
+ Source Server Version : 50723
+ Source Host           : 192.168.100.94:9934
+ Source Schema         : calendar-center
+
+ Target Server Type    : MySQL
+ Target Server Version : 50723
+ File Encoding         : 65001
+
+ Date: 27/10/2021 11:47:02
+*/
+
+SET NAMES utf8mb4;
+SET FOREIGN_KEY_CHECKS = 0;
+
+-- ----------------------------
+-- Table structure for dye_basic
+-- ----------------------------
+DROP TABLE IF EXISTS `dye_basic`;
+CREATE TABLE `dye_basic`  (
+  `id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
+  `group_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '集团编码',
+  `project_id` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '项目ID',
+  `type_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '染色类型编码,对应rwd_def_funcid的type字段',
+  `type_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '染色类型名称',
+  `season_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '季节编码',
+  `season_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '季节名称',
+  `create_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建时间',
+  `update_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新时间',
+  `update_user_id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '最后创建人ID',
+  `is_delete` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '是否删除(0:否 1:是)',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '染色基础表' ROW_FORMAT = Dynamic;
+
+SET FOREIGN_KEY_CHECKS = 1;