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