| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | |
| | | */ |
| | | @ApiOperation("查询宣教分类列表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:hecategory:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectHeCategoryList") |
| | | public TableDataInfo selectHeCategorylist(@RequestBody HeCategory heCategory) { |
| | | // startPage(); |
| | |
| | | @ApiOperation("新增宣教分类") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:hecategory:add')") |
| | | @Log(title = "宣教分类", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody HeCategory heCategory) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | heCategory.setOrgid(user.getOrgid()); |
| | | return toAjax(heCategoryService.insertHeCategory(heCategory)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("修改宣教分类") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:hecategory:edit')") |
| | | @Log(title = "宣教分类", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody HeCategory heCategory) { |
| | | return toAjax(heCategoryService.updateHeCategory(heCategory)); |