1. 程式人生 > >java 代碼調用函數

java 代碼調用函數

user oat float div code distance clas sta class

sql 中調用函數 getDistance(lng1 float, lat1 float, lng2 float, lat2 float)

例如:

SELECT
    id,
    f_seller_id sellerId,
    f_seller_user_id sellerUserId,
    NAME,
    icon_path iconPath,
    remark,
    getDistance (
        longitude,
        latitude,
        ifnull(: lng, longitude),
        ifnull(: lat, latitude)
    ) distance

java 代碼調用函數