|
|
|
@ -102,7 +102,7 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
IPage<AftersalesWorkOrderEntity> pages = aftersalesWorkOrderService.page(Condition.getPage(query), Condition.getQueryWrapper(aftersalesWorkOrder, AftersalesWorkOrderEntity.class)); |
|
|
|
|
return R.data(AftersalesWorkOrderWrapper.build().pageVO(pages)); |
|
|
|
|
}catch (Exception e ){ |
|
|
|
|
log.info("工单查询系统异常》》》{}",e.getMessage()); |
|
|
|
|
log.error("工单查询系统异常》》》{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -120,7 +120,7 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
IPage<AftersalesWorkOrderEntity> pages = aftersalesWorkOrderService.pageListOwn(aftersalesWorkOrder, Condition.getPage(query)); |
|
|
|
|
return R.data(AftersalesWorkOrderWrapper.build().pageVO(pages)); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("工单查询系统异常》》》{}",e.getMessage()); |
|
|
|
|
log.error("工单查询系统异常》》》{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -143,7 +143,7 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
IPage<AftersalesSettlementEntity> pages = aftersalesWorkOrderService.getListSettlement(aftersalesWorkOrder, Condition.getPage(query)); |
|
|
|
|
return R.data(pages); |
|
|
|
|
}catch(Exception e){ |
|
|
|
|
log.info("查询异常工单理赔信息>>{}",e.getMessage()); |
|
|
|
|
log.error("查询异常工单理赔信息>>{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -165,8 +165,10 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
return R.status(aftersalesWorkOrderService.addProcessingResults(aftersalesWorkOrderDTO)); |
|
|
|
|
}catch (ServiceException s){ |
|
|
|
|
return R.fail(s.getMessage()); |
|
|
|
|
}catch(Exception e){ |
|
|
|
|
log.info("营业部提交异常工单处理结果>>>{}",e.getMessage()); |
|
|
|
|
log.error("营业部提交异常工单处理结果>>>{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -211,7 +213,7 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
List<User> list = aftersalesWorkOrderService.getCustomerServicePersonnel(); |
|
|
|
|
return R.data(list); |
|
|
|
|
}catch(Exception e){ |
|
|
|
|
log.info("查询客服人员信息>>>>{}",e.getMessage()); |
|
|
|
|
log.error("查询客服人员信息>>>>{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -237,11 +239,10 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
throw new ServiceException("内容不能为空!!"); |
|
|
|
|
} |
|
|
|
|
return R.status(aftersalesWorkOrderService.savaSurveyRecord(aftersalesWorkOrderDTO)); |
|
|
|
|
}catch (RuntimeException e ){ |
|
|
|
|
log.info("内容不能为空!!"); |
|
|
|
|
throw new ServiceException("内容不能为空!!"); |
|
|
|
|
}catch (ServiceException s){ |
|
|
|
|
return R.fail(s.getMessage()); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info(">新增调查记录>>{}",e.getMessage()); |
|
|
|
|
log.error(">新增调查记录>>{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -262,7 +263,7 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
AftersalesWorkOrderVO list = aftersalesWorkOrderService.getSurveyRecord(aftersalesWorkOrderDTO); |
|
|
|
|
return R.data(list); |
|
|
|
|
}catch(Exception e){ |
|
|
|
|
log.info("查询调查记录>>>{}",e.getMessage()); |
|
|
|
|
log.error("查询调查记录>>>{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -285,7 +286,7 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
AftersalesWorkOrderVO list = aftersalesWorkOrderService.getTrackRecord(aftersalesWorkOrderDTO); |
|
|
|
|
return R.data(list); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("查询全部跟踪记录>>>{}",e.getMessage()); |
|
|
|
|
log.error("查询全部跟踪记录>>>{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!!"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -302,7 +303,7 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
List<User> list = aftersalesWorkOrderService.getBusinessDepartmentUser(warehouseId); |
|
|
|
|
return R.data(list); |
|
|
|
|
}catch(Exception e){ |
|
|
|
|
log.info("查询营业部责任人人员信息》》{}",e.getMessage()); |
|
|
|
|
log.error("查询营业部责任人人员信息》》{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -325,8 +326,10 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
try{ |
|
|
|
|
R r = aftersalesWorkOrderService.updateAssignCustomerService(aftersalesWorkOrderDTO); |
|
|
|
|
return R.success("提交成功!"); |
|
|
|
|
}catch (ServiceException s){ |
|
|
|
|
return R.fail(s.getMessage()); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("异常工单分配处理客服信息》》》{}",e.getMessage()); |
|
|
|
|
log.error("异常工单分配处理客服信息》》》{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -349,8 +352,10 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
try { |
|
|
|
|
R r = aftersalesWorkOrderService.updateAssignArbitrateService(aftersalesWorkOrderDTO); |
|
|
|
|
return R.success("提交成功!"); |
|
|
|
|
}catch (ServiceException s){ |
|
|
|
|
return R.fail(s.getMessage()); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("异常工单仲裁 分配处理客服信息>>{}",e.getMessage()); |
|
|
|
|
log.error("异常工单仲裁 分配处理客服信息>>{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -389,8 +394,10 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
public R addCompletionEnd(@Valid @RequestBody List<AftersalesWorkOrderDTO> aftersalesWorkOrder) { |
|
|
|
|
try { |
|
|
|
|
return R.status(aftersalesWorkOrderService.addCompletionEnd(aftersalesWorkOrder)); |
|
|
|
|
}catch (ServiceException s){ |
|
|
|
|
return R.fail(s.getMessage()); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("客服完结处理>>>{}",e.getMessage()); |
|
|
|
|
log.error("客服完结处理>>>{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -409,8 +416,10 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
return R.status(aftersalesWorkOrderService.updateCompletionEnd(aftersalesWorkOrder)); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("修改完结处理》》》{}",e.getMessage()); |
|
|
|
|
} catch (ServiceException s){ |
|
|
|
|
return R.fail(s.getMessage()); |
|
|
|
|
} catch (Exception e){ |
|
|
|
|
log.error("修改完结处理》》》{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -432,8 +441,10 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
return R.status(aftersalesWorkOrderService.updateByIdAppel(aftersalesAppeal)); |
|
|
|
|
}catch (ServiceException s){ |
|
|
|
|
return R.fail(s.getMessage()); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("客服操作确定修改》》》{}",e.getMessage()); |
|
|
|
|
log.error("客服操作确定修改》》》{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -453,7 +464,7 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
AftersalesWorkOrderVO workOrderVO = aftersalesWorkOrderService.getProcessingResults(aftersalesWorkOrder); |
|
|
|
|
return R.data(workOrderVO); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("查询详情全部信息数据》》》{}",e.getMessage()); |
|
|
|
|
log.error("查询详情全部信息数据》》》{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -472,8 +483,10 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
return R.status(aftersalesWorkOrderService.updateArbitrate(aftersalesWorkOrder)); |
|
|
|
|
}catch (ServiceException s){ |
|
|
|
|
return R.fail(s.getMessage()); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("申请仲裁》》》{}",e.getMessage()); |
|
|
|
|
log.error("申请仲裁》》》{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -492,8 +505,10 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
return R.status(aftersalesWorkOrderService.addArbitrateEnd(aftersalesWorkOrder)); |
|
|
|
|
}catch (ServiceException s){ |
|
|
|
|
return R.fail(s.getMessage()); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("客服仲裁完结操作》》》{}",e.getMessage()); |
|
|
|
|
log.error("客服仲裁完结操作》》》{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -510,7 +525,7 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
try { |
|
|
|
|
return R.status(aftersalesWorkOrderService.updateById(aftersalesWorkOrder)); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("工单修改异常》》》{}",e.getMessage()); |
|
|
|
|
log.error("工单修改异常》》》{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -530,8 +545,10 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
return R.status( aftersalesWorkOrderService.updateManagerConfirmed(aftersalesWorkOrder) ); |
|
|
|
|
}catch (ServiceException s){ |
|
|
|
|
return R.fail(s.getMessage()); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("客服经理确定数据》》》{}",e.getMessage()); |
|
|
|
|
log.error("客服经理确定数据》》》{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -550,8 +567,10 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
return R.status(aftersalesWorkOrderService.updateWorkOrderStatus(aftersalesWorkOrder)); |
|
|
|
|
}catch (ServiceException s){ |
|
|
|
|
return R.fail(s.getMessage()); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("批量修改工单状态为已处理>>{}",e.getMessage()); |
|
|
|
|
log.error("批量修改工单状态为已处理>>{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -570,8 +589,10 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
} |
|
|
|
|
try{ |
|
|
|
|
return aftersalesWorkOrderService.getUpdateWorkList(aftersalesWorkOrder); |
|
|
|
|
}catch (ServiceException s){ |
|
|
|
|
return R.fail(s.getMessage()); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("填写钉钉流程号异常》》{}",e.getMessage()); |
|
|
|
|
log.error("填写钉钉流程号异常》》{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -600,8 +621,10 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
try { |
|
|
|
|
aftersalesWorkOrder.setInitiationIdentification("PC"); |
|
|
|
|
return R.status(aftersalesWorkOrderService.saveOrUpdateOwn(aftersalesWorkOrder)); |
|
|
|
|
}catch (ServiceException s){ |
|
|
|
|
return R.fail(s.getMessage()); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("工单提交异常》》》{}",e.getMessage()); |
|
|
|
|
log.error("工单提交异常》》》{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -624,8 +647,10 @@ public class AftersalesWorkOrderController extends BladeController {
|
|
|
|
|
try { |
|
|
|
|
IPage<AftersalesWorkOrderVO> list= aftersalesWorkOrderService.getPendingWorkOrder(aftersalesWorkOrder,Condition.getPage(query)); |
|
|
|
|
return R.data(list); |
|
|
|
|
}catch (ServiceException s){ |
|
|
|
|
return R.fail(s.getMessage()); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("仓库查询待处理的异常工单》》》{}",e.getMessage()); |
|
|
|
|
log.error("仓库查询待处理的异常工单》》》{}",e.getMessage()); |
|
|
|
|
return R.fail("系统异常!!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|