|
|
@@ -156,6 +156,13 @@ public class StudentServiceImpl implements StudentService{
|
|
|
if (updateDetails.size() > 0) {
|
|
|
sysStudentMapper.updateParents(updateDetails);
|
|
|
for (SysParents item : updateDetails) {
|
|
|
+ SysParents sysParents = sysStudentMapper.selectParentByPhone(item.getPa_phone(), schoolid);
|
|
|
+ if (ObjectUtils.isEmpty(sysParents)) {
|
|
|
+ //自动创建家长账户
|
|
|
+ if (!StringUtils.isEmpty(item.getPa_phone())) {
|
|
|
+ Long userId = createAccount(item.getPa_phone());
|
|
|
+ }
|
|
|
+ }
|
|
|
sysStudentMapper.updateRelation(item.getParent_stu_id(), item.getPs_relation());
|
|
|
}
|
|
|
}
|