liusheng
2 天以前 da026a34bcc97b2eb49607a3b02d94d8f683f997
ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
@@ -24,23 +24,25 @@
   <select id="selectDictTypeList" parameterType="SysDictType" resultMap="SysDictTypeResult">
       <include refid="selectDictTypeVo"/>
      <where>
          <if test="dictName != null and dictName != ''">
            AND dict_name like concat('%', #{dictName}, '%')
         </if>
         <if test="status != null and status != ''">
            AND status = #{status}
         </if>
         <if test="dictType != null and dictType != ''">
            AND dict_type like concat('%', #{dictType}, '%')
         </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')
         </if>
         <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
            and date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
         </if>
       </where>
      where 1=1
      <if test="orgid != null and orgid != ''">
         AND orgid = #{orgid}
      </if>
      <if test="dictName != null and dictName != ''">
         AND dict_name like concat('%', #{dictName}, '%')
      </if>
      <if test="status != null and status != ''">
         AND status = #{status}
      </if>
      <if test="dictType != null and dictType != ''">
         AND dict_type like concat('%', #{dictType}, '%')
      </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')
      </if>
      <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
         and date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
      </if>
   </select>
   <select id="selectDictTypeAll" resultMap="SysDictTypeResult">