| | |
| | | sysUser.setName(comBatteryStore.getName() + "管理员"); |
| | | sysUser.setPlaintextPassword(comBatteryStore.getPassword()); |
| | | sysUser.setCommunityId(entity.getId()); |
| | | sysUser.setAppId("wx0cef797390444b75"); |
| | | userDao.insert(sysUser); |
| | | return R.ok(); |
| | | } |
| | |
| | | return R.fail("未查询到该记录"); |
| | | } |
| | | BeanUtils.copyProperties(editDto, entity); |
| | | //注册手机不可修改 |
| | | entity.setRegPhone(null); |
| | | if (this.baseMapper.updateById(entity) > 0) { |
| | | return R.ok(); |
| | | } |
| | |
| | | entity.setId(id); |
| | | entity.setIsDel(ComBatteryStore.IsDel.YES); |
| | | if (this.baseMapper.updateById(entity) > 0) { |
| | | //同时删除账号 |
| | | this.baseMapper.deleteStoreUserByStoreId(id); |
| | | return R.ok(); |
| | | } |
| | | return R.fail("删除失败"); |