ZQN
2024-06-18 ccf9dfb83b9846974c569161502b784c668ee307
project-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
@@ -8,6 +8,7 @@
      <id     property="dictId"     column="dict_id"     />
      <result property="dictName"   column="dict_name"   />
      <result property="dictType"   column="dict_type"   />
      <result property="isSystem"   column="is_system"   />
      <result property="status"     column="status"      />
      <result property="createBy"   column="create_by"   />
      <result property="createTime" column="create_time" />
@@ -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_type,is_system, status, create_by, create_time, remark
      from sys_dict_type
    </sql>
@@ -31,6 +32,9 @@
         </if>
         <if test="dictType != null and dictType != ''">
            AND dict_type like concat('%', #{dictType}, '%')
         </if>
         <if test="isSystem != null">
            AND is_system = #{isSystem}
         </if>
         <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
            and date_format(create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
@@ -76,6 +80,7 @@
       <set>
          <if test="dictName != null and dictName != ''">dict_name = #{dictName},</if>
          <if test="dictType != null and dictType != ''">dict_type = #{dictType},</if>
          <if test="isSystem != null ">is_system = #{isSystem},</if>
          <if test="status != null">status = #{status},</if>
          <if test="remark != null">remark = #{remark},</if>
          <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
@@ -88,6 +93,7 @@
       insert into sys_dict_type(
          <if test="dictName != null and dictName != ''">dict_name,</if>
          <if test="dictType != null and dictType != ''">dict_type,</if>
          <if test="isSystem != null ">is_system,</if>
          <if test="status != null">status,</if>
          <if test="remark != null and remark != ''">remark,</if>
          <if test="createBy != null and createBy != ''">create_by,</if>
@@ -95,6 +101,7 @@
       )values(
          <if test="dictName != null and dictName != ''">#{dictName},</if>
          <if test="dictType != null and dictType != ''">#{dictType},</if>
          <if test="isSystem != null ">#{isSystem},</if>
          <if test="status != null">#{status},</if>
          <if test="remark != null and remark != ''">#{remark},</if>
          <if test="createBy != null and createBy != ''">#{createBy},</if>