|
@@ -736,15 +736,17 @@ public class BmsEventOrderService {
|
|
|
queryWrapper.lambda().eq(CareEventOrderContactStatus::getOrderId,orderId).eq(CareEventOrderContactStatus::getContactPhone,contactPhone);
|
|
|
CareEventOrderContactStatus contact = this.careEventOrderContactStatusService.getOne(queryWrapper);
|
|
|
|
|
|
+ if(contact != null) {
|
|
|
+ UpdateWrapper<CareEventOrderHandleHis> updateWrapper2 = new UpdateWrapper<>();
|
|
|
+ updateWrapper2.lambda().eq(CareEventOrderHandleHis::getOrderId, orderId)
|
|
|
+ .eq(CareEventOrderHandleHis::getLogType,LogTypeEnum.VOTICE.getValue())
|
|
|
+ .eq(CareEventOrderHandleHis::getLogObjectId,contact.getContactId())
|
|
|
+ .eq(CareEventOrderHandleHis::getLogResult,"语音通知")
|
|
|
+ .set(CareEventOrderHandleHis::getVoiceCallStatus, status)
|
|
|
+ .set(CareEventOrderHandleHis::getVoiceFailureReason, failureReason);
|
|
|
+ this.careEventOrderHandleHisService.update(updateWrapper2);
|
|
|
+ }
|
|
|
|
|
|
- UpdateWrapper<CareEventOrderHandleHis> updateWrapper2 = new UpdateWrapper<>();
|
|
|
- updateWrapper2.lambda().eq(CareEventOrderHandleHis::getOrderId, orderId)
|
|
|
- .eq(CareEventOrderHandleHis::getLogType,LogTypeEnum.VOTICE.getValue())
|
|
|
- .eq(CareEventOrderHandleHis::getLogObjectId,contact.getContactId())
|
|
|
- .eq(CareEventOrderHandleHis::getLogResult,"语音通知")
|
|
|
- .set(CareEventOrderHandleHis::getVoiceCallStatus, status)
|
|
|
- .set(CareEventOrderHandleHis::getVoiceFailureReason, failureReason);
|
|
|
- this.careEventOrderHandleHisService.update(updateWrapper2);
|
|
|
|
|
|
return this.careEventOrderContactStatusService.update(updateWrapper);
|
|
|
}
|