|
|
|
@ -7,10 +7,13 @@ import com.air.applets.vo.LandVo;
|
|
|
|
|
import com.air.land.dto.LandListedDto; |
|
|
|
|
import com.air.land.dto.LandListedStatisticsDto; |
|
|
|
|
import com.air.land.entity.LandListed; |
|
|
|
|
import com.air.land.entity.LandListedLonLat; |
|
|
|
|
import com.air.land.mapper.LandListedMapper; |
|
|
|
|
import com.air.land.service.LandListedLonLatService; |
|
|
|
|
import com.air.land.service.LandListedService; |
|
|
|
|
import com.air.land.vo.LandListedAppletsVo; |
|
|
|
|
import com.air.utils.DateUtil; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
|
import com.cinderella.framework.common.core.exception.BusinessException; |
|
|
|
@ -22,7 +25,9 @@ import org.apache.poi.xssf.usermodel.XSSFCell;
|
|
|
|
|
import org.apache.poi.xssf.usermodel.XSSFRow; |
|
|
|
|
import org.apache.poi.xssf.usermodel.XSSFSheet; |
|
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
@ -42,6 +47,9 @@ import java.util.List;
|
|
|
|
|
@Service |
|
|
|
|
public class LandListedServiceImpl extends ServiceImpl<LandListedMapper, LandListed> implements LandListedService { |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private LandListedLonLatService listedLonLatService; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R<Page<LandListedDto>> getLandListedByDate(QueryPage page, LandListedAppletsVo appletsVo) { |
|
|
|
|
Page<LandListedDto> page1 = page.toPage(); |
|
|
|
@ -104,8 +112,10 @@ public class LandListedServiceImpl extends ServiceImpl<LandListedMapper, LandLis
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<List<String>> getLandList(List<String> ids) { |
|
|
|
|
// List<LandListed> landListeds = this.list();
|
|
|
|
|
List<LandListed> landListeds = this.listByIds(ids); |
|
|
|
|
if (CollectionUtil.isEmpty(landListeds)){ |
|
|
|
|
throw new BusinessException("未查询到已挂牌地块数据!"); |
|
|
|
|
} |
|
|
|
|
List<List<String>> list = new ArrayList<>(); |
|
|
|
|
landListeds.forEach(landListed -> { |
|
|
|
|
list.add(entityToList(landListed)); |
|
|
|
@ -136,6 +146,14 @@ public class LandListedServiceImpl extends ServiceImpl<LandListedMapper, LandLis
|
|
|
|
|
return baseMapper.selectId(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
@Override |
|
|
|
|
public boolean removeLandByIds(List<String> landListedIds){ |
|
|
|
|
this.removeByIds(landListedIds); |
|
|
|
|
listedLonLatService.remove(Wrappers.<LandListedLonLat>query().lambda().in(LandListedLonLat::getLandListedId,landListedIds)); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 导入地块数据 |
|
|
|
|
* |
|
|
|
|