|
@@ -20,10 +20,12 @@
|
|
|
<select id="selectPage"
|
|
|
resultType="com.yonge.cooleshow.biz.dal.wrapper.TenantActivationCodeWrapper$TenantActivationCode">
|
|
|
SELECT
|
|
|
- <include refid="baseColumns"/>, ta.purchase_cycle_ as purchaseCycle, su.username_ as activationUserName
|
|
|
+ <include refid="baseColumns"/>, ta.purchase_cycle_ as purchaseCycle, su.username_ as activationUserName,
|
|
|
+ su.avatar_ as activationUserAvatar
|
|
|
FROM tenant_activation_code t
|
|
|
LEFT JOIN tenant_album_purchase ta on t.tenant_album_purchase_id_ = ta.id_
|
|
|
LEFT JOIN sys_user su on t.activation_user_id_ = su.id_
|
|
|
+ LEFT JOIN student st on su.id_ = st.user_id_
|
|
|
<if test="param.orderNo != null and param.orderNo != ''">
|
|
|
left join tenant_album_purchase t4 on t4.id_ = t.tenant_album_purchase_id_
|
|
|
</if>
|
|
@@ -58,6 +60,9 @@
|
|
|
<if test="param.orderNo != null and param.orderNo != ''">
|
|
|
and ${param.orderNo} = t4.order_no_
|
|
|
</if>
|
|
|
+ <if test="param.subjectId != null and param.subjectId.trim() != ''">
|
|
|
+ and ${param.subjectId} = su.subject_id_
|
|
|
+ </if>
|
|
|
</where>
|
|
|
order by t.activation_status_ asc, t.id_ desc
|
|
|
</select>
|