Exclude existing order IDs when constructing new Shouman orders

pull/8040/head
Qiuyi LI 2024-03-14 13:04:26 +01:00
parent 4a7e8bdce8
commit 6429a6ab2a
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@
join sku s on poc.sku_id = s.id
join shouman_sku_relation ssr on s.id = ssr.sku_id
join shouman_category sc on ssr.shouman_category_id = sc.id
where poc.erp_status = 1;
where poc.erp_status = 1 and po.platform_order_id not in (select platform_order_id from shouman_order);
</select>
<resultMap id="shoumanOrderContentResultMap" type="org.jeecg.modules.business.entity.ShoumanOrderContent">