xuhy
2024-05-20 43febc1135430529aa1f573ea75a8c7dfa025d89
ManagementNTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/TDriverFacialFailMapper.xml
@@ -17,5 +17,23 @@
    <sql id="Base_Column_List">
        id, driverId, city, cityCode, facialPicture, createTime, isDelete
    </sql>
    <select id="getDriverFacialFailList" resultType="java.util.Map">
        SELECT tdff.id, tdff.driverId, tdff.city, tdff.cityCode, tdff.facialPicture, tdff.createTime, tdff.isDelete ,td.`name` AS driverName,td.phone AS driverPhone
        FROM t_driver_facial_fail tdff
        left join t_driver td on td.id = tdff.driverId
        <where>
            <if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''">
                AND (tdff.createTime between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59'))
            </if>
            <if test="name != null and name != ''">
                AND td.name  LIKE CONCAT('%',#{name},'%')
            </if>
            <if test="phone != null and phone != ''">
                AND td.phone  LIKE CONCAT('%',#{phone},'%')
            </if>
            AND tdff.isDelete = 1
        </where>
        order by tdff.createTime desc
    </select>
</mapper>