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