| | |
| | | this.comPropertyDao.insert(comProperty); |
| | | return R.ok(); |
| | | } |
| | | return R.fail(r.getMsg()); |
| | | return R.fail("账号或手机号已存在"); |
| | | } |
| | | return R.fail(); |
| | | } |
| | |
| | | if(comPropertyVO!=null){ |
| | | ComProperty comProperty=new ComProperty(); |
| | | BeanUtils.copyProperties(comPropertyVO,comProperty); |
| | | if(comPropertyVO.getRoleId()!=null){ |
| | | ComProperty comPropertyBase=this.comPropertyDao.selectById(comPropertyVO.getId()); |
| | | AdministratorsUserVO administratorsUserVO=new AdministratorsUserVO(); |
| | | administratorsUserVO.setUserId(comPropertyBase.getUserId()); |
| | | administratorsUserVO.setRoleId(comPropertyVO.getRoleId()); |
| | | administratorsUserVO.setLastLoginTime(DateUtil.date()); |
| | | this.userService.putUserBackstage(administratorsUserVO); |
| | | } |
| | | this.comPropertyDao.updateById(comProperty); |
| | | return R.ok(); |
| | | } |