|
@@ -91,10 +91,57 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="carNo != null and carNo != ''"> and car_no = #{carNo}</if>
|
|
|
<if test="customerPhone != null and customerPhone != ''"> and customer_phone = #{customerPhone}</if>
|
|
|
<if test="customerGrade != null and customerGrade != ''"> and customer_grade = #{customerGrade}</if>
|
|
|
+ <if test="likeConsumer != null and likeConsumer != ''"> and customer like concat('%',#{likeConsumer}, '%')</if>
|
|
|
+ <if test="likeCarNo != null and likeCarNo != ''"> and car_no like concat('%',#{likeCarNo}, '%') </if>
|
|
|
+ <if test="likeCustomerPhone != null and likeCustomerPhone != ''"> and customer_phone like concat('%',#{likeCustomerPhone}, '%') </if>
|
|
|
+ </where>
|
|
|
+ order by order_id desc
|
|
|
+ </select>
|
|
|
+ <!--查询导出数据-->
|
|
|
+ <select id="selectPayOrderExport" parameterType="PayOrder" resultMap="PayOrderResult">
|
|
|
+ select order_no,oil_name,oil_pirce,order_liters, amt,consumer,oil_personnel,oil_gun,pay_type,pay_way
|
|
|
+ <where>
|
|
|
+ <if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if>
|
|
|
+ <if test="stationId != null "> and station_id = #{stationId}</if>
|
|
|
+ <if test="stationName != null and stationName != ''"> and station_name like concat('%', #{stationName}, '%')</if>
|
|
|
+ <if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
+ <if test="consumerId != null "> and consumer_id = #{consumerId}</if>
|
|
|
+ <if test="consumer != null and consumer != ''"> and consumer = #{consumer}</if>
|
|
|
+ <if test="oilGun != null and oilGun != ''"> and oil_gun = #{oilGun}</if>
|
|
|
+ <if test="oilName != null and oilName != ''"> and oil_name like concat('%', #{oilName}, '%')</if>
|
|
|
+ <if test="oilPirce != null "> and oil_pirce = #{oilPirce}</if>
|
|
|
+ <if test="oilType != null and oilType != ''"> and oil_type = #{oilType}</if>
|
|
|
+ <if test="orderLiters != null "> and order_liters = #{orderLiters}</if>
|
|
|
+ <if test="amt != null "> and amt = #{amt}</if>
|
|
|
+ <if test="receivableAmt != null "> and receivable_amt = #{receivableAmt}</if>
|
|
|
+ <if test="receivedAmt != null "> and received_amt = #{receivedAmt}</if>
|
|
|
+ <if test="discountAmt != null "> and discount_amt = #{discountAmt}</if>
|
|
|
+ <if test="discountCouponAmt != null "> and discount_coupon_amt = #{discountCouponAmt}</if>
|
|
|
+ <if test="discountCoupon != null and discountCoupon != ''"> and discount_coupon = #{discountCoupon}</if>
|
|
|
+ <if test="wxAmt != null "> and wx_amt = #{wxAmt}</if>
|
|
|
+ <if test="zfbAmt != null "> and zfb_amt = #{zfbAmt}</if>
|
|
|
+ <if test="posAmt != null "> and pos_amt = #{posAmt}</if>
|
|
|
+ <if test="xjAmt != null "> and xj_amt = #{xjAmt}</if>
|
|
|
+ <if test="didiAppAmt != null "> and didi_app_amt = #{didiAppAmt}</if>
|
|
|
+ <if test="tyAppAmt != null "> and ty_app_amt = #{tyAppAmt}</if>
|
|
|
+ <if test="otherAmt != null "> and other_amt = #{otherAmt}</if>
|
|
|
+ <if test="dzkAmt != null "> and dzk_amt = #{dzkAmt}</if>
|
|
|
+ <if test="score != null "> and score = #{score}</if>
|
|
|
+ <if test="memberNo != null and memberNo != ''"> and member_no = #{memberNo}</if>
|
|
|
+ <if test="memberAmt != null "> and member_amt = #{memberAmt}</if>
|
|
|
+ <if test="printCount != null "> and print_count = #{printCount}</if>
|
|
|
+ <if test="payType != null and payType != ''"> and pay_type = #{payType}</if>
|
|
|
+ <if test="payWay != null and payWay != ''"> and pay_way = #{payWay}</if>
|
|
|
+ <if test="oilPersonnel != null and oilPersonnel != ''"> and oil_personnel = #{oilPersonnel}</if>
|
|
|
+ <if test="payDate != null "> and pay_date = #{payDate}</if>
|
|
|
+ <if test="createdDate != null "> and created_date = #{createdDate}</if>
|
|
|
+ <if test="orderType != null and orderType != ''"> and order_type = #{orderType}</if>
|
|
|
+ <if test="carNo != null and carNo != ''"> and car_no = #{carNo}</if>
|
|
|
+ <if test="customerPhone != null and customerPhone != ''"> and customer_phone = #{customerPhone}</if>
|
|
|
+ <if test="customerGrade != null and customerGrade != ''"> and customer_grade = #{customerGrade}</if>
|
|
|
</where>
|
|
|
order by order_id desc
|
|
|
</select>
|
|
|
-
|
|
|
<select id="selectPayOrderById" parameterType="Long" resultMap="PayOrderResult">
|
|
|
<include refid="selectPayOrderVo"/>
|
|
|
where order_id = #{orderId}
|