代码优化
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user