luodangjia
2024-05-21 2464055f83b385d745bd52530564235ab89b2939
DriverNTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/specialTrain/server/impl/OrderPrivateCarServiceImpl.java
@@ -21,6 +21,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import javax.annotation.Resource;
import java.math.BigDecimal;
@@ -305,6 +306,15 @@
                orderPrivateCar.setGetoffAddress(address);
                orderPrivateCar.setGetoffTime(new Date());
                orderPrivateCar.setEndServiceTime(new Date());
                //设置结束的时候的经纬度
                if (orderPrivateCar.getEndLat()!=null){
                        orderPrivateCar.setEndLon(lon);
                        orderPrivateCar.setEndLat(lat);
                        orderPrivateCar.setEndAddress(address);
                }
                break;
        }
        this.updateById(orderPrivateCar);