|
@@ -3,12 +3,15 @@ package com.fs.company.controller.company;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.Collections;
|
|
import java.util.Collections;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
+import java.util.Map;
|
|
|
import java.util.Set;
|
|
import java.util.Set;
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
import com.fs.common.utils.StringUtils;
|
|
import com.fs.common.utils.StringUtils;
|
|
|
import com.fs.company.domain.CompanyWxClient;
|
|
import com.fs.company.domain.CompanyWxClient;
|
|
|
|
|
+import com.fs.company.vo.CompanyVoiceRoboticCallLogAddWxExportVO;
|
|
|
import com.fs.company.vo.CompanyVoiceRoboticCallLogAddwxVO;
|
|
import com.fs.company.vo.CompanyVoiceRoboticCallLogAddwxVO;
|
|
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -73,7 +76,46 @@ public class CompanyVoiceRoboticCallLogAddwxController extends BaseController
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
-//
|
|
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 查询调用日志_加微信列表
|
|
|
|
|
+ */
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('company:addwxlog:list')")
|
|
|
|
|
+ @GetMapping("/listAll")
|
|
|
|
|
+ public TableDataInfo listAll(CompanyVoiceRoboticCallLogAddwx companyVoiceRoboticCallLogAddwx)
|
|
|
|
|
+ {
|
|
|
|
|
+ startPage();
|
|
|
|
|
+ List<CompanyVoiceRoboticCallLogAddwxVO> list = companyVoiceRoboticCallLogAddwxService.listAll(companyVoiceRoboticCallLogAddwx);
|
|
|
|
|
+ TableDataInfo dataTable = getDataTable(list);
|
|
|
|
|
+ Map<String, Long> countMap = companyVoiceRoboticCallLogAddwxService.countListAll(companyVoiceRoboticCallLogAddwx);
|
|
|
|
|
+ if (countMap != null) {
|
|
|
|
|
+ dataTable.setTotalRecordCount(countMap.getOrDefault("totalRecordCount", 0L));
|
|
|
|
|
+ dataTable.setSuccessRecordCount(countMap.getOrDefault("successRecordCount", 0L));
|
|
|
|
|
+ dataTable.setTodayRecordCount(countMap.getOrDefault("todayRecordCount", 0L));
|
|
|
|
|
+ }
|
|
|
|
|
+ return dataTable;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 导出调用日志_加微信列表
|
|
|
|
|
+ */
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('company:addwxlog:export')")
|
|
|
|
|
+ @Log(title = "调用日志_加微信", businessType = BusinessType.EXPORT)
|
|
|
|
|
+ @GetMapping("/export")
|
|
|
|
|
+ public AjaxResult export(CompanyVoiceRoboticCallLogAddwx companyVoiceRoboticCallLogAddwx)
|
|
|
|
|
+ {
|
|
|
|
|
+ List<CompanyVoiceRoboticCallLogAddwxVO> list = companyVoiceRoboticCallLogAddwxService.listAll(companyVoiceRoboticCallLogAddwx);
|
|
|
|
|
+ List<CompanyVoiceRoboticCallLogAddWxExportVO> exportList = list.stream().map(item -> {
|
|
|
|
|
+ CompanyVoiceRoboticCallLogAddWxExportVO vo = new CompanyVoiceRoboticCallLogAddWxExportVO();
|
|
|
|
|
+ BeanUtils.copyProperties(item, vo);
|
|
|
|
|
+ return vo;
|
|
|
|
|
+ }).collect(Collectors.toList());
|
|
|
|
|
+ ExcelUtil<CompanyVoiceRoboticCallLogAddWxExportVO> util = new ExcelUtil<CompanyVoiceRoboticCallLogAddWxExportVO>(CompanyVoiceRoboticCallLogAddWxExportVO.class);
|
|
|
|
|
+ return util.exportExcel(exportList, "调用日志_加微信数据");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// /**
|
|
// /**
|
|
|
// * 导出调用日志_加微信列表
|
|
// * 导出调用日志_加微信列表
|
|
|
// */
|
|
// */
|
|
@@ -86,6 +128,8 @@ public class CompanyVoiceRoboticCallLogAddwxController extends BaseController
|
|
|
// ExcelUtil<CompanyVoiceRoboticCallLogAddwx> util = new ExcelUtil<CompanyVoiceRoboticCallLogAddwx>(CompanyVoiceRoboticCallLogAddwx.class);
|
|
// ExcelUtil<CompanyVoiceRoboticCallLogAddwx> util = new ExcelUtil<CompanyVoiceRoboticCallLogAddwx>(CompanyVoiceRoboticCallLogAddwx.class);
|
|
|
// return util.exportExcel(list, "调用日志_加微信数据");
|
|
// return util.exportExcel(list, "调用日志_加微信数据");
|
|
|
// }
|
|
// }
|
|
|
|
|
+//
|
|
|
|
|
+
|
|
|
//
|
|
//
|
|
|
// /**
|
|
// /**
|
|
|
// * 获取调用日志_加微信详细信息
|
|
// * 获取调用日志_加微信详细信息
|