Compare commits

...

2 Commits

Author SHA256 Message Date
PC
f63911eaee Merge remote-tracking branch 'origin/main' 2026-01-21 09:29:00 +08:00
PC
317c6cca65 兼容 2026-01-21 09:28:49 +08:00

View File

@ -922,9 +922,10 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
.where(EBIKE_BIKE_ORDER.HANDLE_STATE.eq(OrderHandleState.ACCEPTED).or(EBIKE_BIKE_ORDER.HANDLE_STATE.eq(OrderHandleState.UNPROCESSED))) .where(EBIKE_BIKE_ORDER.HANDLE_STATE.eq(OrderHandleState.ACCEPTED).or(EBIKE_BIKE_ORDER.HANDLE_STATE.eq(OrderHandleState.UNPROCESSED)))
.where(EBIKE_BIKE_ORDER.ORDER_TYPE.eq(BikeOrderType.DISPATCH)); .where(EBIKE_BIKE_ORDER.ORDER_TYPE.eq(BikeOrderType.DISPATCH));
List<EbikeBikeOrder> list = list(queryWrapper); List<EbikeBikeOrder> list = list(queryWrapper);
if (list == null) { if (list.isEmpty()) {
throw new EbikeException("列表中车辆工单均不存在或已作废"); throw new EbikeException("列表中车辆工单均不存在或已作废");
} }
queryWrapper.clear();
EbikeDispatchConfiguration dispatchConfiguration = ebikeDispatchConfigurationMapper.selectOneByQuery(queryWrapper); EbikeDispatchConfiguration dispatchConfiguration = ebikeDispatchConfigurationMapper.selectOneByQuery(queryWrapper);
for (EbikeBikeOrder bikeOrder : list) { for (EbikeBikeOrder bikeOrder : list) {
bikeOrder.setSiteId(dispatchVo.getSiteId()); bikeOrder.setSiteId(dispatchVo.getSiteId());