This commit is contained in:
邹宗楠
2024-08-20 18:38:23 +08:00
parent 54d09400df
commit 0d372f911c

View File

@@ -759,14 +759,15 @@ func (c *PurchaseHandler) ListOrders(ctx *jxcontext.Context, vendorOrgCode strin
if time.Now().Day()-queryDate.Day() > 90 { if time.Now().Day()-queryDate.Day() > 90 {
return nil, fmt.Errorf("只能查询九十天的数据") return nil, fmt.Errorf("只能查询九十天的数据")
} }
if time.Now().Day()-queryDate.Day() > 5 { if time.Now().Day()-queryDate.Day() >= 3 {
endData = queryDate.AddDate(0, 0, 4) endData = queryDate.AddDate(0, 0, 3)
} else { } else {
endData = time.Now() endData = time.Now()
} }
if vendorStoreID == "23932637" {
globals.SugarLogger.Debugf("======queryDate := %s", utils.Format4Output(queryDate, false)) globals.SugarLogger.Debugf("======queryDate := %s", utils.Format4Output(queryDate, false))
globals.SugarLogger.Debugf("======endData := %s", utils.Format4Output(endData, false)) globals.SugarLogger.Debugf("======endData := %s", utils.Format4Output(endData, false))
}
var vendorStoreIDs []string var vendorStoreIDs []string
if vendorStoreID == "" { if vendorStoreID == "" {