liusheng
3 天以前 c80135e5c3f7bfab96ba558a910a06f1e587c53c
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrSceneRecallController.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;
@@ -29,8 +31,7 @@
 */
@RestController
@RequestMapping("/smartor/ivrrecall")
public class IvrSceneRecallController extends BaseController
{
public class IvrSceneRecallController extends BaseController {
    @Autowired
    private IIvrSceneRecallService ivrSceneRecallService;
@@ -38,9 +39,9 @@
     * 查询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);
@@ -52,8 +53,7 @@
    //@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外呼重拨配置数据");
@@ -64,8 +64,7 @@
     */
    //@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));
    }
@@ -74,9 +73,9 @@
     */
    //@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));
    }
@@ -85,9 +84,9 @@
     */
    //@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));
    }
@@ -96,9 +95,8 @@
     */
    //@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));
    }
}