update 查询查询会员申请开票记录

This commit is contained in:
Lemon
2023-11-01 15:11:31 +08:00
parent cb9f6488e1
commit 53415d34dd
7 changed files with 66 additions and 13 deletions

View File

@@ -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>