|
@@ -8,6 +8,8 @@ import com.sky.enumeration.OperationType;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Select;
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
@Mapper
|
|
@Mapper
|
|
public interface EmployeeMapper {
|
|
public interface EmployeeMapper {
|
|
|
|
|
|
@@ -59,6 +61,6 @@ public interface EmployeeMapper {
|
|
@Select("select * from employee where id = #{id}")
|
|
@Select("select * from employee where id = #{id}")
|
|
Employee getById(Integer id);
|
|
Employee getById(Integer id);
|
|
|
|
|
|
- @Select("SELECT * FROM t_loc64 WHERE SQRT( POW(PI() * 12656 * COS((#{volatitude} + lat) * PI() / 360) * (#{volongitude} - lng) / 180, 2) + POW(PI() * 12656 * ((#{volatitude} - lat) / 180), 2) ) < 100 ")
|
|
|
|
- Employee getLocation( double volatitude, double volongitude);
|
|
|
|
|
|
+ @Select("SELECT * FROM t_loc64 WHERE SQRT( POW(PI() * 12656 * COS((#{volatitude} + lat) * PI() / 360) * (#{volongitude} - lng) / 180, 2) + POW(PI() * 12656 * ((#{volatitude} - lat) / 180), 2) ) < 100 limit 3")
|
|
|
|
+ List<Employee> getLocation(double volatitude, double volongitude);
|
|
}
|
|
}
|