| | |
| | | |
| | | 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; |
| | |
| | | |
| | | /** |
| | | * AI外呼流程节点分支Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-06 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrflownodebranch") |
| | | public class IvrSceneFlownodebranchController extends BaseController |
| | | { |
| | | public class IvrSceneFlownodebranchController extends BaseController { |
| | | @Autowired |
| | | private IIvrSceneFlownodebranchService ivrSceneFlownodebranchService; |
| | | |
| | |
| | | * 查询AI外呼流程节点分支列表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneFlownodebranch ivrSceneFlownodebranch) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrSceneFlownodebranch ivrSceneFlownodebranch) { |
| | | startPage(); |
| | | List<IvrSceneFlownodebranch> list = ivrSceneFlownodebranchService.selectIvrSceneFlownodebranchList(ivrSceneFlownodebranch); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:export')") |
| | | @Log(title = "AI外呼流程节点分支", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneFlownodebranch ivrSceneFlownodebranch) |
| | | { |
| | | public void export(HttpServletResponse response, IvrSceneFlownodebranch ivrSceneFlownodebranch) { |
| | | List<IvrSceneFlownodebranch> list = ivrSceneFlownodebranchService.selectIvrSceneFlownodebranchList(ivrSceneFlownodebranch); |
| | | ExcelUtil<IvrSceneFlownodebranch> util = new ExcelUtil<IvrSceneFlownodebranch>(IvrSceneFlownodebranch.class); |
| | | util.exportExcel(response, list, "AI外呼流程节点分支数据"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:query')") |
| | | @GetMapping(value = "/{branchid}") |
| | | public AjaxResult getInfo(@PathVariable("branchid") Long branchid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("branchid") Long branchid) { |
| | | return success(ivrSceneFlownodebranchService.selectIvrSceneFlownodebranchByBranchid(branchid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:add')") |
| | | @Log(title = "AI外呼流程节点分支", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneFlownodebranch ivrSceneFlownodebranch) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrSceneFlownodebranch ivrSceneFlownodebranch) { |
| | | return toAjax(ivrSceneFlownodebranchService.insertIvrSceneFlownodebranch(ivrSceneFlownodebranch)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:edit')") |
| | | @Log(title = "AI外呼流程节点分支", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneFlownodebranch ivrSceneFlownodebranch) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrSceneFlownodebranch ivrSceneFlownodebranch) { |
| | | return toAjax(ivrSceneFlownodebranchService.updateIvrSceneFlownodebranch(ivrSceneFlownodebranch)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:remove')") |
| | | @Log(title = "AI外呼流程节点分支", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{branchids}") |
| | | public AjaxResult remove(@PathVariable Long[] branchids) |
| | | { |
| | | @GetMapping("/remove/{branchids}") |
| | | public AjaxResult remove(@PathVariable Long[] branchids) { |
| | | return toAjax(ivrSceneFlownodebranchService.deleteIvrSceneFlownodebranchByBranchids(branchids)); |
| | | } |
| | | } |