Merge branch 'dev' of https://git.njzscloud.com/lzq/njzscloud into dev
commit
9869fe9f73
|
|
@ -118,7 +118,7 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
|
||||||
private final BizTruckService bizTruckService;
|
private final BizTruckService bizTruckService;
|
||||||
private final DiscountManageService discountManageService;
|
private final DiscountManageService discountManageService;
|
||||||
private final HsoaService hsoaService;
|
private final HsoaService hsoaService;
|
||||||
private final DictItemService dictItemService;
|
private final DictItemService dictItemService;
|
||||||
private final AtomicBoolean test_thread_running = new AtomicBoolean(false);
|
private final AtomicBoolean test_thread_running = new AtomicBoolean(false);
|
||||||
Thread test_thread = null;
|
Thread test_thread = null;
|
||||||
@Value("${app.check-gps:false}")
|
@Value("${app.check-gps:false}")
|
||||||
|
|
@ -584,6 +584,7 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
|
||||||
return PageResult.of(baseMapper.paging(page, ew));
|
return PageResult.of(baseMapper.paging(page, ew));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void audit(AuditOrderParam auditOrderParam) {
|
public void audit(AuditOrderParam auditOrderParam) {
|
||||||
OrderPagingResult detail = detail(auditOrderParam.getId());
|
OrderPagingResult detail = detail(auditOrderParam.getId());
|
||||||
Assert.notNull(detail, () -> Exceptions.clierr("订单不存在"));
|
Assert.notNull(detail, () -> Exceptions.clierr("订单不存在"));
|
||||||
|
|
@ -670,6 +671,10 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
|
||||||
.setCertificateSn(certificateSn)
|
.setCertificateSn(certificateSn)
|
||||||
.setCheckStatus(checkStatus)
|
.setCheckStatus(checkStatus)
|
||||||
);
|
);
|
||||||
|
if (newAuditStatus == AuditStatus.BoHui) {
|
||||||
|
baseMapper.busyDriver(detail.getDriverId(), Boolean.FALSE);
|
||||||
|
baseMapper.busyTruck(detail.getTruckId(), Boolean.FALSE);
|
||||||
|
}
|
||||||
OrderCategory orderCategory = detail.getOrderCategory();
|
OrderCategory orderCategory = detail.getOrderCategory();
|
||||||
if (orderCategory == OrderCategory.DuanBoRu) return;
|
if (orderCategory == OrderCategory.DuanBoRu) return;
|
||||||
// auditStatus为市待审核状态通知市,通过状态通知司机
|
// auditStatus为市待审核状态通知市,通过状态通知司机
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue