2026-06-03 66c6ab9883ecb5e0595f02fec6b66e962d1fbf67
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?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.ruoyi.approve.mapper.VehicleBorrowRecordMapper">
 
    <select id="listPage" resultType="com.ruoyi.approve.bean.vo.VehicleBorrowRecordVo">
        SELECT *
        FROM vehicle_borrow_record
        <where>
            deleted = 0
            <if test="record.borrowNo != null and record.borrowNo != ''">
                AND borrow_no LIKE CONCAT('%', #{record.borrowNo}, '%')
            </if>
            <if test="record.vehiclePlateNumber != null and record.vehiclePlateNumber != ''">
                AND vehicle_plate_number LIKE CONCAT('%', #{record.vehiclePlateNumber}, '%')
            </if>
            <if test="record.applicantName != null and record.applicantName != ''">
                AND applicant_name LIKE CONCAT('%', #{record.applicantName}, '%')
            </if>
            <if test="record.borrowStatus != null and record.borrowStatus != ''">
                AND borrow_status = #{record.borrowStatus}
            </if>
            <if test="record.extendStatus != null and record.extendStatus != ''">
                AND extend_status = #{record.extendStatus}
            </if>
            <if test="record.vehicleId != null">
                AND vehicle_id = #{record.vehicleId}
            </if>
        </where>
        ORDER BY create_time DESC
    </select>
 
</mapper>