From 0b02577ab12ac83a0530b7e0495b513dd0cdabca Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期二, 02 七月 2024 11:25:08 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java | 42 ++++++++++++++++++++++++------------------ 1 files changed, 24 insertions(+), 18 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrTaskSingleController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java similarity index 65% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrTaskSingleController.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java index 8bfbfd5..ae992bf 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrTaskSingleController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java @@ -11,9 +11,7 @@ import com.ruoyi.common.utils.PageUtils; import com.ruoyi.common.utils.poi.ExcelUtil; import com.smartor.domain.*; -import com.smartor.domain.robot.back.RobotAIDialogBack; -import com.smartor.domain.robot.back.RobotCallBack; -import com.smartor.service.IIvrTaskSingleService; +import com.smartor.service.IServiceSubtaskService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; @@ -33,10 +31,10 @@ @Slf4j @Api(description = "鍗曚竴浠诲姟锛堥殢璁垮鏁欙級") @RestController -@RequestMapping("/smartor/tasksingle") -public class IvrTaskSingleController extends BaseController { +@RequestMapping("/smartor/serviceSubtask") +public class ServiceSubtaskController extends BaseController { @Autowired - private IIvrTaskSingleService ivrTaskcallService; + private IServiceSubtaskService serviceSubtaskService; /** * 鏌ヨ鎮h�呴殢璁夸俊鎭� @@ -44,9 +42,9 @@ @ApiOperation("鏌ヨ鎮h�呴殢璁夸俊鎭�") @PreAuthorize("@ss.hasPermi('system:taskcall:list')") @PostMapping("/patItem") - public TableDataInfo patItem(@RequestBody IvrTaskSingle ivrTaskcall) { + public TableDataInfo patItem(@RequestBody ServiceSubtask ivrTaskcall) { PageUtils.startPageByPost(ivrTaskcall.getPageNum(), ivrTaskcall.getPageSize()); - return getDataTable(ivrTaskcallService.patItem(ivrTaskcall)); + return getDataTable(serviceSubtaskService.patItem(ivrTaskcall)); } /** @@ -55,9 +53,9 @@ @PreAuthorize("@ss.hasPermi('system:taskcall:export')") @Log(title = "鍗曚竴浠诲姟锛堥殢璁垮鏁欙級", businessType = BusinessType.EXPORT) @PostMapping("/export") - public void export(HttpServletResponse response, IvrTaskSingle ivrTaskcall) { - List<IvrTaskSingle> list = ivrTaskcallService.selectIvrTaskcallList(ivrTaskcall); - ExcelUtil<IvrTaskSingle> util = new ExcelUtil<IvrTaskSingle>(IvrTaskSingle.class); + public void export(HttpServletResponse response, ServiceSubtask ivrTaskcall) { + List<ServiceSubtask> list = serviceSubtaskService.selectServiceSubtaskList(ivrTaskcall); + ExcelUtil<ServiceSubtask> util = new ExcelUtil<ServiceSubtask>(ServiceSubtask.class); util.exportExcel(response, list, "鍗曚竴浠诲姟锛堥殢璁匡級鏁版嵁"); } @@ -67,7 +65,7 @@ @PreAuthorize("@ss.hasPermi('system:taskcall:query')") @GetMapping(value = "/getInfo/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { - return success(ivrTaskcallService.selectIvrTaskcallById(id)); + return success(serviceSubtaskService.selectServiceSubtaskById(id)); } /** @@ -77,12 +75,12 @@ @PreAuthorize("@ss.hasPermi('system:task:add')") @Log(title = "鍗曚竴浠诲姟锛堥殢璁匡級", businessType = BusinessType.INSERT) @PostMapping("/insertOrUpdateTask") - public AjaxResult insertOrUpdateHeTask(@RequestBody IvrTaskVO ivrTaskVO) { + public AjaxResult insertOrUpdateHeTask(@RequestBody ServiceTaskVO ivrTaskVO) { LoginUser loginUser = getLoginUser(); SysUser user = loginUser.getUser(); ivrTaskVO.setCreateBy(user.getNickName()); - return toAjax(ivrTaskcallService.insertOrUpdateTask(ivrTaskVO)); + return toAjax(serviceSubtaskService.insertOrUpdateTask(ivrTaskVO)); } /** @@ -90,10 +88,10 @@ */ @ApiOperation("鏍规嵁鏉′欢鏌ヨ浠诲姟淇℃伅") @PostMapping("/queryTaskByCondition") - public AjaxResult queryTaskByCondition(@RequestBody IvrTaskSingleVO ivrTaskcallVO) { + public AjaxResult queryTaskByCondition(@RequestBody ServiceSubtaskVO ivrTaskcallVO) { //鏍规嵁鍏ュ弬鏌ヨ淇℃伅 - IvrTaskSingle ivrTaskcall = DtoConversionUtils.sourceToTarget(ivrTaskcallVO, IvrTaskSingle.class); - IvrTaskVO ivrTaskVO = ivrTaskcallService.queryTaskByCondition(ivrTaskcall); + ServiceSubtask ivrTaskcall = DtoConversionUtils.sourceToTarget(ivrTaskcallVO, ServiceSubtask.class); + ServiceTaskVO ivrTaskVO = serviceSubtaskService.queryTaskByCondition(ivrTaskcall); return success(ivrTaskVO); } @@ -104,8 +102,16 @@ @PostMapping("/phoneCallBack") public AjaxResult phoneCallBack(@RequestBody PhoneCallBackVO phoneCallBackVO) { // log.error("鐢佃瘽鍥炶皟浠诲姟鎴愬姛浜嗕笉锛焮}", phoneCallBackVO); - ivrTaskcallService.phoneCallBack(phoneCallBackVO); + serviceSubtaskService.phoneCallBack(phoneCallBackVO); return success(); } + /** + * 鎮h�呴棶棰樼粨鏋滆褰� + */ + @ApiOperation("鎮h�呴棶棰樼粨鏋滆褰�") + @PostMapping("/saveQuestionAnswer") + public AjaxResult saveQuestionAnswer(@RequestBody ServiceSubTaskDetailReq serviceSubTaskDetailReq) { + return toAjax(serviceSubtaskService.saveQuestionAnswer(serviceSubTaskDetailReq)); + } } -- Gitblit v1.9.3