代码优化

This commit is contained in:
xy
2025-07-10 11:13:35 +08:00
parent 9bd6ca43e1
commit 0ce5840d02

View File

@@ -92,14 +92,18 @@
*
from
cs_equipment_delivery
where
process = #{queryParam.process}
<where>
1=1
<if test="queryParam.process != null and queryParam.process !=''">
and process = #{queryParam.process}
</if>
<if test="queryParam.runStatus != null and queryParam.runStatus !=''">
and run_status = #{queryParam.runStatus}
</if>
<if test="queryParam.searchValue != null and queryParam.searchValue !=''">
and (name like concat('%',#{queryParam.searchValue},'%') or ndid like concat('%',#{queryParam.searchValue},'%'))
</if>
</where>
</select>
<select id="getCounts" resultType="int">