|
@@ -88,18 +88,20 @@
|
|
where userId = #{userId}
|
|
where userId = #{userId}
|
|
</update>
|
|
</update>
|
|
<select id="findVipHistory" resultType="com.caimei365.user.model.po.VipPayHistoryPo">
|
|
<select id="findVipHistory" resultType="com.caimei365.user.model.po.VipPayHistoryPo">
|
|
- select packageId,
|
|
|
|
- beginTime,
|
|
|
|
- endTime,
|
|
|
|
- payStatus,
|
|
|
|
- payWay,
|
|
|
|
- payType,
|
|
|
|
- price,
|
|
|
|
- userBeans,
|
|
|
|
- payTime
|
|
|
|
- from cm_svip_history
|
|
|
|
- where userId = #{userId} AND payStatus=1
|
|
|
|
- order by payTime desc
|
|
|
|
|
|
+ select cs.packageId,
|
|
|
|
+ cs.beginTime,
|
|
|
|
+ cs.endTime,
|
|
|
|
+ cs.payStatus,
|
|
|
|
+ cs.payWay,
|
|
|
|
+ cs.payType,
|
|
|
|
+ cs.price,
|
|
|
|
+ cs.userBeans,
|
|
|
|
+ cs.payTime,
|
|
|
|
+ csp.duration
|
|
|
|
+ from cm_svip_history cs
|
|
|
|
+ left join cm_svip_package csp on cs.packageId = csp.id
|
|
|
|
+ where cs.userId = #{userId} AND cs.payStatus=1
|
|
|
|
+ order by cs.payTime desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findEndTime" resultType="com.caimei365.user.model.po.SuperVipPo">
|
|
<select id="findEndTime" resultType="com.caimei365.user.model.po.SuperVipPo">
|