liujie
2026-06-09 c96fbe6b0aeb413a17c429133ee6d81d138144b9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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.xiaopeng.maintenance.mapper.XpVehiclePreparationMapper">
 
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, task_id, vehicle_id, left_front_wheel, right_front_wheel, left_rear_wheel, right_rear_wheel, head_light,
          turn_signal, brake_light, fog_light, body_emblem, cabin_cleaning, lost_items, remarks, operations_user_id,
          is_deleted, create_time, update_time, create_by, update_by
    </sql>
 
    <select id="operationRecords" resultType="com.xiaopeng.maintenance.model.vo.OperationRecordsVO">
        SELECT xvp.id, xvp.vehicle_id,
               xvp.operations_user_id,xvp.create_time AS operationTime
        FROM xp_vehicle_preparation xvp
        WHERE xvp.is_deleted = 0
        AND xvp.vehicle_id = #{query.vehicleId}
        ORDER BY xvp.create_time DESC
    </select>
</mapper>