| | |
| | | first = baseWarppers.stream().filter(s->s.getId() == 2).findFirst(); |
| | | if(first.isPresent()){ |
| | | serverCarModelWarpper = this.getTextPrice(query.getId(), distance1_, duration_, 0, 2, geocode); |
| | | price.add(serverCarModelWarpper); |
| | | if(serverCarModelWarpper!=null){ |
| | | price.add(serverCarModelWarpper); |
| | | } |
| | | } |
| | | return ResultUtil.success(price); |
| | | } |
| | |
| | | String districtCode = geocode.get("districtCode"); |
| | | //获取匹配的城市价格配置 |
| | | SystemPriceCity systemPriceCity = systemPriceCityService.queryOne(provinceCode, cityCode, districtCode); |
| | | System.err.println("获取匹配的城市价格配置:" + systemPriceCity); |
| | | if (null == systemPriceCity) { |
| | | return new ArrayList<>(); |
| | | } |
| | | List<Map<String, Object>> list = serverCarModelMapper.queryServerCarModel(type); |
| | | System.err.println("获取匹配的城市价格配置111:" + list); |
| | | List<ServerCarModelWarpper> data = new ArrayList<>(); |
| | | for (Map<String, Object> map : list) { |
| | | Map<String, Object> query1 = systemPriceMapper.query(companyId, type, Integer.valueOf(map.get("id").toString()), systemPriceCity.getId()); |