|
@@ -10,7 +10,6 @@
|
|
left join warehouse_base_info wbi on wbi.warehouse_name = w.warehouse_name
|
|
left join warehouse_base_info wbi on wbi.warehouse_name = w.warehouse_name
|
|
WHERE
|
|
WHERE
|
|
w.delete_flag = '0'
|
|
w.delete_flag = '0'
|
|
- and wbi.person_phone = ${phone}
|
|
|
|
<if test="searchType != null and searchType != ''">
|
|
<if test="searchType != null and searchType != ''">
|
|
<if test="searchType == 2">
|
|
<if test="searchType == 2">
|
|
AND w.in_out_flag = '1'
|
|
AND w.in_out_flag = '1'
|
|
@@ -19,11 +18,14 @@
|
|
AND w.in_out_flag = '2'
|
|
AND w.in_out_flag = '2'
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
- <if test="pcFlag != null and pcFlag != ''">
|
|
|
|
|
|
+ <if test="pcFlag != null and pcFlag != ''and pcFlag == '1'">
|
|
AND w.base_id = #{baseId}
|
|
AND w.base_id = #{baseId}
|
|
and w.position_id = #{positionId}
|
|
and w.position_id = #{positionId}
|
|
and w.status_flag = '3'
|
|
and w.status_flag = '3'
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="pcFlag != null and pcFlag != ''and pcFlag == '0'">
|
|
|
|
+ and wbi.person_phone = ${phone}
|
|
|
|
+ </if>
|
|
<if test="statusFlag != null and statusFlag != ''">
|
|
<if test="statusFlag != null and statusFlag != ''">
|
|
AND w.status_flag = #{statusFlag}
|
|
AND w.status_flag = #{statusFlag}
|
|
</if>
|
|
</if>
|
|
@@ -68,7 +70,6 @@
|
|
left join warehouse_base_info wbi on wbi.warehouse_name = w.warehouse_name
|
|
left join warehouse_base_info wbi on wbi.warehouse_name = w.warehouse_name
|
|
WHERE
|
|
WHERE
|
|
w.delete_flag = '0'
|
|
w.delete_flag = '0'
|
|
- and wbi.person_phone = ${phone}
|
|
|
|
<if test="searchType != null and searchType != ''">
|
|
<if test="searchType != null and searchType != ''">
|
|
<if test="searchType == 2">
|
|
<if test="searchType == 2">
|
|
AND w.in_out_flag = '1'
|
|
AND w.in_out_flag = '1'
|
|
@@ -77,11 +78,14 @@
|
|
AND w.in_out_flag = '2'
|
|
AND w.in_out_flag = '2'
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
- <if test="pcFlag != null and pcFlag != ''">
|
|
|
|
|
|
+ <if test="pcFlag != null and pcFlag != ''and pcFlag == '1'">
|
|
AND w.base_id = #{baseId}
|
|
AND w.base_id = #{baseId}
|
|
and w.position_id = #{positionId}
|
|
and w.position_id = #{positionId}
|
|
and w.status_flag = '3'
|
|
and w.status_flag = '3'
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="pcFlag != null and pcFlag != ''and pcFlag == '0'">
|
|
|
|
+ and wbi.person_phone = ${phone}
|
|
|
|
+ </if>
|
|
<if test="statusFlag != null and statusFlag != ''">
|
|
<if test="statusFlag != null and statusFlag != ''">
|
|
AND w.status_flag = #{statusFlag}
|
|
AND w.status_flag = #{statusFlag}
|
|
</if>
|
|
</if>
|