半月报功能优化

This commit is contained in:
xy
2025-07-10 13:23:29 +08:00
parent 0ce5840d02
commit 660925df31
2 changed files with 18 additions and 14 deletions

View File

@@ -111,13 +111,17 @@
count(1)
from
cs_equipment_delivery
where
process = #{queryParam.process}
<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>
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>
</mapper>