| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:dept:add')") |
| | | @ApiOperation("新增模板科室关联") |
| | | @Log(title = "模板科室关联", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody List<TemplateDept> templateDepts) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | return toAjax(templateDeptService.insertTemplateDept(templateDepts,user.getGuid())); |
| | |
| | | @ApiOperation("修改模板科室关联") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:dept:edit')") |
| | | @Log(title = "模板科室关联", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody TemplateDept templateDept) { |
| | | return toAjax(templateDeptService.updateTemplateDept(templateDept)); |
| | | } |