|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.air.land.service.impl; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil; |
|
|
|
|
import com.air.applets.dto.LandDto; |
|
|
|
|
import com.air.applets.vo.LandVo; |
|
|
|
|
import com.air.land.dto.LandListedDto; |
|
|
|
@ -61,6 +62,32 @@ public class LandListedServiceImpl extends ServiceImpl<LandListedMapper, LandLis
|
|
|
|
|
return R.ok(statisticsDto, "查询成功"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R<List<LandListedStatisticsDto>> appletsCalendar(String date, String city) { |
|
|
|
|
List<LandListedStatisticsDto> annoDateList = baseMapper.appletsCalendarToAnnoDate(date, city); |
|
|
|
|
List<LandListedStatisticsDto> auctionDateList = baseMapper.appletsCalendarToAuctionDate(date, city); |
|
|
|
|
if (CollectionUtil.isEmpty(annoDateList)){ |
|
|
|
|
return R.ok(auctionDateList); |
|
|
|
|
} |
|
|
|
|
if (CollectionUtil.isEmpty(auctionDateList)){ |
|
|
|
|
return R.ok(annoDateList); |
|
|
|
|
} |
|
|
|
|
List<LandListedStatisticsDto> indexs = new ArrayList<>(); |
|
|
|
|
for(LandListedStatisticsDto annoDateVo : annoDateList){ |
|
|
|
|
for(int i =0 ;i<auctionDateList.size();i++){ |
|
|
|
|
if (annoDateVo.getDate().equals(auctionDateList.get(i).getDate())){ |
|
|
|
|
annoDateVo.setAuctionCount(auctionDateList.get(i).getAuctionCount()); |
|
|
|
|
indexs.add(auctionDateList.get(i)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
auctionDateList.removeAll(indexs); |
|
|
|
|
if (CollectionUtil.isNotEmpty(auctionDateList)){ |
|
|
|
|
annoDateList.addAll(auctionDateList); |
|
|
|
|
} |
|
|
|
|
return R.ok(annoDateList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean importLandListExcel(MultipartFile file) { |
|
|
|
|
List<LandListed> dataList; |
|
|
|
|