入库单查询sql修改
This commit is contained in:
parent
6a03253d26
commit
814ad0fde4
@ -43,6 +43,7 @@
|
||||
so.so_status,
|
||||
so.remark,
|
||||
so.corp_id,
|
||||
so.main_id,
|
||||
so.corp_name,
|
||||
so.dept_id,
|
||||
so.create_time,
|
||||
@ -67,7 +68,7 @@
|
||||
and so.so_status = #{map.soStatus}
|
||||
</if>
|
||||
<if test="map.soStatus == null">
|
||||
and so.so_status != '06'
|
||||
and (so.so_status != '06' or so.so_status is null)
|
||||
</if>
|
||||
<if test="map.searchTimeArray != null and map.searchTimeArray.length > 0">
|
||||
and (so.create_time between #{map.searchTimeArray[0]} and #{map.searchTimeArray[1]})
|
||||
@ -84,6 +85,9 @@
|
||||
<if test="map.userId != null and map.userId != ''">
|
||||
and (so.user_id = #{map.userId})
|
||||
</if>
|
||||
<if test="map.mainId != null and map.mainId != ''">
|
||||
and so.main_id = #{map.mainId}
|
||||
</if>
|
||||
order by so.create_time desc
|
||||
</select>
|
||||
<select id="selectCountNum" resultType="java.lang.Integer">
|
||||
|
Loading…
Reference in New Issue
Block a user