|
@@ -49,11 +49,15 @@ public class BaseClassServiceImpl extends MPJBaseServiceImpl<BaseClassMapper, Ba
|
|
.disableSubLogicDel()
|
|
.disableSubLogicDel()
|
|
.rightJoin(BaseStudentSchoolRoll.class, BaseStudentSchoolRoll::getClassId, BaseStudent::getId)
|
|
.rightJoin(BaseStudentSchoolRoll.class, BaseStudentSchoolRoll::getClassId, BaseStudent::getId)
|
|
.innerJoin(BaseStudentUser.class, BaseStudentUser::getId, BaseStudentSchoolRoll::getUserId)
|
|
.innerJoin(BaseStudentUser.class, BaseStudentUser::getId, BaseStudentSchoolRoll::getUserId)
|
|
|
|
+ .leftJoin(XjrUser.class, XjrUser::getId, BaseClass::getTeacherId)
|
|
.in(BaseStudentSchoolRoll::getUserId, studentIds)
|
|
.in(BaseStudentSchoolRoll::getUserId, studentIds)
|
|
.selectAs(BaseClass::getName, UserStudentVo::getClassName)
|
|
.selectAs(BaseClass::getName, UserStudentVo::getClassName)
|
|
.selectAs(BaseStudentUser::getName, UserStudentVo::getStudentName)
|
|
.selectAs(BaseStudentUser::getName, UserStudentVo::getStudentName)
|
|
.selectAs(BaseStudentUser::getId, UserStudentVo::getStudentId)
|
|
.selectAs(BaseStudentUser::getId, UserStudentVo::getStudentId)
|
|
.selectAs(BaseStudentSchoolRoll::getClassId, UserStudentVo::getClassId)
|
|
.selectAs(BaseStudentSchoolRoll::getClassId, UserStudentVo::getClassId)
|
|
|
|
+ .selectAs(XjrUser::getName, UserStudentVo::getTeacherName)
|
|
|
|
+ .selectAs(XjrUser::getMobile, UserStudentVo::getTeacherMobile)
|
|
|
|
+ .selectAs(XjrUser::getId, UserStudentVo::getTeacherId)
|
|
.selectAs(BaseStudentUser::getAvatar, UserStudentVo::getAvatar);
|
|
.selectAs(BaseStudentUser::getAvatar, UserStudentVo::getAvatar);
|
|
|
|
|
|
list = selectJoinList(UserStudentVo.class, queryWrapper);
|
|
list = selectJoinList(UserStudentVo.class, queryWrapper);
|