|
|
@@ -32,11 +32,13 @@ import com.xjrsoft.module.organization.entity.User;
|
|
|
import com.xjrsoft.module.organization.entity.UserDeptRelation;
|
|
|
import com.xjrsoft.module.organization.entity.UserRoleRelation;
|
|
|
import com.xjrsoft.module.organization.mapper.UserDeptRelationMapper;
|
|
|
+import com.xjrsoft.module.organization.mapper.UserMapper;
|
|
|
import com.xjrsoft.module.organization.mapper.UserRoleRelationMapper;
|
|
|
import com.xjrsoft.module.organization.service.IDepartmentService;
|
|
|
import com.xjrsoft.module.organization.service.IUserDeptRelationService;
|
|
|
import com.xjrsoft.module.organization.service.IUserService;
|
|
|
import com.xjrsoft.module.student.dto.AddBaseStudentUserDto;
|
|
|
+import com.xjrsoft.module.student.dto.BaseStudentSimpleInfoDto;
|
|
|
import com.xjrsoft.module.student.dto.BaseStudentUserPageDto;
|
|
|
import com.xjrsoft.module.student.dto.MajorGradeClassDto;
|
|
|
import com.xjrsoft.module.student.dto.UpdateBaseStudentUserDto;
|
|
|
@@ -109,6 +111,7 @@ public class StudentManagerServiceImpl extends MPJBaseServiceImpl<BaseStudentUse
|
|
|
private final IBaseGradeService baseGradeService;
|
|
|
private final IStudentChangeRecordService recordService;
|
|
|
private IDictionarydetailService dictionarydetailService;
|
|
|
+ private final UserMapper userMapper;
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@@ -481,11 +484,19 @@ public class StudentManagerServiceImpl extends MPJBaseServiceImpl<BaseStudentUse
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Boolean importStudentData(List<Map<Integer, Object>> excelDataList) throws ParseException {
|
|
|
+ public List<BaseStudentSompleInfoVo> importStudentData(List<Map<Integer, Object>> excelDataList) throws ParseException {
|
|
|
List<String> idNumbers = new ArrayList<>();
|
|
|
for (Map<Integer, Object> integerObjectMap : excelDataList) {
|
|
|
idNumbers.add(integerObjectMap.get(0).toString());
|
|
|
}
|
|
|
+
|
|
|
+ List<BaseStudentSompleInfoVo> infos = userMapper.getInfosByParam(new BaseStudentSimpleInfoDto() {{
|
|
|
+ setIdNumberList(idNumbers);
|
|
|
+ }});
|
|
|
+ if(!infos.isEmpty()){
|
|
|
+ return infos;
|
|
|
+ }
|
|
|
+
|
|
|
//查询所有学生的用户信息,组装起来备用
|
|
|
List<BaseStudentUser> studentUsers = this.selectJoinList(BaseStudentUser.class,
|
|
|
new MPJLambdaWrapper<BaseStudentUser>()
|
|
|
@@ -998,7 +1009,7 @@ public class StudentManagerServiceImpl extends MPJBaseServiceImpl<BaseStudentUse
|
|
|
if (!insertContactList.isEmpty()) {
|
|
|
studentContactService.saveBatch(insertContactList);
|
|
|
}
|
|
|
- return true;
|
|
|
+ return new ArrayList<>();
|
|
|
}
|
|
|
|
|
|
@Override
|