mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-01 00:20:03 +08:00
update 查询查询会员申请开票记录
This commit is contained in:
@@ -138,6 +138,8 @@
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getInvoiceListWithAuth" resultType="com.jsowell.pile.vo.web.OrderInvoiceRecordVO">
|
||||
SELECT
|
||||
t1.id,
|
||||
@@ -170,4 +172,31 @@
|
||||
order by t1.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectInvoiceVOList" resultType="com.jsowell.pile.vo.web.OrderInvoiceRecordVO">
|
||||
SELECT
|
||||
t1.member_id,
|
||||
t1.merchant_id AS merchantId,
|
||||
t2.merchant_name AS merchantName,
|
||||
t2.service_phone AS merchantTel,
|
||||
t1.status,
|
||||
t1.total_amount AS totalAmount,
|
||||
t1.total_service_amount AS totalServiceAmount,
|
||||
t1.total_elec_amount AS totalElecAmount,
|
||||
t1.create_time AS createTime
|
||||
FROM
|
||||
order_invoice_record t1
|
||||
JOIN pile_merchant_info t2 ON t1.merchant_id = t2.id
|
||||
AND t1.del_flag = '0'
|
||||
<where>
|
||||
<if test="memberId != null and memberId != ''">
|
||||
and t1.member_id = #{memberId,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
and t1.create_time <![CDATA[ >= ]]> #{startTime,jdbcType=TIMESTAMP}
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
and t1.create_time <![CDATA[ <= ]]> #{startTime,jdbcType=TIMESTAMP}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user