master
ljw 2026-01-08 13:45:18 +08:00
commit 9869fe9f73
1 changed files with 6 additions and 1 deletions

View File

@ -584,6 +584,7 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
return PageResult.of(baseMapper.paging(page, ew));
}
@Transactional(rollbackFor = Exception.class)
public void audit(AuditOrderParam auditOrderParam) {
OrderPagingResult detail = detail(auditOrderParam.getId());
Assert.notNull(detail, () -> Exceptions.clierr("订单不存在"));
@ -670,6 +671,10 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
.setCertificateSn(certificateSn)
.setCheckStatus(checkStatus)
);
if (newAuditStatus == AuditStatus.BoHui) {
baseMapper.busyDriver(detail.getDriverId(), Boolean.FALSE);
baseMapper.busyTruck(detail.getTruckId(), Boolean.FALSE);
}
OrderCategory orderCategory = detail.getOrderCategory();
if (orderCategory == OrderCategory.DuanBoRu) return;
// auditStatus为市待审核状态通知市通过状态通知司机