hongjli
2025-05-14 24eb8a2c2eb67bf3aab16593f52ed93802eed1cb
aps-modules/aps-system/src/main/resources/mapper/system/SysDictDataMapper.xml
@@ -32,7 +32,7 @@
            AND dict_type = #{dictType}
         </if>
         <if test="dictLabel != null and dictLabel != ''">
            AND dict_label like concat('%', #{dictLabel}, '%')
            AND dict_label like '%' || #{dictLabel} || '%'
         </if>
         <if test="status != null and status != ''">
            AND status = #{status}
@@ -40,7 +40,25 @@
      </where>
      order by dict_sort asc
   </select>
   <select id="selectByValue" resultMap="SysDictDataResult">
      <include refid="selectDictDataVo"/>
      <where>
         <if test="dictTypeApsArea != null and dictTypeApsArea != ''">
            AND dict_type = #{dictTypeApsArea}
         </if>
         <if test="dictValue != null and dictValue != ''">
            AND dict_value = #{dictValue}
         </if>
      </where>
      order by dict_sort asc
   </select>
   <select id="selectDictValueList" resultMap="SysDictDataResult">
      select distinct dict_value from sys_dict_data where dict_type = #{dictType}
   </select>
   <select id="selectDictDataByType" parameterType="String" resultMap="SysDictDataResult">
      <include refid="selectDictDataVo"/>
      where status = '0' and dict_type = #{dictType} order by dict_sort asc