| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | |
| | | @ApiOperation("新增【请填写功能名称】") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:temp:add')") |
| | | @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServicePatientTemp servicePatientTemp) { |
| | | return toAjax(servicePatientTempService.insertServicePatientTemp(servicePatientTemp)); |
| | | } |
| | |
| | | @ApiOperation("修改【请填写功能名称】") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:temp:edit')") |
| | | @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServicePatientTemp servicePatientTemp) { |
| | | return toAjax(servicePatientTempService.updateServicePatientTemp(servicePatientTemp)); |
| | | } |