|
|
|
@ -14,7 +14,8 @@
|
|
|
|
|
aw2.name AS fromInvName,
|
|
|
|
|
bc1.name AS fromCorpName,
|
|
|
|
|
bc2.name AS customerName,
|
|
|
|
|
sw.workplaceName AS workPlaceName
|
|
|
|
|
sw.workplaceName AS workPlaceName,
|
|
|
|
|
swd.busName AS splitBusTypeName
|
|
|
|
|
FROM
|
|
|
|
|
io_order io
|
|
|
|
|
LEFT JOIN
|
|
|
|
@ -584,7 +585,8 @@
|
|
|
|
|
<where>
|
|
|
|
|
basic_bussiness_type.inStock = 1
|
|
|
|
|
and io_order.`status` = 7
|
|
|
|
|
AND date_format(io_order.updateTime, '%Y-%m-%d') between date_format(#{firstData}, '%Y-%m-%d') and date_format(#{lastData}, '%Y-%m-%d')
|
|
|
|
|
AND date_format(io_order.updateTime, '%Y-%m-%d') between date_format(#{firstData}, '%Y-%m-%d') and
|
|
|
|
|
date_format(#{lastData}, '%Y-%m-%d')
|
|
|
|
|
|
|
|
|
|
<if test="invCode != null and invCode != ''">
|
|
|
|
|
AND io_order.invCode = #{invCode}
|
|
|
|
@ -658,10 +660,12 @@
|
|
|
|
|
AND io.relKey like concat('%', #{relKey}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
|
|
|
AND date_format(io.createTime, '%Y-%m-%d') between date_format(#{startTime}, '%Y-%m-%d') and date_format(#{endTime}, '%Y-%m-%d')
|
|
|
|
|
AND date_format(io.createTime, '%Y-%m-%d') between date_format(#{startTime}, '%Y-%m-%d') and
|
|
|
|
|
date_format(#{endTime}, '%Y-%m-%d')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="startAduditTime != null and startAduditTime != '' and endAduditTime != null and endAduditTime != ''">
|
|
|
|
|
AND date_format(io.auditTime, '%Y-%m-%d') between date_format(#{startAduditTime}, '%Y-%m-%d') and date_format(#{endAduditTime}, '%Y-%m-%d')
|
|
|
|
|
AND date_format(io.auditTime, '%Y-%m-%d') between date_format(#{startAduditTime}, '%Y-%m-%d') and
|
|
|
|
|
date_format(#{endAduditTime}, '%Y-%m-%d')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="actions != null and actions.size() != 0">
|
|
|
|
|
AND io.`action` in
|
|
|
|
|