|
@@ -85,6 +85,7 @@ import com.xjrsoft.module.organization.vo.UserStudentInfoVo;
|
|
|
import com.xjrsoft.module.organization.vo.UserStudentVo;
|
|
import com.xjrsoft.module.organization.vo.UserStudentVo;
|
|
|
import com.xjrsoft.module.organization.vo.UserVo;
|
|
import com.xjrsoft.module.organization.vo.UserVo;
|
|
|
import com.xjrsoft.module.oss.factory.OssFactory;
|
|
import com.xjrsoft.module.oss.factory.OssFactory;
|
|
|
|
|
+import com.xjrsoft.module.student.entity.BaseStudent;
|
|
|
import com.xjrsoft.module.student.entity.BaseStudentSchoolRoll;
|
|
import com.xjrsoft.module.student.entity.BaseStudentSchoolRoll;
|
|
|
import com.xjrsoft.module.student.entity.BaseStudentUser;
|
|
import com.xjrsoft.module.student.entity.BaseStudentUser;
|
|
|
import com.xjrsoft.module.student.service.IBaseStudentSchoolRollService;
|
|
import com.xjrsoft.module.student.service.IBaseStudentSchoolRollService;
|
|
@@ -231,6 +232,16 @@ public class UserController {
|
|
|
.leftJoin(DictionaryDetail.class, "d1", DictionaryDetail::getCode, BaseTeacher::getEmployWay)
|
|
.leftJoin(DictionaryDetail.class, "d1", DictionaryDetail::getCode, BaseTeacher::getEmployWay)
|
|
|
.leftJoin(DictionaryDetail.class, "d2", DictionaryDetail::getCode, BaseTeacher::getEmployType)
|
|
.leftJoin(DictionaryDetail.class, "d2", DictionaryDetail::getCode, BaseTeacher::getEmployType)
|
|
|
.leftJoin(Role.class, Role::getId, UserRoleRelation::getRoleId);
|
|
.leftJoin(Role.class, Role::getId, UserRoleRelation::getRoleId);
|
|
|
|
|
+
|
|
|
|
|
+ if(ObjectUtil.isNotNull(dto.getUserType())) {
|
|
|
|
|
+ if (dto.getUserType() == 2) {
|
|
|
|
|
+ queryUser.eq(BaseTeacher::getIsNormal, 1);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (dto.getUserType() == 3) {
|
|
|
|
|
+ queryUser.leftJoin(BaseStudent.class, BaseStudent::getUserId, User::getId)
|
|
|
|
|
+ .eq(BaseStudent::getIsNormal, 1);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
IPage<UserPageVo> page = userService.selectJoinListPage(ConventPage.getPage(dto), UserPageVo.class, queryUser);
|
|
IPage<UserPageVo> page = userService.selectJoinListPage(ConventPage.getPage(dto), UserPageVo.class, queryUser);
|
|
|
for (UserPageVo record : page.getRecords()) {
|
|
for (UserPageVo record : page.getRecords()) {
|
|
|
record.setGenderCn(GenderDictionaryEnum.getValue(record.getGender()));
|
|
record.setGenderCn(GenderDictionaryEnum.getValue(record.getGender()));
|
|
@@ -283,6 +294,17 @@ public class UserController {
|
|
|
.leftJoin(DictionaryDetail.class, "d1", DictionaryDetail::getCode, BaseTeacher::getEmployWay)
|
|
.leftJoin(DictionaryDetail.class, "d1", DictionaryDetail::getCode, BaseTeacher::getEmployWay)
|
|
|
.leftJoin(DictionaryDetail.class, "d2", DictionaryDetail::getCode, BaseTeacher::getEmployType)
|
|
.leftJoin(DictionaryDetail.class, "d2", DictionaryDetail::getCode, BaseTeacher::getEmployType)
|
|
|
.leftJoin(Role.class, Role::getId, UserRoleRelation::getRoleId);
|
|
.leftJoin(Role.class, Role::getId, UserRoleRelation::getRoleId);
|
|
|
|
|
+
|
|
|
|
|
+ if(ObjectUtil.isNotNull(dto.getUserType())) {
|
|
|
|
|
+ if (dto.getUserType() == 2) {
|
|
|
|
|
+ queryUser.eq(BaseTeacher::getIsNormal, 1);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (dto.getUserType() == 3) {
|
|
|
|
|
+ queryUser.leftJoin(BaseStudent.class, BaseStudent::getUserId, User::getId)
|
|
|
|
|
+ .eq(BaseStudent::getIsNormal, 1);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
IPage<UserPageVo> page = userService.selectJoinListPage(ConventPage.getPage(dto), UserPageVo.class,queryUser);
|
|
IPage<UserPageVo> page = userService.selectJoinListPage(ConventPage.getPage(dto), UserPageVo.class,queryUser);
|
|
|
for (UserPageVo record : page.getRecords()) {
|
|
for (UserPageVo record : page.getRecords()) {
|
|
|
record.setGenderCn(GenderDictionaryEnum.getValue(record.getGender()));
|
|
record.setGenderCn(GenderDictionaryEnum.getValue(record.getGender()));
|