update 批量更新订单审核

This commit is contained in:
Guoqs
2026-02-04 16:37:58 +08:00
parent b0e03d9558
commit e4f6a11246
4 changed files with 54 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ 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;
@@ -487,6 +488,19 @@ public class JsowellTask {
}
}
public void updateOrderReview() {
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);
}
// private void processUnSettledOrderOld() {
// String startTime = "2023-01-01 00:00:00";
// String endTime = "2024-12-31 23:59:59";