42 lines
1.5 KiB
XML
42 lines
1.5 KiB
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.cm.bigdata.dao2.kpi.IUserLocationDao">
|
|
|
|
<resultMap id="userLocationPO" type="com.cm.bigdata.pojo.pos.kpi.UserLocationPO">
|
|
<id column="id" property="id"/>
|
|
<result column="user_location_id" property="userLocationId"/>
|
|
<result column="user_longitude" property="userLongitude"/>
|
|
<result column="user_latitude" property="userLatitude"/>
|
|
<result column="user_location" property="userLocation"/>
|
|
<result column="is_overstep" property="isOverstep"/>
|
|
<result column="user_name" property="userName"/>
|
|
<result column="creator" property="creator"/>
|
|
<result column="gmt_create" property="gmtCreate"/>
|
|
</resultMap>
|
|
|
|
<select id="listPO" parameterType="map" resultMap="userLocationPO">
|
|
SELECT
|
|
id,
|
|
user_location_id,
|
|
user_longitude,
|
|
user_latitude,
|
|
user_location,
|
|
is_overstep,
|
|
user_name,
|
|
creator,
|
|
gmt_create
|
|
FROM
|
|
city_user_location${tableSuffix}
|
|
WHERE
|
|
is_delete
|
|
<if test="creator != null and creator != ''">
|
|
AND
|
|
creator = #{creator}
|
|
</if>
|
|
<if test="day != null and day != ''">
|
|
AND
|
|
LEFT(gmt_create, 10) = #{day}
|
|
</if>
|
|
</select>
|
|
|
|
</mapper> |