| File was renamed from xp-robotaxi-operation-boot/src/main/resources/mapper/operation/XpTestPointMapper.xml |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.xiaopeng.operation.mapper.XpTestPointMapper"> |
| | | <mapper namespace="com.xiaopeng.map.mapper.XpTestPointMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.xiaopeng.api.model.operation.XpTestPoint"> |
| | | <resultMap id="BaseResultMap" type="com.xiaopeng.api.model.map.XpTestPoint"> |
| | | <id column="id" property="id" /> |
| | | <result column="point_name" property="pointName" /> |
| | | <result column="point_poi" property="pointPoi" /> |
| | |
| | | <sql id="Base_Column_List"> |
| | | id,electronic_area_id, point_name, point_poi, point_number, operation_status, point_type, verification_status, parking_time_limit, operation_type, effective_period, effective_time_period, remarks, point_pictures, point_lon, point_lat, is_deleted, create_time, update_time, create_by, update_by |
| | | </sql> |
| | | <select id="pointMap" resultType="com.xiaopeng.api.model.operation.XpTestPoint"> |
| | | <select id="pointMap" resultType="com.xiaopeng.api.model.map.XpTestPoint"> |
| | | select t1.*, |
| | | ROUND( |
| | | 6378.138 * 2 * ASIN( |
| | |
| | | </if> |
| | | order by distance asc |
| | | </select> |
| | | <select id="listAll" resultType="com.xiaopeng.api.model.operation.XpTestPoint"> |
| | | <select id="listAll" resultType="com.xiaopeng.api.model.map.XpTestPoint"> |
| | | select t1.* |
| | | from xp_test_point t1 |
| | | where t1.is_deleted = 0 |
| | |
| | | </if> |
| | | |
| | | </select> |
| | | <select id="pageList" resultType="com.xiaopeng.api.model.operation.XpTestPoint"> |
| | | <select id="pageList" resultType="com.xiaopeng.api.model.map.XpTestPoint"> |
| | | select xp.id,xp.point_number as pointNumber,xp.point_name as pointName,xp.point_poi as pointPoi, |
| | | xp.point_address as pointAddress, |
| | | xp.point_lon as pointLon,xp.point_lat as pointLat,xp.create_time as createTime,xp.create_by as createBy |