update 批量更新订单审核

This commit is contained in:
Guoqs
2026-02-05 14:51:20 +08:00
parent 0d04bb884f
commit ebadabfe2a
3 changed files with 29 additions and 19 deletions

View File

@@ -24,7 +24,6 @@ import com.jsowell.pile.domain.ykcCommond.StartChargingCommand;
import com.jsowell.pile.service.*;
import com.jsowell.pile.vo.base.StationInfoVO;
import com.jsowell.pile.vo.web.BillingTemplateVO;
import com.jsowell.pile.vo.web.OrderListVO;
import com.jsowell.thirdparty.amap.service.AMapService;
import com.jsowell.thirdparty.common.NotificationDTO;
import com.jsowell.thirdparty.common.NotificationService;
@@ -492,12 +491,8 @@ public class JsowellTask {
LocalDate yesterday = DateUtils.getYesterday();
LocalDateTime start = yesterday.atStartOfDay();
LocalDateTime end = yesterday.atTime(23, 59, 59);
List<OrderListVO> orderList = orderBasicInfoService.selectOrderListByDateTime(start, end);
if (CollectionUtils.isEmpty(orderList)) {
return;
}
List<String> list = orderList.stream().map(OrderListVO::getOrderCode).collect(Collectors.toList());
orderBasicInfoService.updateOrderReviewFlagTemp(list);
orderBasicInfoService.updateOrderReviewFlagTemp(start, end, null);
}