|
@@ -591,8 +591,14 @@ public class BizRecordServiceImpl extends ServiceImpl<BizRecordMapper, BizRecord
|
|
|
//修改预约记录状态
|
|
|
BizAppointmentRecord appointmentRecord = bizAppointmentRecordService.getById(bizRecord.getAppointmentId());
|
|
|
if(ObjectUtil.isNotNull(appointmentRecord)){
|
|
|
- //司机签名后修改为可入场状态
|
|
|
- appointmentRecord.setStatus("9");
|
|
|
+ BizConfig bizConfig = bizConfigService.getOne(new QueryWrapper<BizConfig>().lambda().last("limit 1"));
|
|
|
+ if(StringUtils.equals(bizConfig.getAccessControlSwitch(),"1")){
|
|
|
+ //开启门禁校验
|
|
|
+ //司机签名后修改为可入场状态
|
|
|
+ appointmentRecord.setStatus("9");
|
|
|
+ }else{
|
|
|
+ appointmentRecord.setStatus("10");
|
|
|
+ }
|
|
|
bizAppointmentRecordService.updateById(appointmentRecord);
|
|
|
}
|
|
|
|