| | |
| | | <result column="orderType" property="orderType"/> |
| | | <result column="orderId" property="orderId"/> |
| | | </resultMap> |
| | | <select id="queryRechargeRecord" resultType="java.util.Map"> |
| | | SELECT id,userId,insertTime,remark,money,`state`,`type`,userType,orderType,orderId |
| | | FROM t_pub_transaction_details |
| | | WHERE userId = #{uid} AND userType = 1 AND `type` = 1 AND orderType = 5 |
| | | ORDER BY insertTime DESC |
| | | limit #{pageNum}, #{size} |
| | | </select> |
| | | <select id="queryRechargeMoneySum" resultType="java.lang.Double"> |
| | | SELECT SUM(money) |
| | | FROM t_pub_transaction_details |
| | | WHERE userId = #{uid} AND userType = 1 AND `type` = 1 AND orderType = 5 |
| | | </select> |
| | | </mapper> |