| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.github.pagehelper.ISelect; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | @PostMapping("/patItem") |
| | | public TableDataInfo patItem(@RequestBody ServiceSubtask ivrTaskcall) { |
| | | PageUtils.startPageByPost(ivrTaskcall.getPageNum(), ivrTaskcall.getPageSize()); |
| | | return getDataTable(serviceSubtaskService.patItem(ivrTaskcall)); |
| | | List<ServiceSubtask> serviceSubtaskList = serviceSubtaskService.patItem(ivrTaskcall); |
| | | //获取total |
| | | long total = PageUtils.count(new ISelect() { |
| | | @Override |
| | | public void doSelect() { |
| | | ivrTaskcall.setPageNum(null); |
| | | ivrTaskcall.setPageSize(null); |
| | | serviceSubtaskService.patItem(ivrTaskcall); |
| | | } |
| | | }); |
| | | return getDataTable2(total, serviceSubtaskList); |
| | | // return getDataTable(serviceSubtaskService.patItem(ivrTaskcall)); |
| | | } |
| | | |
| | | /** |