国励申请修改

This commit is contained in:
2025-10-18 17:11:45 +08:00
parent 2d24a2cb26
commit f994fc391e
2 changed files with 5 additions and 5 deletions

View File

@@ -202,7 +202,7 @@ public class KnzzGlApplyController extends BaseController {
/** /**
* 获取国家励志奖学金详细信息 * 获取国家励志奖学金详细信息
*/ */
@PreAuthorize("@ss.hasPermi('comprehensive:knzzGlApply:query')") // @PreAuthorize("@ss.hasPermi('comprehensive:knzzGlApply:query')")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
@ApiOperation("获取国家励志奖学金详细信息") @ApiOperation("获取国家励志奖学金详细信息")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id)
@@ -225,7 +225,7 @@ public class KnzzGlApplyController extends BaseController {
/** /**
* 修改国家励志奖学金 * 修改国家励志奖学金
*/ */
@PreAuthorize("@ss.hasPermi('comprehensive:knzzGlApply:edit')") // @PreAuthorize("@ss.hasPermi('comprehensive:knzzGlApply:edit')")
@Log(title = "国家励志奖学金", businessType = BusinessType.UPDATE) @Log(title = "国家励志奖学金", businessType = BusinessType.UPDATE)
@PostMapping("/update") @PostMapping("/update")
@ApiOperation("修改国家励志奖学金") @ApiOperation("修改国家励志奖学金")

View File

@@ -107,9 +107,9 @@ public class KnzzGlApplyServiceImpl extends ServiceImpl<KnzzGlApplyMapper,KnzzGl
throw new Exception("申请不存在"); throw new Exception("申请不存在");
} }
if(!Objects.equals(apply.getStuNo(), getUsername())){ // if(!Objects.equals(apply.getStuNo(), getUsername())){
throw new Exception("只能修改自己的申请"); // throw new Exception("只能修改自己的申请");
} // }
if(!Objects.equals(apply.getApplyStatus(), "1")){ if(!Objects.equals(apply.getApplyStatus(), "1")){
throw new Exception("申请已处理"); throw new Exception("申请已处理");