打印日志

This commit is contained in:
Guoqs
2026-04-20 14:49:25 +08:00
parent 2b80442811
commit 50210ab5c0
2 changed files with 3 additions and 0 deletions

View File

@@ -1101,6 +1101,7 @@ public class TempController extends BaseController {
@PostMapping("/batchUpdateOrderReviewByDatePoor")
public RestApiResponse<?> batchUpdateOrderReviewByDatePoor(@RequestBody UpdateOrderReviewDTO dto) {
logger.info("批量更新订单评价, param:{}", JSON.toJSONString(dto));
RestApiResponse<?> response = null;
try {
// 根据传来的开始日期、结束日期按天划分为批次,对每个批次进行批量更新
@@ -1112,6 +1113,7 @@ public class TempController extends BaseController {
LocalDateTime localStartTime = LocalDateTime.parse(date + "T00:00:00", DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss"));;
LocalDateTime localEndTime = LocalDateTime.parse(date + "T23:59:59", DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss"));;
int i = orderBasicInfoService.updateOrderReviewFlagTemp(localStartTime, localEndTime, dto.getStationId());
logger.info("批量更新订单评价, 批次:{}, 影响行数:{}", date, i);
}
response = new RestApiResponse<>();
} catch (Exception e) {

View File

@@ -6331,6 +6331,7 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
public int updateOrderReviewFlagTemp(LocalDateTime start, LocalDateTime end, String stationId) {
if (StringUtils.isBlank(stationId)) {
stationId = "1003"; // 目前只有 大坡中学举视超充站 这一个站点使用
logger.info("校验或更新订单分账信息-使用默认站点id:{}", stationId);
}
List<OrderListVO> orderList = this.selectOrderListByDateTime(start, end, stationId);
if (CollectionUtils.isEmpty(orderList)) {