feat: 🎸 student_list查询院校信息
This commit is contained in:
parent
a73cc74342
commit
93a5b7e3b2
@ -21,6 +21,7 @@ import org.jeecg.modules.aiol.service.IAiolUserInfoService;
|
|||||||
import org.jeecg.modules.system.entity.SysUser;
|
import org.jeecg.modules.system.entity.SysUser;
|
||||||
import org.jeecg.modules.system.mapper.SysUserMapper;
|
import org.jeecg.modules.system.mapper.SysUserMapper;
|
||||||
import org.jeecg.modules.system.service.ISysUserService;
|
import org.jeecg.modules.system.service.ISysUserService;
|
||||||
|
import org.jeecg.modules.aiol.mapper.AiolUserInfoMapper;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
@ -60,6 +61,8 @@ public class AiolClassController extends JeecgController<AiolClass, IAiolClassSe
|
|||||||
private ISysUserService sysUserService;
|
private ISysUserService sysUserService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private IAiolUserInfoService aiolUserInfoService;
|
private IAiolUserInfoService aiolUserInfoService;
|
||||||
|
@Autowired
|
||||||
|
private AiolUserInfoMapper aiolUserInfoMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页列表查询
|
* 分页列表查询
|
||||||
@ -272,6 +275,25 @@ public class AiolClassController extends JeecgController<AiolClass, IAiolClassSe
|
|||||||
studentInfo.put("phone", sysUser.getPhone());
|
studentInfo.put("phone", sysUser.getPhone());
|
||||||
studentInfo.put("email", sysUser.getEmail());
|
studentInfo.put("email", sysUser.getEmail());
|
||||||
studentInfo.put("status", sysUser.getStatus());
|
studentInfo.put("status", sysUser.getStatus());
|
||||||
|
studentInfo.put("sex", sysUser.getSex());
|
||||||
|
studentInfo.put("birthday", sysUser.getBirthday());
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询学生扩展信息(aiol_user_info)
|
||||||
|
QueryWrapper<AiolUserInfo> userInfoWrapper = new QueryWrapper<>();
|
||||||
|
userInfoWrapper.eq("user_id", classStudent.getStudentId());
|
||||||
|
AiolUserInfo userInfo = aiolUserInfoMapper.selectOne(userInfoWrapper);
|
||||||
|
if (userInfo != null) {
|
||||||
|
studentInfo.put("major", userInfo.getMajor());
|
||||||
|
studentInfo.put("college", userInfo.getCollege());
|
||||||
|
studentInfo.put("education", userInfo.getEducation());
|
||||||
|
studentInfo.put("title", userInfo.getTitle());
|
||||||
|
} else {
|
||||||
|
// 如果没有扩展信息,设置默认值
|
||||||
|
studentInfo.put("major", "");
|
||||||
|
studentInfo.put("college", "");
|
||||||
|
studentInfo.put("education", "");
|
||||||
|
studentInfo.put("title", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
result.add(studentInfo);
|
result.add(studentInfo);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user