Commit 8f9132e6 authored by zhengyi's avatar zhengyi

历史控货订单是否限制修改收货人的值逻辑刷新脚本提交

parent 7bb59e17
-- 控货订单数据刷新
-- 更新历史控货订单数据要求:
-- 1.订单控货=是 && 控货状态=控货中/部分控货 && 订单创建时间<=2024-11.28 00:00 && 订单发货人电话=订单收货人电话,更新订单限制修改收货人=否
UPDATE ecw_order o
join ecw_order_consignor nor
on o.order_id = nor.order_id
join ecw_order_consignee nee
on o.order_id = nee.order_id
SET o.is_limit_update_consignee = 0
WHERE o.is_cargo_control = 1 AND o.create_time <= '2024-11.28 00:00:00' AND nor.country_code = nee.country_code AND nor.phone = nee.phone;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment