chengf
2025-08-21 bde271fdbab51e654a293dba02a31eab8ff3ea8b
java110-db/src/main/resources/mapper/common/CarInoutServiceDaoImplMapper.xml
@@ -90,7 +90,8 @@
        out_rec.out_time,
        out_rec.out_time AS outTime,
        td1.name AS stateName,
        out_rec.payment_amount AS money
        out_rec.payment_amount AS money,
        t.create_time  -- 新增排序字段到SELECT列表
        FROM
        car_inout t
        -- 先左连接出场记录,确保out_rec表在前面定义
@@ -219,9 +220,6 @@
        </if>
        <if test="startTime != null and startTime != ''">
            and t.in_time &gt; #{startTime}
        </if>
        <if test="direction != null and direction != ''">
            and t.direction &gt; #{direction}
        </if>
        <if test="endTime != null and endTime != ''">
            and t.out_time &lt; #{endTime}