|
|
|
@ -51,33 +51,34 @@
|
|
|
|
|
INNER JOIN io_unit_maintain_platform a2 on io.action = a2.sourceAction AND io.fromCorp = a2.unitId
|
|
|
|
|
</if>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="billNo != null and billNo != ''">
|
|
|
|
|
AND io.billNo like concat(#{billNo}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != null and action != ''">
|
|
|
|
|
AND io.action = #{action}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="invCode != null and invCode != ''">
|
|
|
|
|
AND io.invCode = #{invCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="productType != null and productType != ''">
|
|
|
|
|
AND io.productType = #{productType}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="id != null and id != ''">
|
|
|
|
|
AND id = #{id}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateUser != null and updateUser != ''">
|
|
|
|
|
AND io.updateUser = #{updateUser}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="productType != null and productType != ''">
|
|
|
|
|
AND io.productType = #{productType}
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<if test="corpName != null and corpName != ''">
|
|
|
|
|
AND (SELECT NAME FROM auth_warehouse aw2 WHERE aw2.CODE = io.fromInvCode) like
|
|
|
|
|
concat('%', #{corpName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != null and action != ''">
|
|
|
|
|
AND io.action = #{action}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="remark != null and remark != ''">
|
|
|
|
|
AND io.remark like concat('%', #{remark}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="mainAction != null and mainAction != ''">
|
|
|
|
|
AND io.mainAction = #{mainAction}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="billNo != null and billNo != ''">
|
|
|
|
|
AND io.billNo like concat('%', #{billNo}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="corpOrderId != null and corpOrderId != ''">
|
|
|
|
|
AND io.corpOrderId = #{corpOrderId}
|
|
|
|
|
</if>
|
|
|
|
@ -102,9 +103,6 @@
|
|
|
|
|
<if test="deptCode != null and deptCode != ''">
|
|
|
|
|
AND io.deptCode = #{deptCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="invCode != null and invCode != ''">
|
|
|
|
|
AND io.invCode = #{invCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="busType != null">
|
|
|
|
|
AND io.busType = #{busType}
|
|
|
|
|
</if>
|
|
|
|
@ -280,6 +278,12 @@
|
|
|
|
|
) As partCount
|
|
|
|
|
from io_order as io
|
|
|
|
|
<where>
|
|
|
|
|
<if test="billNo != null and billNo != ''">
|
|
|
|
|
AND billNo like concat(#{billNo}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != null and action != ''">
|
|
|
|
|
AND action = #{action}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="id != null and id != ''">
|
|
|
|
|
AND id = #{id}
|
|
|
|
|
</if>
|
|
|
|
@ -287,15 +291,9 @@
|
|
|
|
|
AND (SELECT NAME FROM auth_warehouse aw2 WHERE aw2.CODE = io.fromInvCode) like
|
|
|
|
|
concat('%', #{corpName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != null and action != ''">
|
|
|
|
|
AND action = #{action}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="mainAction != null and mainAction != ''">
|
|
|
|
|
AND mainAction = #{mainAction}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="billNo != null and billNo != ''">
|
|
|
|
|
AND billNo like concat('%', #{billNo}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="corpOrderId != null and corpOrderId != ''">
|
|
|
|
|
AND corpOrderId = #{corpOrderId}
|
|
|
|
|
</if>
|
|
|
|
@ -414,14 +412,15 @@
|
|
|
|
|
from io_order
|
|
|
|
|
<where>
|
|
|
|
|
<if test="billNo != null and billNo != ''">
|
|
|
|
|
AND billNo like concat('%', #{billNo}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="id != null and id != ''">
|
|
|
|
|
AND id = #{id}
|
|
|
|
|
AND billNo like concat( #{billNo}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != null and action != ''">
|
|
|
|
|
AND action = #{action}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="id != null and id != ''">
|
|
|
|
|
AND id = #{id}
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<if test="mainAction != null and mainAction != ''">
|
|
|
|
|
AND mainAction = #{mainAction}
|
|
|
|
|
</if>
|
|
|
|
@ -502,6 +501,9 @@
|
|
|
|
|
left join io_order_upload_log ioul on io.billNo = ioul.billNo
|
|
|
|
|
<where>
|
|
|
|
|
io.dealStatus = 3
|
|
|
|
|
<if test="billNo != null and billNo != ''">
|
|
|
|
|
AND io.billNo like concat(#{billNo}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="billType != null and billType != ''">
|
|
|
|
|
AND action = #{billType}
|
|
|
|
|
</if>
|
|
|
|
@ -511,9 +513,6 @@
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="billNo != null and billNo != ''">
|
|
|
|
|
AND io.billNo like concat('%', #{billNo}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="invCode != null and invCode != ''">
|
|
|
|
|
AND invCode = #{invCode}
|
|
|
|
|
</if>
|
|
|
|
@ -641,7 +640,7 @@
|
|
|
|
|
or io.outSickInfo like concat('%', #{unionRemark}, '%'))
|
|
|
|
|
</if>
|
|
|
|
|
<if test="billNo != null and billNo != ''">
|
|
|
|
|
AND io.billNo like concat('%', #{billNo}, '%')
|
|
|
|
|
AND io.billNo like concat( #{billNo}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="corpOrderId != null and corpOrderId != ''">
|
|
|
|
|
AND io.corpOrderId = #{corpOrderId}
|
|
|
|
|