|  |  |  | 
|---|
|  |  |  | import com.doumee.dao.business.vo.CompanyTree; | 
|---|
|  |  |  | import com.doumee.dao.business.vo.ProjectDataVO; | 
|---|
|  |  |  | import com.doumee.dao.business.vo.ProjectTree; | 
|---|
|  |  |  | import com.doumee.service.business.AreasService; | 
|---|
|  |  |  | import com.doumee.service.business.YwProjectService; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private YwProjectMapper ywProjectMapper; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private AreasService areasService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private YwFloorMapper ywFloorMapper; | 
|---|
|  |  |  | 
|---|
|  |  |  | queryWrapper.lambda().eq(YwProject::getAddr, pageWrap.getModel().getAddr()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | queryWrapper.lambda().orderByDesc(YwProject::getCreateDate); | 
|---|
|  |  |  | return PageData.from(ywProjectMapper.selectPage(page, queryWrapper)); | 
|---|
|  |  |  | PageData<YwProject> data = PageData.from(ywProjectMapper.selectPage(page, queryWrapper)); | 
|---|
|  |  |  | if(data!=null && data.getRecords()!=null){ | 
|---|
|  |  |  | for(YwProject model :data.getRecords()){ | 
|---|
|  |  |  | if(model.getAreaId()!=null){ | 
|---|
|  |  |  | Areas a = areasService.findById(model.getAreaId(),Constants.TWO); | 
|---|
|  |  |  | if(a != null){ | 
|---|
|  |  |  | model.setAreaName(a.getName()); | 
|---|
|  |  |  | model.setCityId(a.getCityId()); | 
|---|
|  |  |  | model.setCityName(a.getCityName()); | 
|---|
|  |  |  | model.setProvinceId(a.getProvinceId()); | 
|---|
|  |  |  | model.setProvinceName(a.getProvinceName()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return data; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|