Browse Source

经纬度

Trick 6 years ago
parent
commit
93bb9f92c2

+ 3 - 3
svr/svr-patient/src/main/java/com/yihu/jw/patient/service/servicepackage/PackageService.java

@ -175,14 +175,14 @@ public class PackageService {
                    "    POW( " +
                    "    POW( " +
                    "     SIN( " +
                    "     SIN( " +
                    "      ( " +
                    "      ( " +
                    "       "+longitude+" * PI() / 180 - o.latitude * PI() / 180 " +
                    "       "+latitude+" * PI() / 180 - o.latitude * PI() / 180 " +
                    "      ) / 2 " +
                    "      ) / 2 " +
                    "     ), " +
                    "     ), " +
                    "     2 " +
                    "     2 " +
                    "    ) + COS("+longitude+" * PI() / 180) * COS(o.latitude * PI() / 180) * POW( " +
                    "    ) + COS("+latitude+" * PI() / 180) * COS(o.latitude * PI() / 180) * POW( " +
                    "     SIN( " +
                    "     SIN( " +
                    "      ( " +
                    "      ( " +
                    "       "+latitude+" * PI() / 180 - o.longitude * PI() / 180 " +
                    "       "+longitude+" * PI() / 180 - o.longitude * PI() / 180 " +
                    "      ) / 2 " +
                    "      ) / 2 " +
                    "     ), " +
                    "     ), " +
                    "     2 " +
                    "     2 " +