## 调整发货方法;
This commit is contained in:
parent
c344642bda
commit
bac4911559
|
@ -397,11 +397,6 @@
|
||||||
<update id="deliverBatch" parameterType="com.hzs.common.domain.sale.deliver.SaDeliver">
|
<update id="deliverBatch" parameterType="com.hzs.common.domain.sale.deliver.SaDeliver">
|
||||||
MERGE INTO SA_DELIVER sd
|
MERGE INTO SA_DELIVER sd
|
||||||
using (
|
using (
|
||||||
select PK_ID,
|
|
||||||
LOGISTICS_COMPANY,
|
|
||||||
DELIVER_STATUS,
|
|
||||||
replace(wm_concat(LOGISTICS_CODE), ',', '/') LOGISTICS_CODE
|
|
||||||
from (
|
|
||||||
<foreach collection="deliverList" item="item" separator="union">
|
<foreach collection="deliverList" item="item" separator="union">
|
||||||
select
|
select
|
||||||
#{item.pkId} PK_ID,
|
#{item.pkId} PK_ID,
|
||||||
|
@ -410,8 +405,6 @@
|
||||||
#{item.deliverStatus} DELIVER_STATUS
|
#{item.deliverStatus} DELIVER_STATUS
|
||||||
from dual
|
from dual
|
||||||
</foreach>
|
</foreach>
|
||||||
)
|
|
||||||
group by PK_ID, LOGISTICS_COMPANY, LOGISTICS_CODE, DELIVER_STATUS
|
|
||||||
) tmp
|
) tmp
|
||||||
ON (tmp.PK_ID = sd.pk_id and sd.PK_COUNTRY = #{pkCountry})
|
ON (tmp.PK_ID = sd.pk_id and sd.PK_COUNTRY = #{pkCountry})
|
||||||
WHEN MATCHED THEN
|
WHEN MATCHED THEN
|
||||||
|
|
Loading…
Reference in New Issue