cgf
2025-08-23 9ec0a61f90ac2464eebc643bfe2d93ac9ba6e569
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
33
34
35
36
<?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="carInoutFeeHistoryDaoImpl">
 
    <insert id="saveCarInoutFeeHistory" parameterType="Map">
        insert into car_inout_fee_history(id,inout_id,receipt_no,invoice_no,pay_amount,payer_name,prime_rate,pay_time)
        values (#{id}, #{inoutId}, #{receiptNo}, #{invoiceNo}, #{payAmount}, #{payerName}, #{primeRate}, #{payTime})
    </insert>
 
    <select id="getCarInoutFeeHistory" parameterType="Map" resultType="Map">
        select
            t.id,
            t.inout_id as inoutId,
            t.receipt_no as receiptNo,
            t.invoice_no as invoiceNo,
            t.pay_amount as payAmount,
            t.payer_name as payerName,
            t.prime_rate as primeRate,
            t.pay_time as payTime,
            td.`name` as primeRateName
        from car_inout_fee_history t
        left join t_dict td on t.prime_rate = td.status_cd and td.table_name = 'pay_fee_detail' and td.table_columns = 'prime_rate'
        where 1 =1
        <if test="inoutId !=null and inoutId != ''">
            and t.inout_id= #{inoutId}
        </if>
 
    </select>
 
 
 
 
 
 
</mapper>