|
|
@@ -29,13 +29,12 @@ import com.xjrsoft.common.sms.SmsCtcc;
|
|
|
import com.xjrsoft.common.utils.RedisUtil;
|
|
|
import com.xjrsoft.common.utils.TreeUtil;
|
|
|
import com.xjrsoft.common.utils.VoToColumnUtil;
|
|
|
-import com.xjrsoft.config.CommonPropertiesConfig;
|
|
|
-import com.xjrsoft.module.base.dto.BaseClassroomChangeStatusDto;
|
|
|
import com.xjrsoft.module.base.entity.BaseClass;
|
|
|
-import com.xjrsoft.module.base.entity.BaseClassroom;
|
|
|
import com.xjrsoft.module.base.entity.BaseGrade;
|
|
|
+import com.xjrsoft.module.base.entity.WhitelistManagement;
|
|
|
import com.xjrsoft.module.base.service.IBaseClassService;
|
|
|
import com.xjrsoft.module.base.service.IBaseGradeService;
|
|
|
+import com.xjrsoft.module.base.service.IWhitelistManagementService;
|
|
|
import com.xjrsoft.module.hikvision.util.DataUtil;
|
|
|
import com.xjrsoft.module.organization.dto.AddUserDto;
|
|
|
import com.xjrsoft.module.organization.dto.BindOpenidDto;
|
|
|
@@ -89,8 +88,8 @@ import com.xjrsoft.module.system.entity.DictionaryDetail;
|
|
|
import com.xjrsoft.module.system.entity.File;
|
|
|
import com.xjrsoft.module.system.service.IFileService;
|
|
|
import com.xjrsoft.module.teacher.entity.BaseTeacher;
|
|
|
+import com.xjrsoft.module.teacher.entity.XjrUser;
|
|
|
import com.xjrsoft.module.workflow.constant.WorkflowConstant;
|
|
|
-import com.xjrsoft.module.workflow.mapper.WorkflowExtraMapper;
|
|
|
import com.xjrsoft.module.workflow.service.IWorkflowExecuteService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
@@ -156,7 +155,7 @@ public class UserController {
|
|
|
private final HistoryService historyService;
|
|
|
|
|
|
private final IBaseStudentSchoolRollService baseStudentSchoolRollService;
|
|
|
-
|
|
|
+ private final IWhitelistManagementService whitelistManagementService;
|
|
|
|
|
|
@GetMapping(value = "/list")
|
|
|
@ApiOperation(value = "用户列表(不分页)")
|
|
|
@@ -390,6 +389,9 @@ public class UserController {
|
|
|
if (userStudentVo != null) {
|
|
|
vo.setClassId(userStudentVo.getClassId());
|
|
|
vo.setClassName(userStudentVo.getClassName());
|
|
|
+ vo.setTeacherId(userStudentVo.getTeacherId());
|
|
|
+ vo.setTeacherName(userStudentVo.getTeacherName());
|
|
|
+ vo.setTeacherMobile(userStudentVo.getTeacherMobile());
|
|
|
}
|
|
|
|
|
|
List<File> fileList = fileService.list(Wrappers.lambdaQuery(File.class).eq(File::getFolderId, user.getSignFolderId()));
|
|
|
@@ -744,6 +746,15 @@ public class UserController {
|
|
|
return RT.error("学生不存在!");
|
|
|
}
|
|
|
|
|
|
+ List<WhitelistManagement> managementList = whitelistManagementService.list(
|
|
|
+ new QueryWrapper<WhitelistManagement>().lambda()
|
|
|
+ .eq(WhitelistManagement::getUserId, dto.getUserId())
|
|
|
+ );
|
|
|
+ userStudentInfoVo.setWhitelistStatus(0);
|
|
|
+ if(!managementList.isEmpty()){
|
|
|
+ userStudentInfoVo.setWhitelistStatus(1);
|
|
|
+ }
|
|
|
+
|
|
|
return RT.ok(userStudentInfoVo);
|
|
|
}
|
|
|
|
|
|
@@ -768,7 +779,11 @@ public class UserController {
|
|
|
.innerJoin(BaseStudentSchoolRoll.class, BaseStudentSchoolRoll::getUserId, UserStudent::getStudentId)
|
|
|
.innerJoin(BaseStudentUser.class, BaseStudentUser::getId, UserStudent::getStudentId)
|
|
|
.leftJoin(BaseClass.class, BaseClass::getId, BaseStudentSchoolRoll::getClassId)
|
|
|
+ .leftJoin(XjrUser.class, XjrUser::getId, BaseClass::getTeacherId)
|
|
|
.select(BaseStudentSchoolRoll::getClassId)
|
|
|
+ .selectAs(XjrUser::getName, UserStudentVo::getTeacherName)
|
|
|
+ .selectAs(XjrUser::getMobile, UserStudentVo::getTeacherMobile)
|
|
|
+ .selectAs(XjrUser::getId, UserStudentVo::getTeacherId)
|
|
|
.select(UserStudent::getStudentId,UserStudent::getStatus)
|
|
|
.selectAs(BaseClass::getName, UserStudentVo::getClassName)
|
|
|
.selectAs(BaseStudentUser::getName, UserStudentVo::getStudentName)
|