保留学籍审核记录根据id新增或修改记录

This commit is contained in:
2025-11-27 17:11:17 +08:00
parent c0fca88261
commit e5e8882b82
4 changed files with 56 additions and 3 deletions

View File

@@ -84,6 +84,18 @@ public class RtEnlistmentReserveApprovalController extends BaseController {
return toAjax(rtEnlistmentReserveApprovalService.insertRtEnlistmentReserveApproval(rtEnlistmentReserveApproval));
}
/**
* 根据学生姓名、学号、审批人ID判断存在则更新不存在则新增
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserveApproval:add')")
@Log(title = "保留学籍审批记录", businessType = BusinessType.INSERT)
@PostMapping("/insertOrUpdateByStuAndApprover")
@ApiOperation("新增\\修改保留学籍审批记录")
public AjaxResult insertOrUpdateByStuAndApprover(@RequestBody RtEnlistmentReserveApproval rtEnlistmentReserveApproval)
{
return toAjax(rtEnlistmentReserveApprovalService.insertOrUpdateByStuAndApprover(rtEnlistmentReserveApproval));
}
/**
* 修改保留学籍审批记录
*/