|
|
@@ -1933,4 +1933,33 @@ public class ApiController extends BaseController {
|
|
|
}
|
|
|
return AjaxResult.success("成功追加" + successCount + "个名单",callPhoneList);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 手动同步手动外呼记录
|
|
|
+ * @param ids
|
|
|
+ */
|
|
|
+ @PostMapping(value ="/outboundcdr/manualPullTest")
|
|
|
+ @ResponseBody
|
|
|
+ public AjaxResult outboundcdrManualPullTest(@RequestBody List<String> ids) {
|
|
|
+ List<CcOutboundCdr> list = outboundCdrService.selectCcOutboundCdrByIds(ids);
|
|
|
+ if(!CollectionUtils.isEmpty(list)){
|
|
|
+ for (CcOutboundCdr outboundCdr : list){
|
|
|
+ if(StringUtils.isNotEmpty(outboundCdr.getCaller())){
|
|
|
+ try {
|
|
|
+ outboundCdr.setCaller(DESUtil.encrypt(URLEncoder.encode(outboundCdr.getCaller(), "UTF-8")));
|
|
|
+ } catch (Throwable e) {
|
|
|
+ outboundCdr.setCaller(null);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotEmpty(outboundCdr.getCallee())){
|
|
|
+ try {
|
|
|
+ outboundCdr.setCallee(DESUtil.encrypt(URLEncoder.encode(outboundCdr.getCallee(), "UTF-8")));
|
|
|
+ } catch (Throwable e) {
|
|
|
+ outboundCdr.setCallee(null);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return AjaxResult.success("成功获取" + list.size() + "条数据",list);
|
|
|
+ }
|
|
|
}
|