陶杰
2024-08-22 ee9032d9baf5f33e376d2d2699136e0a7b26bec7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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.mzl.flower.mapper.payment.BillMapper">
 
    <select id="selectBillList" resultType="com.mzl.flower.dto.response.payment.BillListDTO">
        select *
        from t_bill
        where deleted = 0
        <if test="condition.type != null and condition.type != ''">
            AND type = #{condition.type}
        </if>
        <if test="condition.start != null">
            AND bill_date &gt;= #{condition.start}
        </if>
        <if test="condition.end != null">
            AND bill_date &lt;= #{condition.end}
        </if>
        order by bill_date desc
    </select>
 
</mapper>