liusheng
3 天以前 c80135e5c3f7bfab96ba558a910a06f1e587c53c
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrSceneFlownodebranchController.java
@@ -2,6 +2,8 @@
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;
@@ -23,14 +25,13 @@
/**
 * 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;
@@ -38,9 +39,9 @@
     * 查询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);
@@ -52,8 +53,7 @@
    //@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外呼流程节点分支数据");
@@ -64,8 +64,7 @@
     */
    //@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));
    }
@@ -74,9 +73,9 @@
     */
    //@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));
    }
@@ -85,9 +84,9 @@
     */
    //@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));
    }
@@ -96,9 +95,8 @@
     */
    //@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));
    }
}