| | |
| | | import cn.gistack.nky.service.IArimaPredictService; |
| | | import cn.gistack.nky.service.INkyService; |
| | | import cn.gistack.nky.service.IZtApiService; |
| | | import cn.gistack.nky.vo.ArimaPredictVO; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import lombok.AllArgsConstructor; |
| | |
| | | }); |
| | | }else if (type.equals("2")){ |
| | | //渗流 |
| | | cdList.forEach(dataResChildrenPo -> { |
| | | ArimaPredictReqPo arimaPredictReqPo = new ArimaPredictReqPo(dataResChildrenPo, type); |
| | | //循环预测请求 |
| | | nkyService.arimaPredict(arimaPredictReqPo); |
| | | }); |
| | | }else if (type.equals("3") || type.equals("4") || type.equals("5")){ |
| | | cdList.forEach(dataResChildrenPo -> { |
| | | //循环预测请求 |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ArimaPredict> getFutureData(String resCd,String type) { |
| | | List<ArimaPredict> futureData = baseMapper.getFutureData(resCd, type); |
| | | public List<ArimaPredictVO> getFutureData(String resCd, String type) { |
| | | List<ArimaPredictVO> futureData = new ArrayList<>(); |
| | | if (type.equals("3")){ |
| | | //位移另一张表 |
| | | futureData=baseMapper.getFutureDataWy(resCd,type); |
| | | }else{ |
| | | futureData = baseMapper.getFutureData(resCd, type); |
| | | } |
| | | |
| | | futureData.forEach(arimaPredict -> { |
| | | arimaPredict.setPredicts(JSON.parse(arimaPredict.getPredicts().toString())); |
| | | }); |
| | |
| | | cdList = ztApiService.getSy(); |
| | | }else if (type.equals("2")){ |
| | | //获取渗流测点 |
| | | return null; |
| | | cdList = ztApiService.getSl(); |
| | | }else if (type.equals("3") || type.equals("4") || type.equals("5")){ |
| | | //获取位移测点 |
| | | cdList = ztApiService.getWy(); |