| | |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | accountDto.setObjId(ownerDtos.get(0).getMemberId()); |
| | | accountDto.setPartId(ownerDtos.get(0).getCommunityId()); |
| | | List<AccountDto> accountDtos = accountInnerServiceSMOImpl.queryAccounts(accountDto); |
| | | if (accountDtos == null || accountDtos.size() < 1) { |
| | | if (ListUtil.isNull(accountDtos)) { |
| | | return; |
| | | } |
| | | //查询更新后的业主信息 |
| | |
| | | if (!accountDtos.get(0).getLink().equals(owners.get(0).getLink()) || !accountDtos.get(0).getAcctName().equals(owners.get(0).getName())) { |
| | | AccountPo accountPo = new AccountPo(); |
| | | accountPo.setAcctName(owners.get(0).getName()); |
| | | accountPo.setLink(owners.get(0).getLink()); |
| | | accountPo.setoLink(owners.get(0).getLink()); |
| | | accountPo.setAcctId(accountDtos.get(0).getAcctId()); |
| | | accountInnerServiceSMOImpl.updateAccount(accountPo); |
| | | } |
| | | |
| | | AccountPo accountPo = new AccountPo(); |
| | | /*AccountPo accountPo = new AccountPo(); |
| | | accountPo.setoLink(ownerDtos.get(0).getLink()); |
| | | accountPo.setAcctId(accountDtos.get(0).getAcctId()); |
| | | accountInnerServiceSMOImpl.updateAccount(accountPo); |
| | | accountInnerServiceSMOImpl.updateAccount(accountPo);*/ |
| | | } |
| | | |
| | | public void editOwnerPhoto(JSONObject paramInJson) { |