|
@@ -0,0 +1,56 @@
|
|
|
|
|
+package com.fs.admin.controller.audit;
|
|
|
|
|
+
|
|
|
|
|
+import com.fs.common.annotation.Log;
|
|
|
|
|
+import com.fs.common.core.controller.BaseController;
|
|
|
|
|
+import com.fs.common.core.domain.AjaxResult;
|
|
|
|
|
+import com.fs.common.core.page.TableDataInfo;
|
|
|
|
|
+import com.fs.common.enums.BusinessType;
|
|
|
|
|
+import com.fs.common.utils.poi.ExcelUtil;
|
|
|
|
|
+import com.fs.company.domain.CompanyVoiceRobotic;
|
|
|
|
|
+import com.fs.company.service.ICompanyVoiceRoboticService;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
+
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * @description: 外呼
|
|
|
|
|
+ * @author: Xgb
|
|
|
|
|
+ * @createDate: 2026/5/27
|
|
|
|
|
+ * @version: 1.0
|
|
|
|
|
+ */
|
|
|
|
|
+@RestController
|
|
|
|
|
+@RequestMapping("/admin/voice-robotic")
|
|
|
|
|
+public class AdminVoiceRoboticController extends BaseController {
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private ICompanyVoiceRoboticService companyVoiceRoboticService;
|
|
|
|
|
+
|
|
|
|
|
+ // ========== [Admin] 外呼任务列表 /admin/voice-robotic ==========
|
|
|
|
|
+ @GetMapping("/list")
|
|
|
|
|
+ public TableDataInfo adminVoiceRoboticList(com.fs.company.domain.CompanyVoiceRobotic param) {
|
|
|
|
|
+ startPage();
|
|
|
|
|
+ List<CompanyVoiceRobotic> list = companyVoiceRoboticService != null ?
|
|
|
|
|
+ companyVoiceRoboticService.selectCompanyVoiceRoboticList(param) : new ArrayList<>();
|
|
|
|
|
+ return getDataTable(list);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping("/{id}")
|
|
|
|
|
+ public AjaxResult adminVoiceRoboticGet(@PathVariable Long id) {
|
|
|
|
|
+ if (companyVoiceRoboticService == null) return AjaxResult.error("服务不可用");
|
|
|
|
|
+ return AjaxResult.success(companyVoiceRoboticService.selectCompanyVoiceRoboticById(id));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Log(title = "导出外呼任务", businessType = BusinessType.EXPORT)
|
|
|
|
|
+ @GetMapping("/export")
|
|
|
|
|
+ public AjaxResult export(CompanyVoiceRobotic param) {
|
|
|
|
|
+ if (companyVoiceRoboticService == null) return AjaxResult.error("服务不可用");
|
|
|
|
|
+ List<CompanyVoiceRobotic> list = companyVoiceRoboticService.selectCompanyVoiceRoboticList(param);
|
|
|
|
|
+ ExcelUtil<CompanyVoiceRobotic> util = new ExcelUtil<>(CompanyVoiceRobotic.class);
|
|
|
|
|
+ return util.exportExcel(list, "外呼任务数据");
|
|
|
|
|
+ }
|
|
|
|
|
+}
|