添加物料查询条件

This commit is contained in:
yangjun 2025-11-07 08:53:51 +08:00
parent 497cf38ca0
commit 20c6207bca
1 changed files with 9 additions and 0 deletions

View File

@ -24,6 +24,15 @@
<if test="param.checkId != null and param.checkId != ''">
and id not in ( ${param.checkId} )
</if>
<if test="param.categoryId != null and param.categoryId != ''">
and category_id = #{param.categoryId}
</if>
<if test="param.typeId != null and param.typeId != ''">
and type_id = #{param.typeId}
</if>
<if test="param.medicationId != null and param.medicationId != ''">
and medication_id = #{param.medicationId}
</if>
<if test="param.paramWlxx != null and param.paramWlxx != ''">
and (material_name like concat('%', #{param.paramWlxx} , '%') or
pinyin like concat('%', #{param.paramWlxx} , '%') or