耗材目录包装单位的拼音搜索

This commit is contained in:
2025-12-23 15:03:37 +08:00
parent cce71f324b
commit 0833f82fb4
9 changed files with 134 additions and 8 deletions

View File

@@ -14,6 +14,7 @@
<result property="listClass" column="list_class"/>
<result property="isDefault" column="is_default"/>
<result property="status" column="status"/>
<result property="pyStr" column="py_str"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
@@ -30,6 +31,7 @@
list_class,
is_default,
status,
py_str,
create_by,
create_time,
remark
@@ -56,6 +58,19 @@
<include refid="selectDictDataVo"/>
where status = '0' and dict_type = #{dictType} order by dict_sort asc
</select>
<select id="selectDictDataByTypeWithSearch" resultMap="SysDictDataResult">
<include refid="selectDictDataVo"/>
where status = '0'
and dict_type = #{dictType}
<if test="searchKey != null and searchKey != ''">
and (
(dict_label is not null and dict_label like concat('%', #{searchKey}, '%'))
or (py_str is not null and py_str like concat('%', #{searchKey}, '%'))
)
</if>
order by dict_sort asc
</select>
<select id="selectDictLabel" resultType="String">
select dict_label
@@ -105,6 +120,7 @@
<if test="listClass != null">list_class = #{listClass},</if>
<if test="isDefault != null and isDefault != ''">is_default = #{isDefault},</if>
<if test="status != null">status = #{status},</if>
<if test="pyStr !=null">pyStr = #{pyStr}</if>
<if test="remark != null">remark = #{remark},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
update_time = now()
@@ -128,6 +144,7 @@
<if test="listClass != null and listClass != ''">list_class,</if>
<if test="isDefault != null and isDefault != ''">is_default,</if>
<if test="status != null">status,</if>
<if test="pyStr !=null and pyStr !=null ''" >py_str,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
@@ -140,6 +157,7 @@
<if test="listClass != null and listClass != ''">#{listClass},</if>
<if test="isDefault != null and isDefault != ''">#{isDefault},</if>
<if test="status != null">#{status},</if>
<if test="pyStr !=null and pyStr !=''" >{pystr},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
now()