liusheng
3 天以前 c80135e5c3f7bfab96ba558a910a06f1e587c53c
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrTaskcallrecordController.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/ivrtaskcallrecord")
public class IvrTaskcallrecordController extends BaseController
{
public class IvrTaskcallrecordController extends BaseController {
    @Autowired
    private IIvrTaskcallrecordService ivrTaskcallrecordService;
@@ -38,9 +39,9 @@
     * 查询语音任务呼叫记录列表
     */
    //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:list')")
   @PostMapping("/list")
    public TableDataInfo list(@RequestBody IvrTaskcallrecord ivrTaskcallrecord)
    {
    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
    @PostMapping("list")
    public TableDataInfo list(@RequestBody IvrTaskcallrecord ivrTaskcallrecord) {
        startPage();
        List<IvrTaskcallrecord> list = ivrTaskcallrecordService.selectIvrTaskcallrecordList(ivrTaskcallrecord);
        return getDataTable(list);
@@ -52,8 +53,7 @@
    //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:export')")
    @Log(title = "语音任务呼叫记录", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, IvrTaskcallrecord ivrTaskcallrecord)
    {
    public void export(HttpServletResponse response, IvrTaskcallrecord ivrTaskcallrecord) {
        List<IvrTaskcallrecord> list = ivrTaskcallrecordService.selectIvrTaskcallrecordList(ivrTaskcallrecord);
        ExcelUtil<IvrTaskcallrecord> util = new ExcelUtil<IvrTaskcallrecord>(IvrTaskcallrecord.class);
        util.exportExcel(response, list, "语音任务呼叫记录数据");
@@ -64,8 +64,7 @@
     */
    //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:query')")
    @GetMapping(value = "/{uuid}")
    public AjaxResult getInfo(@PathVariable("uuid") String uuid)
    {
    public AjaxResult getInfo(@PathVariable("uuid") String uuid) {
        return success(ivrTaskcallrecordService.selectIvrTaskcallrecordByUuid(uuid));
    }
@@ -74,9 +73,9 @@
     */
    //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:add')")
    @Log(title = "语音任务呼叫记录", businessType = BusinessType.INSERT)
    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
    @PostMapping("/add")
    public AjaxResult add(@RequestBody IvrTaskcallrecord ivrTaskcallrecord)
    {
    public AjaxResult add(@RequestBody IvrTaskcallrecord ivrTaskcallrecord) {
        return toAjax(ivrTaskcallrecordService.insertIvrTaskcallrecord(ivrTaskcallrecord));
    }
@@ -85,9 +84,9 @@
     */
    //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:edit')")
    @Log(title = "语音任务呼叫记录", businessType = BusinessType.UPDATE)
    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody IvrTaskcallrecord ivrTaskcallrecord)
    {
    public AjaxResult edit(@RequestBody IvrTaskcallrecord ivrTaskcallrecord) {
        return toAjax(ivrTaskcallrecordService.updateIvrTaskcallrecord(ivrTaskcallrecord));
    }
@@ -96,9 +95,8 @@
     */
    //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:remove')")
    @Log(title = "语音任务呼叫记录", businessType = BusinessType.DELETE)
   @GetMapping("/remove/{uuids}")
    public AjaxResult remove(@PathVariable String[] uuids)
    {
    @GetMapping("/remove/{uuids}")
    public AjaxResult remove(@PathVariable String[] uuids) {
        return toAjax(ivrTaskcallrecordService.deleteIvrTaskcallrecordByUuids(uuids));
    }
}