| | |
| | | import com.panzhihua.common.utlis.Snowflake; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_community.service.ComMngVillageService; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | /** |
| | | * @author: llming |
| | |
| | | } |
| | | List<ComMngVillageDO> comMngVillageDOS = comActVillageDAO.selectList(param); |
| | | BeanUtils.copyProperties(comMngVillageDOS, vos); |
| | | if(CollectionUtils.isEmpty(comMngVillageDOS)){ |
| | | //默认添加小区 |
| | | ComMngVillageDO comMngVillageDO=new ComMngVillageDO(); |
| | | comMngVillageDO.setVillageId(1540264792718184449L); |
| | | comMngVillageDO.setType(1); |
| | | comMngVillageDO.setName("默认小区"); |
| | | comMngVillageDOS.add(comMngVillageDO); |
| | | } |
| | | return R.ok(comMngVillageDOS); |
| | | } |
| | | return R.fail("暂无小区数据"); |