|
|
@@ -1,5 +1,6 @@
|
|
|
package com.xjrsoft.module.student.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.convert.Convert;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
@@ -38,21 +39,10 @@ public class BaseStudentBehaviorClassRelationServiceImpl extends ServiceImpl<Bas
|
|
|
|
|
|
for (String classId : classIdList) {
|
|
|
BaseStudentBehaviorClassRelation classRelation = new BaseStudentBehaviorClassRelation();
|
|
|
- Long classIdAsLong = Long.valueOf(classId);
|
|
|
+ Long classIdAsLong = Convert.toLong(classId);
|
|
|
classRelation.setClassId(classIdAsLong);
|
|
|
classRelation.setBaseStudentBehaviorManageId(dataId);
|
|
|
|
|
|
- //根据班主任id查询出班主任的名字
|
|
|
- XjrUser xjrUser = xjrUserMapper.selectOne(
|
|
|
- MPJWrappers.<XjrUser>lambdaJoin()
|
|
|
- .eq(BaseClass::getId, classIdAsLong)
|
|
|
- .innerJoin(BaseClass.class, BaseClass::getTeacherId, XjrUser::getId)
|
|
|
- );
|
|
|
-
|
|
|
- if(ObjectUtil.isNotNull(xjrUser)){
|
|
|
- classRelation.setTeacherName(xjrUser.getName());
|
|
|
- }
|
|
|
-
|
|
|
baseStudentBehaviorClassRelationMapper.insert(classRelation);
|
|
|
}
|
|
|
|