|
@@ -26,6 +26,10 @@
|
|
|
<result column="pay_time_" property="payTime"/>
|
|
<result column="pay_time_" property="payTime"/>
|
|
|
<result column="version_" property="version"/>
|
|
<result column="version_" property="version"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
+
|
|
|
|
|
+ <resultMap type="com.ym.mec.biz.dal.entity.StudentPaymentOrder" extends="StudentPaymentOrder" id="PaymentOrderAndStudentInfo">
|
|
|
|
|
+ <result column="username_" property="user.username"/>
|
|
|
|
|
+ </resultMap>
|
|
|
|
|
|
|
|
<resultMap type="com.ym.mec.biz.dal.entity.Goods" id="Goods">
|
|
<resultMap type="com.ym.mec.biz.dal.entity.Goods" id="Goods">
|
|
|
<result column="id_" property="id"/>
|
|
<result column="id_" property="id"/>
|
|
@@ -139,8 +143,8 @@
|
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
|
|
<!-- 分页查询 -->
|
|
<!-- 分页查询 -->
|
|
|
- <select id="queryPage" resultMap="StudentPaymentOrder" parameterType="map">
|
|
|
|
|
- SELECT * FROM student_payment_order spo
|
|
|
|
|
|
|
+ <select id="queryPage" resultMap="PaymentOrderAndStudentInfo" parameterType="map">
|
|
|
|
|
+ SELECT spo.*,u.username_ FROM student_payment_order spo left join sys_user u on spo.user_id_ = u.id_
|
|
|
<include refid="queryPaymentOrder"/>
|
|
<include refid="queryPaymentOrder"/>
|
|
|
ORDER BY spo.id_
|
|
ORDER BY spo.id_
|
|
|
<include refid="global.limit"/>
|
|
<include refid="global.limit"/>
|
|
@@ -187,7 +191,7 @@
|
|
|
FROM
|
|
FROM
|
|
|
student_vip_group_payment svgp
|
|
student_vip_group_payment svgp
|
|
|
LEFT JOIN student_payment_order spo ON svgp.student_payment_order_id_=spo.id_
|
|
LEFT JOIN student_payment_order spo ON svgp.student_payment_order_id_=spo.id_
|
|
|
- WHERE svgp.user_id_=#{userId} AND svgp.vip_group_id_=#{vipGroupId} AND spo.status_='ING'
|
|
|
|
|
|
|
+ WHERE svgp.user_id_=#{userId} AND svgp.vip_group_id_=#{vipGroupId} AND spo.status_='ING' and spo.type_ = 'SMALL_CLASS_TO_BUY'
|
|
|
</select>
|
|
</select>
|
|
|
<!-- 查询报名订单 -->
|
|
<!-- 查询报名订单 -->
|
|
|
<select id="findMusicGroupApplyOrderByStatus" resultMap="StudentPaymentOrder">
|
|
<select id="findMusicGroupApplyOrderByStatus" resultMap="StudentPaymentOrder">
|
|
@@ -220,6 +224,7 @@
|
|
|
<result column="goods_name_"/>
|
|
<result column="goods_name_"/>
|
|
|
</collection>
|
|
</collection>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
+
|
|
|
<select id="findGoodsIds" resultMap="userGoodsDto">
|
|
<select id="findGoodsIds" resultMap="userGoodsDto">
|
|
|
SELECT g.id_ goods_id_,g.name_ goods_name_ FROM student_payment_order spo
|
|
SELECT g.id_ goods_id_,g.name_ goods_name_ FROM student_payment_order spo
|
|
|
LEFT JOIN student_payment_order_detail spod ON spo.id_ = spod.payment_order_id_
|
|
LEFT JOIN student_payment_order_detail spod ON spo.id_ = spod.payment_order_id_
|