| | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.annotation.NotRepeatCommit; |
| | | import com.ruoyi.project.domain.vo.MedicalEvaluationVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | //@PreAuthorize("@ss.hasPermi('project:medicalevaluation:add')") |
| | | @Log(title = "医学评估", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | @NotRepeatCommit(key = "param:arg[1]", value = 30000) |
| | | public AjaxResult add(@RequestBody ServiceMedicalevaluation serviceMedicalevaluation) { |
| | | return toAjax(serviceMedicalevaluationService.save(serviceMedicalevaluation)); |
| | | } |
| | |
| | | //@PreAuthorize("@ss.hasPermi('project:medicalevaluation:edit')") |
| | | @Log(title = "医学评估", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | @NotRepeatCommit(key = "param:arg[1]", value = 30000) |
| | | public AjaxResult edit(@RequestBody ServiceMedicalevaluation serviceMedicalevaluation) { |
| | | List<ServiceMedicalevaluation> list = serviceMedicalevaluationService.queryList(serviceMedicalevaluation); |
| | | if (CollectionUtils.isEmpty(list)) { |