| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrrecall") |
| | | public class IvrSceneRecallController extends BaseController |
| | | { |
| | | public class IvrSceneRecallController extends BaseController { |
| | | @Autowired |
| | | private IIvrSceneRecallService ivrSceneRecallService; |
| | | |
| | |
| | | * 查询AI外呼重拨配置列表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneRecall ivrSceneRecall) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrSceneRecall ivrSceneRecall) { |
| | | startPage(); |
| | | List<IvrSceneRecall> list = ivrSceneRecallService.selectIvrSceneRecallList(ivrSceneRecall); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:export')") |
| | | @Log(title = "AI外呼重拨配置", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneRecall ivrSceneRecall) |
| | | { |
| | | public void export(HttpServletResponse response, IvrSceneRecall ivrSceneRecall) { |
| | | List<IvrSceneRecall> list = ivrSceneRecallService.selectIvrSceneRecallList(ivrSceneRecall); |
| | | ExcelUtil<IvrSceneRecall> util = new ExcelUtil<IvrSceneRecall>(IvrSceneRecall.class); |
| | | util.exportExcel(response, list, "AI外呼重拨配置数据"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:query')") |
| | | @GetMapping(value = "/{recallid}") |
| | | public AjaxResult getInfo(@PathVariable("recallid") Long recallid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("recallid") Long recallid) { |
| | | return success(ivrSceneRecallService.selectIvrSceneRecallByRecallid(recallid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:add')") |
| | | @Log(title = "AI外呼重拨配置", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneRecall ivrSceneRecall) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrSceneRecall ivrSceneRecall) { |
| | | return toAjax(ivrSceneRecallService.insertIvrSceneRecall(ivrSceneRecall)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:edit')") |
| | | @Log(title = "AI外呼重拨配置", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneRecall ivrSceneRecall) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrSceneRecall ivrSceneRecall) { |
| | | return toAjax(ivrSceneRecallService.updateIvrSceneRecall(ivrSceneRecall)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:remove')") |
| | | @Log(title = "AI外呼重拨配置", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{recallids}") |
| | | public AjaxResult remove(@PathVariable Long[] recallids) |
| | | { |
| | | @GetMapping("/remove/{recallids}") |
| | | public AjaxResult remove(@PathVariable Long[] recallids) { |
| | | return toAjax(ivrSceneRecallService.deleteIvrSceneRecallByRecallids(recallids)); |
| | | } |
| | | } |