From 1775bb71f952106c58657cf02891cbe2a286c8f8 Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期三, 22 九月 2021 11:30:47 +0800 Subject: [PATCH] Merge branch 'test' of http://gitlab.nhys.cdnhxx.com/root/zhihuishequ into test --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActSocialOrgServiceImpl.java | 19 ++----------------- 1 files changed, 2 insertions(+), 17 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActSocialOrgServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActSocialOrgServiceImpl.java index cd66bcf..52a0420 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActSocialOrgServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActSocialOrgServiceImpl.java @@ -52,6 +52,7 @@ administratorsUserVO.setAccount(comActSocialOrgVO.getAccount()); administratorsUserVO.setPassword(comActSocialOrgVO.getPassword()); administratorsUserVO.setRoleId(comActSocialOrgVO.getRoleId()); + administratorsUserVO.setCommunityId(comActSocialOrg.getCommunityId()); R r=userService.addUserBackstageProperty(administratorsUserVO); if(R.isOk(r)){ comActSocialOrg.setUserId(Long.parseLong(r.getData().toString())); @@ -64,29 +65,12 @@ } @Override - @Transactional(rollbackFor = Exception.class) public R update(ComActSocialOrgVO comActSocialOrgVO) { if(comActSocialOrgVO!=null){ - if(!comActSocialOrgVO.getAccount().isEmpty()||!comActSocialOrgVO.getPassword().isEmpty()){ - AdministratorsUserVO administratorsUserVO=new AdministratorsUserVO(); - administratorsUserVO.setUserId(comActSocialOrgVO.getUserId()); - administratorsUserVO.setAccount(comActSocialOrgVO.getAccount()); - administratorsUserVO.setPassword(comActSocialOrgVO.getPassword()); - R r=userService.putUserBackstage(administratorsUserVO); - if(R.isOk(r)){ - ComActSocialOrg comActSocialOrg=new ComActSocialOrg(); - BeanUtils.copyProperties(comActSocialOrgVO,comActSocialOrg); - this.comActSocialOrgDao.updateById(comActSocialOrg); - return R.ok(); - } - return R.fail("账号密码修改失败"); - } - else { ComActSocialOrg comActSocialOrg=new ComActSocialOrg(); BeanUtils.copyProperties(comActSocialOrgVO,comActSocialOrg); this.comActSocialOrgDao.updateById(comActSocialOrg); return R.ok(); - } } return R.fail(); } @@ -99,6 +83,7 @@ if(comActSocialOrg.getUserId()!=null){ AdministratorsUserVO administratorsUserVO=new AdministratorsUserVO(); administratorsUserVO.setUserId(comActSocialOrg.getUserId()); + administratorsUserVO.setCommunityId(comActSocialOrg.getCommunityId()); R r=userService.deleteUserBackstage(administratorsUserVO); if(R.isOk(r)){ this.comActSocialOrgDao.deleteById(id); -- Gitblit v1.7.1