| | |
| | | import com.java110.dto.community.CommunityDto; |
| | | import com.java110.intf.community.ICommunityInnerServiceSMO; |
| | | import com.java110.po.community.CommunityAttrPo; |
| | | import com.java110.utils.exception.DAOException; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.ListUtil; |
| | | import org.slf4j.Logger; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | List<Map> communityMembers = communityServiceDaoImpl.getCommunityMembers(BeanConvertUtil.beanCovertMap(communityMemberDto)); |
| | | return BeanConvertUtil.covertBeanList(communityMembers, CommunityMemberDto.class); |
| | | } |
| | | @Override |
| | | public List<CommunityDto> getCommunitys(){ |
| | | return communityServiceDaoImpl.getCommunitys(); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<CommunityDto> getStoreCommunitys(CommunityMemberDto communityMemberDto) { |
| | |
| | | |
| | | /** |
| | | * 保存小区属性 |
| | | * |
| | | * @param communityAttrPo 数据对象分享 |
| | | * @return |
| | | */ |
| | |
| | | |
| | | List<String> communityIds = new ArrayList<>(); |
| | | |
| | | if (communitys == null || communitys.size() < 1) { |
| | | if (ListUtil.isNull(communitys)) { |
| | | return communitys; |
| | | } |
| | | for (CommunityDto tmpCommunityDto : communitys) { |
| | |
| | | info.put("communityIds", communityIds.toArray(new String[communityIds.size()])); |
| | | List<CommunityAttrDto> communityAttrDtos = BeanConvertUtil.covertBeanList(communityServiceDaoImpl.getCommunityAttrs(info), CommunityAttrDto.class); |
| | | |
| | | if (communityAttrDtos == null || communityAttrDtos.size() < 1) { |
| | | if (ListUtil.isNull(communityAttrDtos)) { |
| | | return communitys; |
| | | } |
| | | |
| | | |
| | | for (CommunityDto tmpCommunityDto : communitys) { |
| | | List<CommunityAttrDto> tmpCommunityAttrDtos = new ArrayList<>(); |
| | |
| | | } |
| | | } |
| | | tmpCommunityDto.setCommunityAttrDtos(tmpCommunityAttrDtos); |
| | | |
| | | } |
| | | |
| | | return communitys; |