| | |
| | | * 查询语音任务列表 |
| | | */ |
| | | @ApiOperation("查询任务列表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody ServiceTask serviceTask) { |
| | | PageUtils.startPageByPost(serviceTask.getPageNum(), serviceTask.getPageSize()); |
| | |
| | | * 导出任务列表 |
| | | */ |
| | | @ApiOperation("导出任务列表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:export')") |
| | | @Log(title = "语音任务", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ServiceTask ServiceTask) { |
| | |
| | | * 获取任务详细信息 |
| | | */ |
| | | @ApiOperation("获取任务详细信息") |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:query')") |
| | | @GetMapping(value = "/{taskid}") |
| | | public AjaxResult getInfo(@PathVariable("taskid") Long taskid) { |
| | | return success(serviceTaskService.selectServiceTaskByTaskid(taskid)); |
| | |
| | | * 新增任务 |
| | | */ |
| | | @ApiOperation("新增任务") |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:add')") |
| | | @Log(title = "语音任务", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServiceTask ServiceTask) { |
| | |
| | | * 修改语音任务 |
| | | */ |
| | | @ApiOperation("修改任务") |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:edit')") |
| | | @Log(title = "任务", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServiceTask ServiceTask) { |
| | |
| | | // * 删除语音任务 |
| | | // */ |
| | | // @ApiOperation("删除任务") |
| | | // @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:remove')") |
| | | // //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:remove')") |
| | | // @Log(title = "语音任务", businessType = BusinessType.DELETE) |
| | | // @GetMapping("/remove/{taskids}") |
| | | // public AjaxResult remove(@PathVariable Long[] taskids) { |
| | |
| | | * 删除任务(包括它对应的患者信息) |
| | | */ |
| | | @ApiOperation("删除任务(包括它对应的患者信息)") |
| | | @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:remove')") |
| | | @Log(title = "语音任务", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{taskId}") |
| | | public AjaxResult removeTask(@PathVariable("taskId") String taskId) { |
| | |
| | | Long pid = null; |
| | | log.info("getScriptInfoByCondition入参为:{}", serviceTaskScriptQues); |
| | | try { |
| | | // tid = Long.valueOf(rsaPublicKeyExample.decryptedData(URLDecoder.decode(serviceTaskScriptQues.getParam1(), "UTF-8"), pri_key)); |
| | | // pid = Long.valueOf(rsaPublicKeyExample.decryptedData(URLDecoder.decode(serviceTaskScriptQues.getParam2(), "UTF-8"), pri_key)); |
| | | tid = Long.valueOf(rsaPublicKeyExample.decryptedData(serviceTaskScriptQues.getParam1(), pri_key)); |
| | | pid = Long.valueOf(rsaPublicKeyExample.decryptedData(serviceTaskScriptQues.getParam2(), pri_key)); |
| | | } catch (Exception e) { |