<?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.dsh.course.mapper.DriverVerifyMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="BaseResultMap" type="com.dsh.guns.modular.system.model.DriverVerify">
|
<id column="id" property="id"/>
|
<result column="driverId" property="driverId"/>
|
<result column="newCarId" property="newCarId"/>
|
<result column="oldCarId" property="oldCarId"/>
|
<result column="createTime" property="createTime"/>
|
<result column="state" property="state"/>
|
<result column="remark" property="remark"/>
|
<result column="source" property="source"/>
|
<result column="company" property="company"/>
|
<result column="phone" property="phone"/>
|
<result column="sex" property="sex"/>
|
<result column="driverNum" property="driverNum"/>
|
<result column="age" property="age"/>
|
<result column="IdCard" property="idCards"/>
|
<result column="carServer" property="carServer"/>
|
<result column="account" property="account"/>
|
<result column="driverNumImg" property="driverNumImg"/>
|
<result column="address" property="address"/>
|
</resultMap>
|
<select id="getList" resultType="java.util.Map">
|
select * from t_driver_verify where state !=4
|
<if test="sTime != null">
|
and createTime between #{sTime} and #{eTime}
|
</if>
|
<if test="companyName !=null and companyName !=''">
|
and company like concat("%",#{companyName},"%")
|
</if>
|
<if test="phone != null and phone !=''">
|
and phone like concat("%",#{phone},"%")
|
</if>
|
<if test="account !=null and account !=''">
|
and account like concat("%",#{account},"%")
|
</if>
|
<if test="state !=null and state !=''">
|
and state =#{state}
|
</if>
|
order by createTime desc
|
</select>
|
|
|
</mapper>
|