|
@@ -45,21 +45,19 @@ public class EventHandleController {
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
- *未处理事件查询 分页
|
|
|
|
|
|
+ *未处理事件查询
|
|
* @param request
|
|
* @param request
|
|
- * @param pageReqVo
|
|
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@GetMapping("/not-handle/list")
|
|
@GetMapping("/not-handle/list")
|
|
- @ApiOperation(tags = {"未处理事件"},value = "未处理事件查询-分页")
|
|
|
|
- public PageResult<List<EventOrderVO>> listNotHandle(HttpServletRequest request, @RequestHeader(value = "token") String token,
|
|
|
|
- PageReqVO pageReqVo){
|
|
|
|
|
|
+ @ApiOperation(tags = {"未处理事件"},value = "未处理事件查询")
|
|
|
|
+ public Result<List<EventOrderVO>> listNotHandle(HttpServletRequest request, @RequestHeader(value = "token") String token){
|
|
try {
|
|
try {
|
|
UserLogindConvertVO loginUser = WebPageUtils.getCurrentLoginedUser(request);
|
|
UserLogindConvertVO loginUser = WebPageUtils.getCurrentLoginedUser(request);
|
|
- IPage<EventOrderVO> pageResponse = this.bmsEventOrderService.listEvent(OrderStatusEnum.TODO.getValue(), null,loginUser ,pageReqVo);
|
|
|
|
- return PageResult.success(pageResponse.getRecords(),pageResponse.getCurrent(),pageResponse.getSize(),pageResponse.getTotal());
|
|
|
|
|
|
+ List<EventOrderVO> datas = this.bmsEventOrderService.listTodoOrder(OrderStatusEnum.TODO.getValue(), null,loginUser);
|
|
|
|
+ return PageResult.success(datas);
|
|
}catch (BDException e) {
|
|
}catch (BDException e) {
|
|
- log.error("未处理事件查询-分页列表出现异常",e);
|
|
|
|
|
|
+ log.error("未处理事件查询列表出现异常",e);
|
|
return PageResult.error(e.getMessage());
|
|
return PageResult.error(e.getMessage());
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error("事件处理: 未处理事件查询出现异常",e);
|
|
log.error("事件处理: 未处理事件查询出现异常",e);
|
|
@@ -185,7 +183,7 @@ public class EventHandleController {
|
|
}
|
|
}
|
|
@GetMapping("/getSmsTemplate/{orderId}")
|
|
@GetMapping("/getSmsTemplate/{orderId}")
|
|
@ApiOperation(tags = {"事件处理"},value = "查询要发送的短息内容")
|
|
@ApiOperation(tags = {"事件处理"},value = "查询要发送的短息内容")
|
|
- public Result<String> getChamberlain( @PathVariable("orderId") Long orderId){
|
|
|
|
|
|
+ public Result<String> getSmsTemplate( @PathVariable("orderId") Long orderId){
|
|
return Result.success("查询成功!",this.bmsEventOrderService.getSmsTemplate(orderId));
|
|
return Result.success("查询成功!",this.bmsEventOrderService.getSmsTemplate(orderId));
|
|
}
|
|
}
|
|
@PostMapping("/sendSms/{orderContactId}")
|
|
@PostMapping("/sendSms/{orderContactId}")
|
|
@@ -203,7 +201,7 @@ public class EventHandleController {
|
|
}
|
|
}
|
|
@GetMapping("/getCallRadio/{hisId}")
|
|
@GetMapping("/getCallRadio/{hisId}")
|
|
@ApiOperation(tags = {"事件处理"},value = "获取通话录音")
|
|
@ApiOperation(tags = {"事件处理"},value = "获取通话录音")
|
|
- public Result<Object> getCallRadio(HttpServletRequest request,@RequestHeader("token") String token,@PathVariable("hisId") Long hisId){
|
|
|
|
|
|
+ public Result<CcCallResultVO> getCallRadio(HttpServletRequest request,@RequestHeader("token") String token,@PathVariable("hisId") Long hisId){
|
|
CcCallResultVO ccCallResultVO = this.bmsEventOrderService.getCallRadio(hisId);
|
|
CcCallResultVO ccCallResultVO = this.bmsEventOrderService.getCallRadio(hisId);
|
|
if (ccCallResultVO != null) {
|
|
if (ccCallResultVO != null) {
|
|
return Result.success("获取通话录音!");
|
|
return Result.success("获取通话录音!");
|