71 lines
3.0 KiB
XML
71 lines
3.0 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.mhd.user.domain.appLocation.repository.mapper.AppLocationMapper">
|
|
|
|
<resultMap type="com.mhd.user.domain.appLocation.repository.po.AppLocationPO" id="AppLocationResult">
|
|
<result property="appLocationId" column="app_location_id" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createByName" column="create_by_name" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateByName" column="update_by_name" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="userId" column="user_id" />
|
|
<result property="longitude" column="longitude" />
|
|
<result property="latitude" column="latitude" />
|
|
<result property="speed" column="speed" />
|
|
<result property="address" column="address" />
|
|
<result property="waybillNum" column="waybill_num" />
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectAppLocationPo">
|
|
select app_location_id, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag, user_id, longitude, latitude, speed, address, waybill_num from app_location
|
|
</sql>
|
|
|
|
<sql id="selectAppLocationPo1">
|
|
<where>
|
|
<if test="createByName != null and createByName != ''">
|
|
and create_by_name like concat('%', #{createByName}, '%')
|
|
</if>
|
|
<if test="updateByName != null and updateByName != ''">
|
|
and update_by_name like concat('%', #{updateByName}, '%')
|
|
</if>
|
|
<if test="userId != null ">
|
|
and user_id = #{userId}
|
|
</if>
|
|
<if test="longitude != null and longitude != ''">
|
|
and longitude = #{longitude}
|
|
</if>
|
|
<if test="latitude != null and latitude != ''">
|
|
and latitude = #{latitude}
|
|
</if>
|
|
<if test="speed != null ">
|
|
and speed = #{speed}
|
|
</if>
|
|
<if test="address != null and address != ''">
|
|
and address = #{address}
|
|
</if>
|
|
<if test="waybillNum != null and waybillNum != ''">
|
|
and waybill_num = #{waybillNum}
|
|
</if>
|
|
<if test="licensePlate != null and licensePlate != ''">
|
|
and license_plate = #{licensePlate}
|
|
</if>
|
|
<if test="startTime != null and endTime != null">
|
|
AND create_time BETWEEN #{startTime} and #{endTime}
|
|
</if>
|
|
|
|
|
|
</where>
|
|
</sql>
|
|
|
|
<select id="queryList" parameterType="com.mhd.user.domain.appLocation.repository.todo.AppLocationDO" resultMap="AppLocationResult">
|
|
<include refid="selectAppLocationPo"/>
|
|
<include refid="selectAppLocationPo1"/>
|
|
order by create_time asc
|
|
</select>
|
|
</mapper> |