‘liusuyi’
2023-11-21 ca39aeadb7b19b2e854d5e2694e52b63ef9e8afe
ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml
@@ -8,6 +8,7 @@
      <id     property="dictCode"   column="dict_code"   />
      <result property="dictSort"   column="dict_sort"   />
      <result property="dictLabel"  column="dict_label"  />
      <result property="dictLabelI18n"  column="dict_label_i18n"  />
      <result property="dictValue"  column="dict_value"  />
      <result property="dictType"   column="dict_type"   />
      <result property="cssClass"   column="css_class"   />
@@ -21,7 +22,7 @@
   </resultMap>
   
   <sql id="selectDictDataVo">
        select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark
        select dict_code, dict_sort, dict_label,dict_label_i18n, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark
      from sys_dict_data
    </sql>
@@ -76,6 +77,7 @@
       <set>
          <if test="dictSort != null">dict_sort = #{dictSort},</if>
          <if test="dictLabel != null and dictLabel != ''">dict_label = #{dictLabel},</if>
         <if test="dictLabelI18n != null and dictLabelI18n != ''">dict_label_i18n = #{dictLabelI18n},</if>
          <if test="dictValue != null and dictValue != ''">dict_value = #{dictValue},</if>
          <if test="dictType != null and dictType != ''">dict_type = #{dictType},</if>
          <if test="cssClass != null">css_class = #{cssClass},</if>
@@ -97,6 +99,7 @@
       insert into sys_dict_data(
          <if test="dictSort != null">dict_sort,</if>
          <if test="dictLabel != null and dictLabel != ''">dict_label,</if>
         <if test="dictLabelI18n != null and dictLabelI18n != ''">dict_label_i18n,</if>
          <if test="dictValue != null and dictValue != ''">dict_value,</if>
          <if test="dictType != null and dictType != ''">dict_type,</if>
          <if test="cssClass != null and cssClass != ''">css_class,</if>
@@ -109,6 +112,7 @@
       )values(
           <if test="dictSort != null">#{dictSort},</if>
           <if test="dictLabel != null and dictLabel != ''">#{dictLabel},</if>
         <if test="dictLabelI18n != null and dictLabelI18n != ''">#{dictLabelI18n},</if>
          <if test="dictValue != null and dictValue != ''">#{dictValue},</if>
          <if test="dictType != null and dictType != ''">#{dictType},</if>
          <if test="cssClass != null and cssClass != ''">#{cssClass},</if>