Commit 44c4a072 authored by 刘林's avatar 刘林

fix(tcm):根据extend、Type、name模糊查询字典

parent dabce739
......@@ -116,12 +116,21 @@ WHERE
<select id="getDictByExtendsAndTypePage" resultType="com.yeejoin.amos.boot.biz.common.entity.DataDictionary">
SELECT *
FROM cb_data_dictionary
WHERE type = #{type}
WHERE
<choose>
<when test="type == 'HZXM'">
type IN ('HZXM', 'HZXM_OLD')
</when>
<otherwise>
type = #{type}
</otherwise>
</choose>
<if test="extend != null and extend != ''">
AND #{extend} = ANY(string_to_array(extend, ','))
</if>
<if test="name != null and name != ''">
AND name LIKE CONCAT('%', #{name}, '%')
</if>
ORDER BY SORT_NUM
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment