@@ -22,6 +22,16 @@ public class DoubleEleven2021QueryInfo extends QueryInfo {
private Boolean giveMemberFlag;
+ private String year = "2021";
+
+ public String getYear() {
+ return year;
+ }
+ public void setYear(String year) {
+ this.year = year;
public String getOrganId() {
return organId;
}
@@ -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 test="search != null and search != ''">
AND su.id_ = #{search} OR su.username_ LIKE CONCAT('%',#{search},'%') OR spo.order_no_ LIKE CONCAT('%',#{search},'%')
</if>