|
|
@@ -457,10 +457,11 @@ public class Scheduler {
|
|
|
* 每日凌晨下架今日过期车队账号
|
|
|
*/
|
|
|
@Scheduled(cron = "0 0 0 * * ?")
|
|
|
- public void closeGroupsTrips() {
|
|
|
+ public void closeGroupsTrips() throws Exception {
|
|
|
DateTime now = DateTime.now();
|
|
|
DateTime nextDay = DateUtil.offsetDay(DateUtil.beginOfDay(now), 1);
|
|
|
List<CloseGroupsTripsView> closeGroupsTripsViews = Optional.ofNullable(beanSearcher.searchAll(CloseGroupsTripsView.class, MapUtils.builder()
|
|
|
+ .field(CloseGroupsTripsView::getCreatedTime, "2023-05-11").op(Operator.GreaterEqual)
|
|
|
.field(CloseGroupsTripsView::getExpiryTime, nextDay).op(Operator.LessThan)
|
|
|
.field(CloseGroupsTripsView::getGoodsId, List.of(18, 26)).op(Operator.InList)
|
|
|
.field(CloseGroupsTripsView::getGroupsId).op(Operator.NotNull)
|