先进班集体提交判断
This commit is contained in:
@@ -414,10 +414,11 @@ public class CphNewGoodClassApplyServiceImpl extends ServiceImpl<CphNewGoodClass
|
||||
|
||||
QueryWrapper<CphNewGoodClassApply> query = new QueryWrapper<>();
|
||||
query.eq("class_id",classApply.classId)
|
||||
.eq("stu_year_id",param.stuYearId)
|
||||
.in("apply_status",notExistStatus);
|
||||
List<CphNewGoodClassApply> findList = cphNewGoodClassApplyMapper.selectList(query);
|
||||
if(findList.size() != 0){
|
||||
throw new Exception("您的班级已提交过一次申请");
|
||||
throw new Exception("您的班级当前学年已提交过一次申请");
|
||||
}
|
||||
|
||||
CphNewGoodClassApply needInsert = new CphNewGoodClassApply();
|
||||
|
||||
Reference in New Issue
Block a user