This commit is contained in:
邹宗楠
2024-08-20 18:27:04 +08:00
parent 37a9e6662b
commit 141b487f8a

View File

@@ -760,7 +760,7 @@ func (c *PurchaseHandler) ListOrders(ctx *jxcontext.Context, vendorOrgCode strin
return nil, fmt.Errorf("只能查询九十天的数据")
}
if time.Now().Day()-queryDate.Day() > 7 {
endData = queryDate.AddDate(0, 0, 7)
endData = queryDate.AddDate(0, 0, 4)
} else {
endData = time.Now()
}