|
@@ -732,16 +732,19 @@ public class BmsEventOrderService {
|
|
|
*/
|
|
|
public boolean updateOrderContactStatus4Callback(String callId, Long orderId,String phone, Integer status,String failureReason) {
|
|
|
|
|
|
+ //联系人的,care_event_order_contact_status只有联系人,没有管家
|
|
|
UpdateWrapper<CareEventOrderContactStatus> updateWrapper = new UpdateWrapper<>();
|
|
|
updateWrapper.lambda().eq(CareEventOrderContactStatus::getOrderId, orderId).eq(CareEventOrderContactStatus::getContactPhone,phone)
|
|
|
.set(CareEventOrderContactStatus::getStatus, status);
|
|
|
|
|
|
+ //历史表的
|
|
|
UpdateWrapper<CareEventOrderHandleHis> updateWrapper2 = new UpdateWrapper<>();
|
|
|
updateWrapper2.lambda().eq(CareEventOrderHandleHis::getVoiceCallId,callId)
|
|
|
.set(CareEventOrderHandleHis::getVoiceCallStatus, status)
|
|
|
.set(CareEventOrderHandleHis::getVoiceFailureReason, failureReason);
|
|
|
this.careEventOrderHandleHisService.update(updateWrapper2);
|
|
|
|
|
|
+ //管家的
|
|
|
UpdateWrapper<CareEventOrderChamb> updateWrapper3 = new UpdateWrapper<>();
|
|
|
updateWrapper3.lambda().eq(CareEventOrderChamb::getOrderId,orderId).eq(CareEventOrderChamb::getPhone,phone)
|
|
|
.set(CareEventOrderChamb::getVoiceCallStatus, status);
|