| | |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | | import java.util.ArrayList; |
| | |
| | | ownerDto.setLink(reqJson.getString("link")); |
| | | List<OwnerDto> ownerDtos = ownerInnerServiceSMOImpl.queryOwnerMembers(ownerDto); |
| | | |
| | | if (ownerDtos == null || ownerDtos.size() < 0) { |
| | | if (ownerDtos == null || ownerDtos.size() < 1) { |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | return; |
| | | } |
| | |
| | | List<String> communityIds = new ArrayList<>(); |
| | | for (OwnerDto tmpOwnerDto : ownerDtos) { |
| | | communityIds.add(tmpOwnerDto.getCommunityId()); |
| | | tmpOwnerDto.setAppUserName(tmpOwnerDto.getName()); |
| | | } |
| | | |
| | | CommunityDto communityDto = new CommunityDto(); |
| | | communityDto.setState("1100"); |
| | | communityDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | List<CommunityDto> communityDtos = communityInnerServiceSMOImpl.queryCommunitys(communityDto); |
| | | if(communityDtos == null || communityDtos.size()<1){ |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | return ; |
| | | } |
| | | for (OwnerDto tmpOwnerDto : ownerDtos) { |
| | | for (CommunityDto tmpCommunityDto : communityDtos) { |
| | | if (!tmpCommunityDto.getCommunityId().equals(tmpOwnerDto.getCommunityId())) { |