|
@@ -89,9 +89,9 @@ public class InstitutionalInformationServiceImpl extends ServiceImpl<Institution
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
- institutionalMapper.updateById(institutionalInformation);
|
|
|
- msg.data = institutionalInformation;
|
|
|
}
|
|
|
+ institutionalMapper.updateById(institutionalInformation);
|
|
|
+ msg.data = institutionalInformation;
|
|
|
return msg;
|
|
|
}
|
|
|
|
|
@@ -120,6 +120,7 @@ public class InstitutionalInformationServiceImpl extends ServiceImpl<Institution
|
|
|
public HttpRespMsg addAccount(SystemUser systemUser) {
|
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
|
InstitutionalInformation information = new InstitutionalInformation();
|
|
|
+ InstitutionalInformation instution = institutionalMapper.selectById(systemUser.getId());
|
|
|
information.setId(systemUser.getId());
|
|
|
Integer count = systemUserMapper.selectCount(new QueryWrapper<SystemUser>().eq("account", systemUser.getAccount()));
|
|
|
if(count > 0){
|
|
@@ -129,6 +130,7 @@ public class InstitutionalInformationServiceImpl extends ServiceImpl<Institution
|
|
|
systemUser.setPassword(MD5Util.getPassword("000000"));
|
|
|
systemUser.setRoleType(1);
|
|
|
systemUser.setId(null);
|
|
|
+ systemUser.setRoleName(instution.getName());
|
|
|
systemUserMapper.insert(systemUser);
|
|
|
information.setSysId(systemUser.getId());
|
|
|
institutionalMapper.updateById(information);
|
|
@@ -150,5 +152,4 @@ public class InstitutionalInformationServiceImpl extends ServiceImpl<Institution
|
|
|
}
|
|
|
return msg;
|
|
|
}
|
|
|
-
|
|
|
}
|