2
0

feat: 账单、充值和套餐记录

This commit is contained in:
caiyuchao
2025-01-07 16:57:42 +08:00
parent c7d303d45a
commit 21c09b3fa4
8 changed files with 104 additions and 44 deletions

View File

@@ -2,4 +2,19 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.wfc.user.mapper.UBillMapper">
<select id="getBillByUser" resultType="org.wfc.user.domain.vo.UBillUserVo">
SELECT
b.id,
h.start_time,
h.end_time,
h.traffic_up + h.traffic_down traffic,
b.amount,
b.create_time,
b.`status`
FROM
u_bill b
LEFT JOIN u_cdr_history h ON h.id = b.cdr_history_id
AND h.del_flag = 0
AND b.user_id = #{userId}
</select>
</mapper>