|
|
@@ -464,11 +464,13 @@ public class Scheduler {
|
|
|
.field(CloseGroupsTripsView::getExpiryTime, nextDay).op(Operator.LessThan)
|
|
|
.field(CloseGroupsTripsView::getGoodsId, List.of(18, 26)).op(Operator.InList)
|
|
|
.field(CloseGroupsTripsView::getGroupsId).op(Operator.NotNull)
|
|
|
+ .field(CloseGroupsTripsView::getGroupsStatus, GroupsTrips.Status.down.name()).op(Operator.NotEqual)
|
|
|
.build())).orElse(new ArrayList<>());
|
|
|
log.info("下架过期账号数量:{}", closeGroupsTripsViews.size());
|
|
|
- closeGroupsTripsViews.forEach(account->{
|
|
|
+ closeGroupsTripsViews.forEach(account -> {
|
|
|
int update = groupsMapper.update(null, Wrappers.lambdaUpdate(GroupsTrips.class)
|
|
|
.set(GroupsTrips::getStatus, GroupsTrips.Status.down)
|
|
|
+ .ne(GroupsTrips::getStatus, GroupsTrips.Status.down)
|
|
|
.eq(GroupsTrips::getId, account.getGroupsId()));
|
|
|
if (update == 1) {
|
|
|
log.info("将过期账号:{}车队:{}下架", account.getId(), account.getGroupsId());
|