| | |
| | | //@PreAuthorize("@ss.hasPermi('system:answer:remove')") |
| | | @Log(title = "任务问卷问题选项", businessType = BusinessType.DELETE) |
| | | @ApiOperation("删除任务问卷问题选项") |
| | | @DeleteMapping("/remove/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | log.info("【saveQuestionCache-----remove】的入参为:{}", ids); |
| | | return toAjax(serviceSubtaskAnswerService.deleteServiceSubtaskAnswerByIds(ids)); |
| | |
| | | @PostMapping("/getQuestionCache") |
| | | public AjaxResult getQuestionCache(@RequestBody ServiceSubTaskCacheReq serviceSubTaskCacheReq) { |
| | | log.info("【saveQuestionCache-----getQuestionCache】的入参为:{}", serviceSubTaskCacheReq); |
| | | if (StringUtils.isEmpty(serviceSubTaskCacheReq.getParam1()) || StringUtils.isEmpty(serviceSubTaskCacheReq.getParam2())) |
| | | throw new BaseException("请检查param1或param2的值"); |
| | | // if (StringUtils.isEmpty(serviceSubTaskCacheReq.getParam1()) || StringUtils.isEmpty(serviceSubTaskCacheReq.getParam2())) |
| | | // throw new BaseException("请检查param1或param2的值"); |
| | | return AjaxResult.success(serviceSubtaskAnswerService.getQuestionCache(serviceSubTaskCacheReq, 0L)); |
| | | } |
| | | |