update 后管计费模板页面

This commit is contained in:
Lemon
2023-08-21 14:38:30 +08:00
parent e3f22f49c1
commit bfb9717912
17 changed files with 167 additions and 15 deletions

View File

@@ -72,7 +72,7 @@
order by t1.create_time desc
</select>
<select id="getMemberRefundAmount" resultType="com.jsowell.pile.vo.MemberBalanceVO">
<select id="getMemberRefundAmount" resultType="com.jsowell.pile.vo.uniapp.MemberBalanceVO">
select
member_id as memberId,
principal_balance as principalAmount

View File

@@ -137,4 +137,32 @@
and create_time <![CDATA[ <= ]]> #{startTime,jdbcType=TIMESTAMP}
</if>
</select>
<select id="getInvoiceListWithAuth" resultType="com.jsowell.pile.vo.web.OrderInvoiceRecordVO">
SELECT
t1.id,
t1.member_id as memberId,
t1.merchant_id as merchantId,
t2.merchant_name as merchantName,
t1.title_id as titleId,
t1.email as email,
t1.order_codes as orderCodes,
t1.STATUS as status,
t1.total_amount as totalAmount,
t1.total_service_amount as totalServiceAmount,
t1.total_elec_amount as totalElecAmount
FROM
order_invoice_record t1
LEFT JOIN pile_merchant_info t2 ON t1.merchant_id = t2.id and t1.del_flag = '0'
where t2.dept_id in
<foreach collection="dto.merchantDeptIds" item="deptId" open="(" separator="," close=")">
#{deptId,jdbcType=VARCHAR}
</foreach>
<if test="dto.memberId != null and dto.memberId != ''"> and t1.member_id = #{dto.memberId}</if>
<if test="dto.merchantId != null and dto.merchantId != ''"> and t1.merchant_id = #{dto.merchantId}</if>
<if test="dto.orderCodes != null and dto.orderCodes != ''"> and t1.order_codes like concat('%', #{dto.orderCodes}, '%')</if>
<if test="dto.status != null and dto.status != ''"> and t1.status = #{dto.status}</if>
</select>
</mapper>