浏览代码

【CHG】增加字典记录

zhaomn 2 年之前
父节点
当前提交
1bb18295a6
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 1
      railway-business/src/main/resources/mapper/bi/ShowBdycMapper.xml
  2. 2 0
      sql/dict-2023.sql

+ 1 - 1
railway-business/src/main/resources/mapper/bi/ShowBdycMapper.xml

@@ -242,7 +242,7 @@
       </if>
       <if test="ssgq!=null and ssgq!=''">
         and sjgq=(select dict_label from sys_dict_data where dict_type='dlyc_sygq' and
-        dict_value=#{ssgq})
+            (dict_value=#{ssgq} or dict_label=#{ssgq}))
       </if>
       <if test="lineName!=null and lineName!=''">
         and line_name like concat('%', #{lineName}, '%')

+ 2 - 0
sql/dict-2023.sql

@@ -26,6 +26,8 @@ INSERT INTO `sys_dict_data`(`dict_sort`, `dict_label`, `dict_value`, `dict_type`
 VALUES (7, '四平东运行工区', '7', 'dlyc_sygq', 'N', '0', 'admin', now());
 INSERT INTO `sys_dict_data`(`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `is_default`, `status`, `create_by`, `create_time`)
 VALUES (8, '德惠西运行工区', '8', 'dlyc_sygq', 'N', '0', 'admin', now());
+INSERT INTO `sys_dict_data`(`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `is_default`, `status`, `create_by`, `create_time`)
+VALUES (9, '变配电修试队', '9', 'dlyc_sygq', 'N', '0', 'admin', now());
 
 INSERT INTO `sys_dict_type`(`dict_name`, `dict_type`, `status`, `create_by`, `create_time`)
 VALUES ('变电异常信息处理情况', 'bdyc_clqk', '0', 'admin', now());