| | |
| | | import com.java110.intf.user.IOwnerV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | |
| | | url = "http://{ip}:{port}/app/owner.queryCurrentOwner", |
| | | resource = "userDoc", |
| | | author = "吴学文", |
| | | serviceCode = "room.queryRooms" |
| | | serviceCode = "room.queryRooms", |
| | | seq = 13 |
| | | ) |
| | | |
| | | @Java110ParamsDoc(params = { |
| | |
| | | OwnerAppUserDto ownerAppUserDto = new OwnerAppUserDto(); |
| | | ownerAppUserDto.setUserId(userId); |
| | | ownerAppUserDto.setCommunityId(reqJson.getString("communityId")); |
| | | //ownerAppUserDto.setMemberId(reqJson.getString("memberId")); |
| | | List<OwnerAppUserDto> ownerAppUserDtos = ownerAppUserInnerServiceSMOImpl.queryOwnerAppUsers(ownerAppUserDto); |
| | | |
| | | if (ownerAppUserDtos == null || ownerAppUserDtos.size() < 1) { |
| | | if (ListUtil.isNull(ownerAppUserDtos)) { |
| | | throw new CmdException("未绑定业主"); |
| | | } |
| | | |
| | | String memberId = ownerAppUserDtos.get(0).getMemberId(); |
| | | String memberId = ""; |
| | | for (OwnerAppUserDto tmpOwnerAppUserDto : ownerAppUserDtos) { |
| | | if ("-1".equals(tmpOwnerAppUserDto.getMemberId())) { |
| | | continue; |
| | | } |
| | | |
| | | if ("-1".equals(memberId)) { |
| | | memberId = tmpOwnerAppUserDto.getMemberId(); |
| | | } |
| | | |
| | | if (StringUtil.isEmpty(memberId)) { |
| | | throw new CmdException("未绑定业主"); |
| | | } |
| | | |