| | |
| | | |
| | | 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; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrtaskcallrecord") |
| | | public class IvrTaskcallrecordController extends BaseController |
| | | { |
| | | public class IvrTaskcallrecordController extends BaseController { |
| | | @Autowired |
| | | private IIvrTaskcallrecordService ivrTaskcallrecordService; |
| | | |
| | |
| | | * 查询语音任务呼叫记录列表 |
| | | */ |
| | | //@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); |
| | |
| | | //@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, "语音任务呼叫记录数据"); |
| | |
| | | */ |
| | | //@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)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@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)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@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)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@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)); |
| | | } |
| | | } |