timeSliceQueryPush
This commit is contained in:
parent
48d03c16ce
commit
1b9a4fdd80
|
|
@ -30,15 +30,10 @@ func (v *VoucherBiz) Notice(ctx context.Context) error {
|
||||||
// 获取昨天 23:59:59 的时间
|
// 获取昨天 23:59:59 的时间
|
||||||
endTime := time.Date(noticeEndDay.Year(), noticeEndDay.Month(), noticeEndDay.Day(), 23, 59, 59, 0, noticeEndDay.Location())
|
endTime := time.Date(noticeEndDay.Year(), noticeEndDay.Month(), noticeEndDay.Day(), 23, 59, 59, 0, noticeEndDay.Location())
|
||||||
|
|
||||||
req := &bo.FindInBatchesUseBo{
|
return v.timeSliceQuery(ctx, startTime, endTime)
|
||||||
StartTime: &startTime,
|
|
||||||
EndTime: &endTime,
|
|
||||||
}
|
|
||||||
|
|
||||||
return v.ExecuteNotice(ctx, req)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *VoucherBiz) timeSliceQueryPush(ctx context.Context, startTime, endTime time.Time) error {
|
func (v *VoucherBiz) timeSliceQuery(ctx context.Context, startTime, endTime time.Time) error {
|
||||||
|
|
||||||
duration := 1 * time.Hour
|
duration := 1 * time.Hour
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue