| | |
| | | <result column="playPaiCoin" property="playPaiCoin"/> |
| | | </resultMap> |
| | | <update id="changeState"> |
| | | update t_course_package_payment set |
| | | payStatus = 2,payUserName = #{payUserName},payType = 7,payUserId=#{payUserId} |
| | | update t_course_package_order set |
| | | payStatus = 2,payUserName = #{payUserName},payType = 7,payUserId=#{payUserId}, |
| | | payUserType = 2 |
| | | <where> |
| | | <if test="ids != null and ids.size()>0"> |
| | | AND t_course_package_payment.id IN |
| | | <foreach collection="ids" separator="," item="id" open="(" close=")"> |
| | | #{id} |
| | | </foreach> |
| | | <if test="ids!=null and ids!= ''"> |
| | | and t_course_package_order.id = #{ids} |
| | | </if> |
| | | </where> |
| | | </update> |
| | | |
| | | <select id="listAll" resultType="com.dsh.course.model.CoursePackagePaymentVO"> |
| | | select |
| | | t1.id,t1.studentId,t1.payUserType,t1.payStatus,t1.payType,t1.originalPrice,t1.userCouponId,t1.payUserId,t1.giftClassHours,t1.studentId,t1.appUserId,t1.cashPayment,t1.playPaiCoin, |
| | | t1.payUserName as buyTypeName, |
| | | t1.id,t1.payUserType,t1.payStatus,t1.payType,t1.originalPrice,t1.userCouponId,t1.payUserId,t1.studentIds as studentId,t1.appUserId,t1.cashPayment,t1.playPaiCoin, |
| | | t1.payUserName as buyTypeName, t1.classHours as classHours,t1.insertTime as insertTime,t1.coursePackageId as coursePackageId, |
| | | CONCAT(t2.province,t2.city) as provinceAndCity,t2.coursePackageTypeId,t2.storeId,t2.name as coursePackage, |
| | | t3.name as coursePackageType |
| | | from t_course_package_payment t1 |
| | | from t_course_package_order t1 |
| | | left join t_course_package t2 on t1.coursePackageId = t2.id |
| | | left join t_course_package_type t3 on t2.coursePackageTypeId = t3.id |
| | | <where> |