wuxw
2024-03-22 33f61efc7eab6c6d28a3eae15909c6860e8a3d40
service-user/src/main/java/com/java110/user/cmd/owner/EditOwnerCmd.java
@@ -28,6 +28,7 @@
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;
@@ -246,7 +247,7 @@
        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;
        }
        //查询更新后的业主信息
@@ -260,15 +261,14 @@
        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) {