1
This commit is contained in:
@@ -759,12 +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() > 7 {
|
if time.Now().Day()-queryDate.Day() > 5 {
|
||||||
endData = queryDate.AddDate(0, 0, 4)
|
endData = queryDate.AddDate(0, 0, 4)
|
||||||
} else {
|
} else {
|
||||||
endData = time.Now()
|
endData = time.Now()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
globals.SugarLogger.Debugf("======queryDate := %s", utils.Format4Output(queryDate, false))
|
||||||
|
globals.SugarLogger.Debugf("======endData := %s", utils.Format4Output(endData, false))
|
||||||
|
|
||||||
var vendorStoreIDs []string
|
var vendorStoreIDs []string
|
||||||
if vendorStoreID == "" {
|
if vendorStoreID == "" {
|
||||||
vendorStoreIDs, err = c.GetAllStoresVendorID(ctx, vendorOrgCode)
|
vendorStoreIDs, err = c.GetAllStoresVendorID(ctx, vendorOrgCode)
|
||||||
|
|||||||
Reference in New Issue
Block a user