| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | @Api(description = "指标选项库") |
| | | @RestController |
| | | @RequestMapping("/smartor/targetoption") |
| | | public class IvrLibaTargetoptionController extends BaseController |
| | | { |
| | | public class IvrLibaTargetoptionController extends BaseController { |
| | | @Autowired |
| | | private IIvrLibaTargetoptionService ivrLibaTargetoptionService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("查询指标选项库列表") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) |
| | | { |
| | | PageUtils.startPageByPost(ivrLibaTargetoption.getPageNum(),ivrLibaTargetoption.getPageSize()); |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) { |
| | | PageUtils.startPageByPost(ivrLibaTargetoption.getPageNum(), ivrLibaTargetoption.getPageSize()); |
| | | List<IvrLibaTargetoption> list = ivrLibaTargetoptionService.selectIvrLibaTargetoptionList(ivrLibaTargetoption); |
| | | return getDataTable(list); |
| | | } |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | @Log(title = "指标选项库", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaTargetoption ivrLibaTargetoption) |
| | | { |
| | | public void export(HttpServletResponse response, IvrLibaTargetoption ivrLibaTargetoption) { |
| | | List<IvrLibaTargetoption> list = ivrLibaTargetoptionService.selectIvrLibaTargetoptionList(ivrLibaTargetoption); |
| | | ExcelUtil<IvrLibaTargetoption> util = new ExcelUtil<IvrLibaTargetoption>(IvrLibaTargetoption.class); |
| | | util.exportExcel(response, list, "指标选项库数据"); |
| | |
| | | @ApiOperation("获取指标选项库详细信息") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | @GetMapping(value = "/getInfo/{targetoptionid}") |
| | | public AjaxResult getInfo(@PathVariable("targetoptionid") Long targetoptionid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("targetoptionid") Long targetoptionid) { |
| | | return success(ivrLibaTargetoptionService.selectIvrLibaTargetoptionByTargetoptionid(targetoptionid)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("新增指标选项库") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @Log(title = "指标选项库", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | ivrLibaTargetoption.setOrgid(user.getOrgid()); |
| | | return toAjax(ivrLibaTargetoptionService.insertIvrLibaTargetoption(ivrLibaTargetoption)); |
| | |
| | | @ApiOperation("修改指标选项库") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @Log(title = "指标选项库", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) { |
| | | return toAjax(ivrLibaTargetoptionService.updateIvrLibaTargetoption(ivrLibaTargetoption)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("删除指标选项库") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | @Log(title = "指标选项库", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{targetoptionids}") |
| | | public AjaxResult remove(@PathVariable Long[] targetoptionids) |
| | | { |
| | | @GetMapping("/remove/{targetoptionids}") |
| | | public AjaxResult remove(@PathVariable Long[] targetoptionids) { |
| | | return toAjax(ivrLibaTargetoptionService.deleteIvrLibaTargetoptionByTargetoptionids(targetoptionids)); |
| | | } |
| | | } |