|
@@ -503,7 +503,13 @@
|
|
|
<result property="type" column="type_"/>
|
|
|
</resultMap>
|
|
|
<sql id="queryDoubleEleven2021OrderDetailSql">
|
|
|
- WHERE spo.status_ = 'SUCCESS' AND spo.type_ = 'DOUBLE_ELEVEN2021' and spo.tenant_id_ = #{tenantId}
|
|
|
+ WHERE
|
|
|
+ <if test="year == '2021'">
|
|
|
+ spo.status_ = 'SUCCESS' AND spo.type_ = 'DOUBLE_ELEVEN2021' and spo.tenant_id_ = #{tenantId}
|
|
|
+ </if>
|
|
|
+ <if test="year == '2022'">
|
|
|
+ spo.group_type_ = 'ACTIVITY' AND spo.type_ = 'SMALL_CLASS_TO_BUY' AND spo.status_ = 'SUCCESS' AND spo.memo_ = '2022双十一活动购买'
|
|
|
+ </if>
|
|
|
<if test="search != null and search != ''">
|
|
|
AND su.id_ = #{search} OR su.username_ LIKE CONCAT('%',#{search},'%') OR spo.order_no_ LIKE CONCAT('%',#{search},'%')
|
|
|
</if>
|