| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.smartor.domain.IvrLibaScriptAssortVO; |
| | | import com.smartor.domain.SvyCategoryVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | * 查询问卷分类列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svycategory:list')") |
| | | @PostMapping("/list") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyCategory svyCategory) { |
| | | startPage(); |
| | | List<SvyCategory> list = svyCategoryService.selectSvyCategoryList(svyCategory); |
| | | // startPage(); |
| | | List<SvyCategoryVO> list = svyCategoryService.selectSvyCategoryList(svyCategory); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | |
| | | @Log(title = "问卷分类", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyCategory svyCategory) { |
| | | List<SvyCategory> list = svyCategoryService.selectSvyCategoryList(svyCategory); |
| | | ExcelUtil<SvyCategory> util = new ExcelUtil<SvyCategory>(SvyCategory.class); |
| | | List<SvyCategoryVO> list = svyCategoryService.selectSvyCategoryList(svyCategory); |
| | | ExcelUtil<SvyCategoryVO> util = new ExcelUtil<SvyCategoryVO>(SvyCategoryVO.class); |
| | | util.exportExcel(response, list, "问卷分类数据"); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 新增问卷分类树 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | @Log(title = "问题话术分类库", businessType = BusinessType.INSERT) |
| | | @ApiOperation("新增问卷分类树") |
| | | @PostMapping("/addtree") |
| | | public AjaxResult addtree(@RequestBody SvyCategoryVO svyCategoryVO) { |
| | | return toAjax(svyCategoryService.insertSvyCategoryTree(svyCategoryVO)); |
| | | } |
| | | |
| | | /** |
| | | * 修改问卷分类 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svycategory:edit')") |