|
@@ -27,8 +27,8 @@
|
|
|
p.supply_id,
|
|
|
json_unquote( sw.victoriatourist_json -> '$.deliverGoodsId' ) deliverGoodsId,
|
|
|
json_unquote( p.victoriatourist_json -> '$.contractCode' ) contractCode,
|
|
|
- dg.logistics_company_code,
|
|
|
- dg.`code` logisticsCode,
|
|
|
+ lis.logistics_company_code,
|
|
|
+ lis.`code` AS logisticsCode,
|
|
|
p.create_user purchaseUserId,
|
|
|
p.create_time purchaseTime,
|
|
|
asr.quality_status
|
|
@@ -37,6 +37,7 @@
|
|
|
JOIN bytesailing_wms.stock_wait sw ON asr.stock_wait_id = sw.id
|
|
|
JOIN bytesailing_purchase.purchase p ON sw.business_id = p.id
|
|
|
JOIN deliver_goods dg ON dg.id = json_unquote(sw.victoriatourist_json -> '$.deliverGoodsId')
|
|
|
+ LEFT JOIN bytesailing_victoriatourist.logistics_infos lis ON lis.business_id = CAST( json_unquote( sw.victoriatourist_json -> '$.deliverGoodsId' ) AS UNSIGNED )
|
|
|
${ew.customSqlSegment}
|
|
|
</select>
|
|
|
|