|
@@ -170,4 +170,15 @@ public class InstitutionalInformationServiceImpl extends ServiceImpl<Institution
|
|
|
msg.data = institutionalMapper.selectList(new QueryWrapper<InstitutionalInformation>().isNull("sys_id"));
|
|
|
return msg;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public HttpRespMsg delAccount(SystemUser user) {
|
|
|
+ HttpRespMsg msg = new HttpRespMsg();
|
|
|
+ systemUserMapper.deleteById(user.getId());
|
|
|
+ //删除机构绑定
|
|
|
+ InstitutionalInformation information = institutionalMapper.selectOne(new QueryWrapper<InstitutionalInformation>().eq("sys_id", user.getId()));
|
|
|
+ information.setSysId(null);
|
|
|
+ institutionalMapper.updateById(information);
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
}
|