...
|
...
|
@@ -7,6 +7,7 @@ import com.example.client.domain.*; |
|
|
import com.example.client.domain.bo.CBasicInformationStudentBo;
|
|
|
import com.example.client.domain.bo.CPersonalInformationBo;
|
|
|
import com.example.client.domain.bo.CRelationshipStudentSgcBo;
|
|
|
import com.example.client.domain.bo.MySchoolTypeBO;
|
|
|
import com.example.client.domain.vo.*;
|
|
|
import com.example.client.domin.UserContext;
|
|
|
import com.example.client.enumeration.Identity;
|
...
|
...
|
@@ -657,7 +658,7 @@ public class MineServiceImpl implements MineService { |
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
public AjaxResult openMySchool() {
|
|
|
public AjaxResult openMySchool(MySchoolTypeBO mySchoolTypeBO) {
|
|
|
|
|
|
//根据登录人Id查询用户信息
|
|
|
Long uId = UserContext.currentUserId();
|
...
|
...
|
@@ -669,13 +670,13 @@ public class MineServiceImpl implements MineService { |
|
|
if(userId ==null){
|
|
|
return AjaxResult.error("你还没有绑定孩子");
|
|
|
}
|
|
|
return getMySchool(userId);
|
|
|
return getMySchool(userId ,mySchoolTypeBO );
|
|
|
|
|
|
|
|
|
}
|
|
|
//学生
|
|
|
if(cUser.getIdentityType().equals(Identity.STUDENT)){
|
|
|
return getMySchool(uId);
|
|
|
return getMySchool(uId,mySchoolTypeBO);
|
|
|
}
|
|
|
//老师的
|
|
|
if(cUser.getIdentityType().equals(Identity.TEACHWE)){
|
...
|
...
|
@@ -716,12 +717,14 @@ public class MineServiceImpl implements MineService { |
|
|
* @param userId
|
|
|
* @return
|
|
|
*/
|
|
|
private AjaxResult getMySchool(Long userId) {
|
|
|
private AjaxResult getMySchool(Long userId ,MySchoolTypeBO mySchoolTypeBO) {
|
|
|
CRelationshipStudentSgcBo cRelationshipStudentSgcBo = new CRelationshipStudentSgcBo();
|
|
|
System.out.println(userId);
|
|
|
|
|
|
cRelationshipStudentSgcBo.setGardeType(mySchoolTypeBO.getSchoolType().getCode());
|
|
|
cRelationshipStudentSgcBo.setUserId(userId);
|
|
|
List<MySchoolVo> school = cRegisterSchoolMapper.getSchool(cRelationshipStudentSgcBo);
|
|
|
|
|
|
|
|
|
return AjaxResult.success(school);
|
|
|
}
|
|
|
}
|
...
|
...
|
|