|
|
@ -192,8 +192,6 @@ class Orders_model extends CI_Model {
|
|
|
|
LEFT JOIN BIZ_ConfirmLineDetail cold ON cold.COLD_COLI_SN=coli.COLI_SN
|
|
|
|
LEFT JOIN BIZ_ConfirmLineDetail cold ON cold.COLD_COLI_SN=coli.COLI_SN
|
|
|
|
where
|
|
|
|
where
|
|
|
|
GCI_combineNo is not null and GCI_combineNo not in ('cancel','forbidden')
|
|
|
|
GCI_combineNo is not null and GCI_combineNo not in ('cancel','forbidden')
|
|
|
|
-- 今天更新一次
|
|
|
|
|
|
|
|
and gci.GCI_createTime < '$last_update_time'
|
|
|
|
|
|
|
|
-- 已生成账单的不再自动同步
|
|
|
|
-- 已生成账单的不再自动同步
|
|
|
|
and NOT exists (
|
|
|
|
and NOT exists (
|
|
|
|
select 1 from report_order where ordernumber=COLI_ID and orderstats=1
|
|
|
|
select 1 from report_order where ordernumber=COLI_ID and orderstats=1
|
|
|
|