yanderong
2026-07-09 0b59f96a3e1fb1f16ee3fa662a5d6ca0600d8842
UserYKDTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/ServerCarModelServiceImpl.java
@@ -173,19 +173,19 @@
     * @throws Exception
     */
    public List<ServerCarModelWarpper> getPrice(Integer companyId, double distance, long duration, long wait, Integer type, Map<String, String> geocode) throws Exception {
        System.err.println("预估里程:" + distance);
        System.err.println("预估时间:" + duration);
        log.debug("预估里程:" + distance);
        log.debug("预估时间:" + duration);
        String provinceCode = geocode.get("provinceCode");
        String cityCode = geocode.get("cityCode");
        String districtCode = geocode.get("districtCode");
        //获取匹配的城市价格配置
        SystemPriceCity systemPriceCity = systemPriceCityService.queryOne(provinceCode, cityCode, districtCode);
        System.err.println("获取匹配的城市价格配置:" + systemPriceCity);
        log.debug("获取匹配的城市价格配置:" + systemPriceCity);
        if (null == systemPriceCity) {
            return new ArrayList<>();
        }
        List<Map<String, Object>> list = serverCarModelMapper.queryServerCarModel(type);
        System.err.println("获取匹配的城市价格配置111:" + list);
        log.debug("获取匹配的城市价格配置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());
@@ -431,11 +431,7 @@
     * 专车费用计算
     */
    public Map<String, Object> calculationPrice(JSONObject rule, double distance, long duration, long wait, Double waitMoney) throws Exception {
        System.err.println("专车费计算参数1:" + rule);
        System.err.println("专车费计算参数2:" + distance);
        System.err.println("专车费计算参数3:" + duration);
        System.err.println("专车费计算参数4:" + wait);
        System.err.println("专车费计算参数5:" + waitMoney);
        log.debug("专车费计算参数1:{},参数2: {},参数3: {},参数4: {},参数5: {}", rule, distance, duration, wait, waitMoney);
        Map<String, Object> map = new HashMap<>();
        Date date = new Date();