‘liusuyi’
2023-11-21 ca39aeadb7b19b2e854d5e2694e52b63ef9e8afe
ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
@@ -7,6 +7,7 @@
   <resultMap type="SysDictType" id="SysDictTypeResult">
      <id     property="dictId"     column="dict_id"     />
      <result property="dictName"   column="dict_name"   />
        <result property="dictNameI18n" column="dict_name_i18n"/>
      <result property="dictType"   column="dict_type"   />
      <result property="status"     column="status"      />
      <result property="createBy"   column="create_by"   />
@@ -16,7 +17,7 @@
   </resultMap>
   
   <sql id="selectDictTypeVo">
        select dict_id, dict_name, dict_type, status, create_by, create_time, remark
        select dict_id, dict_name,dict_name_i18n, dict_type, status, create_by, create_time, remark
      from sys_dict_type
    </sql>
@@ -61,7 +62,9 @@
   </select>
   
   <delete id="deleteDictTypeById" parameterType="Long">
       delete from sys_dict_type where dict_id = #{dictId}
        delete
        from sys_dict_type
        where dict_id = #{dictId}
    </delete>
    
    <delete id="deleteDictTypeByIds" parameterType="Long">
@@ -75,6 +78,7 @@
       update sys_dict_type
       <set>
          <if test="dictName != null and dictName != ''">dict_name = #{dictName},</if>
            <if test="dictNameI18n != null and dictNameI18n != ''">dict_name_i18n = #{dictNameI18n},</if>
          <if test="dictType != null and dictType != ''">dict_type = #{dictType},</if>
          <if test="status != null">status = #{status},</if>
          <if test="remark != null">remark = #{remark},</if>
@@ -87,6 +91,7 @@
    <insert id="insertDictType" parameterType="SysDictType">
       insert into sys_dict_type(
          <if test="dictName != null and dictName != ''">dict_name,</if>
        <if test="dictNameI18n != null and dictNameI18n != ''">dict_name_i18n,</if>
          <if test="dictType != null and dictType != ''">dict_type,</if>
          <if test="status != null">status,</if>
          <if test="remark != null and remark != ''">remark,</if>
@@ -94,6 +99,7 @@
          create_time
       )values(
          <if test="dictName != null and dictName != ''">#{dictName},</if>
        <if test="dictNameI18n != null and dictNameI18n != ''">#{dictNameI18n},</if>
          <if test="dictType != null and dictType != ''">#{dictType},</if>
          <if test="status != null">#{status},</if>
          <if test="remark != null and remark != ''">#{remark},</if>