| | |
| | | if (StringUtil.isEmpty(ownerId)) { |
| | | return; |
| | | } |
| | | |
| | | //开始锁代码 |
| | | String requestId = DistributedLock.getLockUUID(); |
| | | String key = this.getClass().getSimpleName() + "AddCountDto" + ownerId; |
| | |
| | | Assert.listOnlyOne(ownerDtos, "业主不存在"); |
| | | accountPo.setAcctName(ownerDtos.get(0).getName()); |
| | | accountPo.setPartId(communityId); |
| | | accountPo.setLink(ownerDtos.get(0).getLink()); |
| | | accountInnerServiceSMOImpl.saveAccount(accountPo); |
| | | } finally { |
| | | DistributedLock.releaseDistributedLock(requestId, key); |
| | |
| | | |
| | | @Override |
| | | |
| | | public List<OwnerDto> queryOwners(@RequestBody OwnerDto ownerDto) { |
| | | public List<OwnerDto> queryOwners(@RequestBody OwnerDto ownerDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |