优干判断

This commit is contained in:
zhy
2025-10-15 09:50:51 +08:00
parent 4d1480a875
commit 4adb1b0e43

View File

@@ -941,6 +941,10 @@ public class CphGoodApplyServiceImpl extends ServiceImpl<CphGoodApplyMapper, Cph
return AjaxResult.success();
}
@Autowired
private ViewStuInfoMapper viewStuInfoMapper;
@Override
public AjaxResult verifyApplyYXGB() {
QueryWrapper<SrsStuYear> yearQuery = new QueryWrapper<>();
@@ -958,7 +962,9 @@ public class CphGoodApplyServiceImpl extends ServiceImpl<CphGoodApplyMapper, Cph
.eq(CphOwnGoodType::getStuYearId,year.getId())
.like(CphOwnGoodType::getTypeCode, "YXXSGB")
.one();
SrsStudent srsStudent = srsStudentMapper.selectSrsStudentByStuNo(stuNo);
QueryWrapper<ViewStuInfo> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("stu_no",stuNo);
ViewStuInfo srsStudent = viewStuInfoMapper.selectOne(queryWrapper);
if (cphOwnGoodType == null) return AjaxResult.error("该项目不存在,请联系管理员");
CphSearch cphSearch = new CphSearch();