|
@@ -53,7 +53,96 @@
|
|
|
FROM
|
|
FROM
|
|
|
c_charge_order_info
|
|
c_charge_order_info
|
|
|
<where>
|
|
<where>
|
|
|
|
|
+ is_deleted = 0
|
|
|
|
|
+ <if test="queryParams.maspStatus != null">
|
|
|
|
|
+ AND masp_status = #{queryParams.maspStatus}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="queryParams.status != null">
|
|
|
|
|
+ AND status = #{queryParams.status}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="queryParams.startTime != null">
|
|
|
|
|
+ AND create_time <![CDATA[ >= ]]> #{queryParams.startTime,jdbcType=DATE}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="queryParams.endTime != null">
|
|
|
|
|
+ AND create_time <![CDATA[ <= ]]> #{queryParams.endTime,jdbcType=DATE}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="queryParams.phoneNum != null">
|
|
|
|
|
+ AND phone_num = #{queryParams.phoneNum}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="queryParams.stopType != null">
|
|
|
|
|
+ AND stop_type = #{queryParams.stopType}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="queryParams.orderType != null">
|
|
|
|
|
+ AND order_type = #{queryParams.orderType}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+ <select id="getPage" resultType="com.zsElectric.boot.business.model.vo.ChargeOrderInfoVO">
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ id,
|
|
|
|
|
+ user_id,
|
|
|
|
|
+ order_type,
|
|
|
|
|
+ ec_id,
|
|
|
|
|
+ equipment_id,
|
|
|
|
|
+ charge_order_no,
|
|
|
|
|
+ start_time,
|
|
|
|
|
+ end_time,
|
|
|
|
|
+ charge_time,
|
|
|
|
|
+ status,
|
|
|
|
|
+ third_party_total_cost,
|
|
|
|
|
+ third_party_serverfee,
|
|
|
|
|
+ third_party_elecfee,
|
|
|
|
|
+ total_charge,
|
|
|
|
|
+ real_cost,
|
|
|
|
|
+ real_service_cost,
|
|
|
|
|
+ stop_type,
|
|
|
|
|
+ phone_num,
|
|
|
|
|
+ plate_num,
|
|
|
|
|
+ stop_reason,
|
|
|
|
|
+ charge_details,
|
|
|
|
|
+ third_party_station_id,
|
|
|
|
|
+ pre_amt,
|
|
|
|
|
+ real_predict_service_cost,
|
|
|
|
|
+ masp_amount,
|
|
|
|
|
+ masp_real_amount,
|
|
|
|
|
+ total_masp_money,
|
|
|
|
|
+ masp_status,
|
|
|
|
|
+ masp_time,
|
|
|
|
|
+ masp_desc,
|
|
|
|
|
+ discount_money,
|
|
|
|
|
+ discount_desc,
|
|
|
|
|
+ discount_info_id,
|
|
|
|
|
+ real_third_cost,
|
|
|
|
|
+ firm_id,
|
|
|
|
|
+ firm_price,
|
|
|
|
|
+ coupon_price,
|
|
|
|
|
+ coupon_id,
|
|
|
|
|
+ remark,
|
|
|
|
|
+ create_by,
|
|
|
|
|
+ create_time,
|
|
|
|
|
+ update_by,
|
|
|
|
|
+ update_time,
|
|
|
|
|
+ version,
|
|
|
|
|
+ is_deleted
|
|
|
|
|
+ FROM
|
|
|
|
|
+ c_charge_order_info
|
|
|
|
|
+ <where>
|
|
|
|
|
+ is_deleted = 0
|
|
|
|
|
+ <if test="queryParams.userId != null">
|
|
|
|
|
+ AND user_id = #{queryParams.userId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="queryParams.status != null">
|
|
|
|
|
+ AND status = #{queryParams.status}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="queryParams.startTime != null">
|
|
|
|
|
+ AND create_time <![CDATA[ >= ]]> #{queryParams.startTime,jdbcType=DATE}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="queryParams.endTime != null">
|
|
|
|
|
+ AND create_time <![CDATA[ <= ]]> #{queryParams.endTime,jdbcType=DATE}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ ORDER BY
|
|
|
|
|
+ create_time DESC
|
|
|
|
|
+ </select>
|
|
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|