From a776855e5d548aac2024388063bcf3809247bd37 Mon Sep 17 00:00:00 2001 From: louwenzhi Date: Fri, 7 May 2021 07:41:30 +0800 Subject: [PATCH] =?UTF-8?q?debug=20=20=E5=9F=BA=E4=BA=8Epln=5Fcalloffdata?= =?UTF-8?q?=5Flanding=20=20=20=E7=9A=84calloffswet=20=E6=9D=A5archive?= =?UTF-8?q?=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archive/archive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive/archive.go b/archive/archive.go index 53538e6..d3a1e46 100644 --- a/archive/archive.go +++ b/archive/archive.go @@ -108,7 +108,7 @@ func CustProduct(conf *config.EnvConfig) { oemorders = append(oemorders, v.Oemseq) } //状态必须都是80,时间是14天以前的客户订单(并且预留1000个oemseq订单) - err = e.Table("pln_custorder").Join("INNER", "pln_calloffdata_landing", "pln_calloffdata_landing.finr = pln_custorder.finr and pln_calloffdata_landing.calloffnr = pln_custorder.calloffnr").NotIn("pln_custorder.oemordernr", oemorders).NotIn("pln_custorder.custordernr", custorders).Where("pln_custorder.status = ? and pln_custorder.credatuz <= ? and pln_calloffdata_landing.parsed = ?", common.CO_STATUS_CLOSED, oneWeekStr, 1).Desc("pln_custorder.oemseq").Limit(10).Find(&data) + err = e.Table("pln_custorder").Join("INNER", "pln_calloffdata_landing", "pln_calloffdata_landing.finr = pln_custorder.finr and pln_calloffdata_landing.calloffnr = pln_custorder.calloffnr").NotIn("pln_custorder.oemordernr", oemorders).NotIn("pln_custorder.custordernr", custorders).Where("pln_custorder.status = ? and pln_custorder.calloffswet <= ? and pln_calloffdata_landing.parsed = ?", common.CO_STATUS_CLOSED, oneWeekStr, 1).Desc("pln_custorder.oemseq").Limit(10).Find(&data) if err != nil { glog.InfoExtln("调度生成终止", "err : ", err) return