| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.smartor.domain.IvrLibaScriptAssortVO; |
| | | import com.smartor.domain.SvyCategoryVO; |
| | | import io.swagger.annotations.Api; |
| | |
| | | * 查询问卷分类列表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svycategory:list')") |
| | | @PostMapping("/list") |
| | | @PostMapping("list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | public TableDataInfo list(@RequestBody SvyCategory svyCategory) { |
| | | // startPage(); |
| | | List<SvyCategoryVO> list = svyCategoryService.selectSvyCategoryList(svyCategory); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svycategory:add')") |
| | | @Log(title = "问卷分类", businessType = BusinessType.INSERT) |
| | | @ApiOperation("新增问卷分类") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyCategory svyCategory) { |
| | | return toAjax(svyCategoryService.insertSvyCategory(svyCategory)); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | @Log(title = "问题话术分类库", businessType = BusinessType.INSERT) |
| | | @ApiOperation("新增问卷分类树") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/addtree") |
| | | public AjaxResult addtree(@RequestBody SvyCategoryVO svyCategoryVO) { |
| | | return toAjax(svyCategoryService.insertSvyCategoryTree(svyCategoryVO)); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svycategory:edit')") |
| | | @Log(title = "问卷分类", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("修改问卷分类") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyCategory svyCategory) { |
| | | return toAjax(svyCategoryService.updateSvyCategory(svyCategory)); |