代码优化

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 from
cs_equipment_delivery cs_equipment_delivery
where <where>
process = #{queryParam.process} 1=1
<if test="queryParam.process != null and queryParam.process !=''">
and process = #{queryParam.process}
</if>
<if test="queryParam.runStatus != null and queryParam.runStatus !=''"> <if test="queryParam.runStatus != null and queryParam.runStatus !=''">
and run_status = #{queryParam.runStatus} and run_status = #{queryParam.runStatus}
</if> </if>
<if test="queryParam.searchValue != null and queryParam.searchValue !=''"> <if test="queryParam.searchValue != null and queryParam.searchValue !=''">
and (name like concat('%',#{queryParam.searchValue},'%') or ndid like concat('%',#{queryParam.searchValue},'%')) and (name like concat('%',#{queryParam.searchValue},'%') or ndid like concat('%',#{queryParam.searchValue},'%'))
</if> </if>
</where>
</select> </select>
<select id="getCounts" resultType="int"> <select id="getCounts" resultType="int">