Commit e8de4ba9 authored by 周尚's avatar 周尚

optimize settle API

parent b3c8c78d
...@@ -88,35 +88,41 @@ end ...@@ -88,35 +88,41 @@ end
local SETTLE = {} local SETTLE = {}
function SETTLE.run() function SETTLE.run()
local args = ngx.req.get_uri_args() local args = ngx.req.get_uri_args()
local t
for k, v in pairs(args) do for k, v in pairs(args) do
if k == "total_date" then if k == "total_date" then
local t = zx_base:date2time(v) t = zx_base:date2time(v)
-- settle features start
-- node_asb: run()
-- node_asbdetail: run()
-- node_chgrule: run()
-- node_cs: run()
-- node_csdetail: run()
-- node_ms: run()
-- node_payment: run()
-- node_psb: run()
-- node_psbdetail: run()
-- node_rchg: run()
-- node_rchgdetail: run()
-- node_saledetail: run()
-- node_saleorder: run()
-- node_shift: run()
-- node_sku: run()
-- node_sms: run()
-- node_smsvip: run()
-- node_vipacct: run()
tk_sync: run()
node_card: run(t)
node_ticket: run(t)
tk_sdt: run(t)
end end
end end
if t == nil then
t = os.time()
end
-- settle features start
-- node_asb: run()
-- node_asbdetail: run()
-- node_chgrule: run()
-- node_cs: run()
-- node_csdetail: run()
-- node_ms: run()
-- node_payment: run()
-- node_psb: run()
-- node_psbdetail: run()
-- node_rchg: run()
-- node_rchgdetail: run()
-- node_saledetail: run()
-- node_saleorder: run()
-- node_shift: run()
-- node_sku: run()
-- node_sms: run()
-- node_smsvip: run()
-- node_vipacct: run()
tk_sync: run()
node_card: run(t)
node_ticket: run(t)
tk_sdt: run(t)
end end
return SETTLE return SETTLE
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