소스 검색

预约优化

fanzherong_v 2 주 전
부모
커밋
781674e914

+ 2 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizappointmentrecord/service/impl/BizAppointmentRecordServiceImpl.java

@@ -357,6 +357,7 @@ public class BizAppointmentRecordServiceImpl extends ServiceImpl<BizAppointmentR
                 BizSupplierTransport transport = bizSupplierTransportService.getOne(new QueryWrapper<BizSupplierTransport>().lambda().
                         eq(BizSupplierTransport::getSupplierId, bizOrder.getSupplierId()).
                         eq(BizSupplierTransport::getTransportNo, bizAppointmentRecordAddParam.getLicenseNumber()).
+                        eq(BizSupplierTransport::getAuditStatus,"2").
                         last("limit 1"));
                 if(ObjectUtil.isNull(transport)){
                     throw new CommonException("该车辆没有绑定在供应商下,不可预约!");
@@ -469,6 +470,7 @@ public class BizAppointmentRecordServiceImpl extends ServiceImpl<BizAppointmentR
                 BizSupplierTransport transport = bizSupplierTransportService.getOne(new QueryWrapper<BizSupplierTransport>().lambda().
                         eq(BizSupplierTransport::getSupplierId, bizOrder.getSupplierId()).
                         eq(BizSupplierTransport::getTransportNo, bizAppointmentRecordEditParam.getLicenseNumber()).
+                        eq(BizSupplierTransport::getAuditStatus,"2").
                         last("limit 1"));
                 if(ObjectUtil.isNull(transport)){
                     throw new CommonException("该车辆没有绑定在供应商下,不可预约!");