|
@@ -4,11 +4,13 @@ import cn.hutool.core.lang.TypeReference;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.gree.mall.manager.annotation.ZfireList;
|
|
import com.gree.mall.manager.annotation.ZfireList;
|
|
|
|
+import com.gree.mall.manager.bean.common.CallRecordOrderVo;
|
|
import com.gree.mall.manager.bean.common.CallRecordVo;
|
|
import com.gree.mall.manager.bean.common.CallRecordVo;
|
|
import com.gree.mall.manager.bean.workorder.IncreVO;
|
|
import com.gree.mall.manager.bean.workorder.IncreVO;
|
|
import com.gree.mall.manager.exception.RemoteServiceException;
|
|
import com.gree.mall.manager.exception.RemoteServiceException;
|
|
import com.gree.mall.manager.helper.ResponseHelper;
|
|
import com.gree.mall.manager.helper.ResponseHelper;
|
|
import com.gree.mall.manager.logic.unicom.UnicomLogic;
|
|
import com.gree.mall.manager.logic.unicom.UnicomLogic;
|
|
|
|
+import com.gree.mall.manager.plus.entity.CallRecord;
|
|
import com.gree.mall.manager.plus.entity.CallSendRecord;
|
|
import com.gree.mall.manager.plus.entity.CallSendRecord;
|
|
import com.gree.mall.manager.zfire.bean.ZfireParamBean;
|
|
import com.gree.mall.manager.zfire.bean.ZfireParamBean;
|
|
import com.gree.mall.manager.zfire.util.FieldUtils;
|
|
import com.gree.mall.manager.zfire.util.FieldUtils;
|
|
@@ -38,7 +40,7 @@ public class CallRecordController {
|
|
) throws RemoteServiceException {
|
|
) throws RemoteServiceException {
|
|
ZfireParamBean zfireParam = FieldUtils.supplyParam(zfireParamBean);
|
|
ZfireParamBean zfireParam = FieldUtils.supplyParam(zfireParamBean);
|
|
IPage<CallRecordVo> increVOIPage = unicomLogic.list(new Page(zfireParam.getPageNum(), zfireParam.getPageSize()), zfireParam);
|
|
IPage<CallRecordVo> increVOIPage = unicomLogic.list(new Page(zfireParam.getPageNum(), zfireParam.getPageSize()), zfireParam);
|
|
- return ResponseHelper.success(increVOIPage, new TypeReference<IncreVO>() {});
|
|
|
|
|
|
+ return ResponseHelper.success(increVOIPage, new TypeReference<CallRecordVo>() {});
|
|
}
|
|
}
|
|
|
|
|
|
@PostMapping("/list/export")
|
|
@PostMapping("/list/export")
|
|
@@ -74,4 +76,32 @@ public class CallRecordController {
|
|
unicomLogic.commonlnte(phone,orderBaseId,flag);
|
|
unicomLogic.commonlnte(phone,orderBaseId,flag);
|
|
return ResponseHelper.success();
|
|
return ResponseHelper.success();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @ZfireList
|
|
|
|
+ @PostMapping("/listOrder")
|
|
|
|
+ @ApiOperation(value = "工单通话记录列表")
|
|
|
|
+ public ResponseHelper<IPage<CallRecordOrderVo>> listOrder(
|
|
|
|
+ @RequestBody ZfireParamBean zfireParamBean
|
|
|
|
+ ) throws RemoteServiceException {
|
|
|
|
+ ZfireParamBean zfireParam = FieldUtils.supplyParam(zfireParamBean);
|
|
|
|
+ IPage<CallRecordOrderVo> increVOIPage = unicomLogic.listOrder(new Page(zfireParam.getPageNum(), zfireParam.getPageSize()), zfireParam);
|
|
|
|
+ return ResponseHelper.success(increVOIPage, new TypeReference<CallRecordOrderVo>() {});
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @PostMapping("/list/orderExport")
|
|
|
|
+ @ApiOperation(value = "工单通话记录列表导出")
|
|
|
|
+ public void listOrderExport(
|
|
|
|
+ @RequestBody ZfireParamBean zfireParamBean,
|
|
|
|
+ HttpServletRequest request,
|
|
|
|
+ HttpServletResponse response
|
|
|
|
+ ) throws Exception {
|
|
|
|
+ //1.组装查询条件
|
|
|
|
+ ZfireParamBean zfireParam = FieldUtils.supplyParam(zfireParamBean);
|
|
|
|
+ //2.查询要导出的内容
|
|
|
|
+ IPage<CallRecordOrderVo> increVOIPage = unicomLogic.listOrder(new Page(zfireParam.getPageNum(), zfireParam.getPageSize()), zfireParam);
|
|
|
|
+ //3.导出
|
|
|
|
+ FieldUtils.exportData(increVOIPage.getRecords(), zfireParam.getExportFields(), request, response);
|
|
|
|
+ }
|
|
}
|
|
}
|