|
|
|
@ -377,13 +377,13 @@ public class TeacherService extends CoreBaseService<Teacher> {
|
|
|
|
|
.andEq(UniversitiesColleges::getUniversitiesCollegesStatus, 1)
|
|
|
|
|
.select();
|
|
|
|
|
|
|
|
|
|
Assert.notEmpty(universitiesColleges, "未查询到院校,请先添加院校信息!");
|
|
|
|
|
Assert.notEmpty(universitiesColleges, "未查询到院校:{},请先添加院校信息!", universitiesCollegesName);
|
|
|
|
|
|
|
|
|
|
// 通过名字没查询到院校的时候
|
|
|
|
|
if(ObjectUtil.isEmpty(universitiesColleges)) {
|
|
|
|
|
// 正则取院校ID
|
|
|
|
|
universitiesCollegesId = ReUtil.get("\\d+", universitiesCollegesName, 0);
|
|
|
|
|
Assert.notBlank(universitiesCollegesId, "请先添加院校信息!");
|
|
|
|
|
Assert.notBlank(universitiesCollegesId, "请先添加院校信息:{}!", universitiesCollegesName);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 这个时候院校ID一定存在
|
|
|
|
|