Commit e221b7b8 authored by zhengyi's avatar zhengyi

控货订单新增业务值的刷新脚本

parent 79448311
-- 判断控货订单的限制属性设置
update ecw_order set is_limit_update_consignee = has_consignee, lock_consignee_day = IF(lock_consignee_day is not null,lock_consignee_day,30), lock_consignee_time = IF(unload_time is not null, CONCAT(DATE_FORMAT(DATE_ADD(unload_time, INTERVAL lock_consignee_day DAY),'%Y-%m-%d'), ' 23:59:59'), NULL) WHERE is_cargo_control = 1;
-- 进口城市的仓库设置免租期默认30天,
update ecw_warehouse w left join ecw_region r on w.shi = r.id set rent_free_days = 30, lock_recipient_days = 30 WHERE r.type in(1,3);
\ 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