标签内容修改

This commit is contained in:
xiejunyu
2022-03-17 11:48:50 +08:00
parent b6cf71f3f9
commit 8e03347f04
2 changed files with 18 additions and 22 deletions
@@ -135,19 +135,18 @@
i.item_text as attribute_type_name,i.en_name as attribute_type_en_name i.item_text as attribute_type_name,i.en_name as attribute_type_en_name
from sys_dict as d from sys_dict as d
left join sys_dict_item as i on d.attribute_type=i.item_value left join sys_dict_item as i on d.attribute_type=i.item_value
where i.dict_id="1494570247913512962" and d.del_flag=0 where i.dict_id="1494570247913512962" and d.del_flag=0 and d.is_tag_dict=1
<if test="params.cut='cn'"> <choose>
<if test="params.dictName != null and params.dictName != ''"> <when test="params.dictName != null and params.dictName != ''">
and d.dict_en_name like concat('%',#{params.dictName},'%') <if test='params.cut="cn"'>
</if> and d.dict_name like concat('%',#{params.dictName},'%')
</if> </if>
<if test="params.cut='en'">
<if test="params.dictName != null and params.dictName != ''">
and d.dict_en_name like concat('%',#{params.dictName},'%')
</if>
</if>
order by f.create_time desc
<if test='params.cut="en"'>
and d.dict_en_name like concat('%',#{params.dictName},'%')
</if>
</when>
</choose>
order by d.create_time desc
</select> </select>
</mapper> </mapper>
@@ -41,24 +41,21 @@
where f.cgform_head_id="48308196e7b04761b533dc31bc899707" where f.cgform_head_id="48308196e7b04761b533dc31bc899707"
and f.is_delete=0 and f.is_delete=0
and i.dict_id=1493098515761917954 and i.dict_id=1493098515761917954
<!--<choose> <choose>
<when test="params.cut='cn' "> <when test="params.dbFieldTxt != null and params.dbFieldTxt != ''">
<if test="params.dbFieldTxt != null and params.dbFieldTxt != ''"> <if test='params.cut="cn"'>
and f.db_field_txt like concat('%',#{params.dbFieldTxt},'%') and f.db_field_txt like concat('%',#{params.dbFieldTxt},'%')
</if> </if>
</when>
<otherwise> <if test='params.cut="en"'>
<if test="params.dbFieldTxt != null and params.dbFieldTxt != ''">
and f.db_field_en_name like concat('%',#{params.dbFieldTxt},'%') and f.db_field_en_name like concat('%',#{params.dbFieldTxt},'%')
</if> </if>
</otherwise> </when>
</choose>--> </choose>
<if test="params.showArea != null and params.showArea != '' "> <if test="params.showArea != null and params.showArea != '' ">
and f.show_area like concat('%',#{params.showArea},'%') and f.show_area like concat('%',#{params.showArea},'%')
</if> </if>
order by f.create_time desc order by f.create_time desc
</select> </select>
</mapper> </mapper>