| | |
| | | package com.lf.server.service.sys; |
| | | |
| | | import com.lf.server.entity.all.RedisCacheKey; |
| | | import com.lf.server.entity.all.ResAuthEntity; |
| | | import com.lf.server.entity.all.SettingData; |
| | | import com.lf.server.entity.all.StaticData; |
| | | import com.lf.server.entity.ctrl.CoordinateEntity; |
| | | import com.lf.server.entity.ctrl.CountEntity; |
| | | import com.lf.server.entity.data.DownloadEntity; |
| | | import com.lf.server.entity.sys.AttachEntity; |
| | |
| | | import com.lf.server.mapper.sys.ReportMapper; |
| | | import com.lf.server.service.all.RedisService; |
| | | import com.lf.server.service.data.DownloadService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public List<CoordinateEntity> selectExplorationPoints(String code) { |
| | | return reportMapper.selectExplorationPoints(StringHelper.getRightLike(code)); |
| | | } |
| | | |
| | | /** |
| | | * 统计钻孔点面积 |
| | | */ |
| | | private void countExplorationArea(List<CountEntity> list) { |
| | | for (CountEntity ce : list) { |
| | | if (0 == ce.getCount()) { |
| | | continue; |
| | | } |
| | | |
| | | List<CoordinateEntity> ces = selectExplorationPoints(ce.getM3()); |
| | | if (null == ces || ces.size() < 3) { |
| | | continue; |
| | | } |
| | | |
| | | double area = JtsHelper.calcAreaByPoints(ces); |
| | | ce.setArea(area); |
| | | } |
| | | } |
| | | |
| | | /** |