| <?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 >= #{condition.start} | 
|         </if> | 
|         <if test="condition.end != null"> | 
|             AND bill_date <= #{condition.end} | 
|         </if> | 
|         order by bill_date desc | 
|     </select> | 
|   | 
| </mapper> |