Browse Source

add:类型搜索

liujunchi 2 years ago
parent
commit
6aba83eaa8

+ 14 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/dto/search/VipRecordSearch.java

@@ -1,7 +1,9 @@
 package com.yonge.cooleshow.biz.dal.dto.search;
 
+import com.baomidou.mybatisplus.annotation.TableField;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import com.yonge.cooleshow.biz.dal.enums.ClientEnum;
+import com.yonge.cooleshow.biz.dal.enums.SourceTypeEnum;
 import com.yonge.toolset.base.page.QueryInfo;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
@@ -39,6 +41,18 @@ public class VipRecordSearch extends QueryInfo {
     @ApiModelProperty("人员类型")
     private ClientEnum client;
 
+
+    @ApiModelProperty("来源类型 : ACTIVITY :活动 ,ORDER:订单 PLATFORM:平台")
+    private SourceTypeEnum sourceType;
+
+    public SourceTypeEnum getSourceType() {
+        return sourceType;
+    }
+
+    public void setSourceType(SourceTypeEnum sourceType) {
+        this.sourceType = sourceType;
+    }
+
     public Long getUserId() {
         return userId;
     }

+ 3 - 0
cooleshow-user/user-biz/src/main/resources/config/mybatis/VipCardRecordMapper.xml

@@ -114,6 +114,9 @@
           <if test="param.userId != null">
               and t.user_id_ = #{param.userId}
           </if>
+          <if test="param.sourceType != null">
+              and t.source_type_ = #{param.sourceType}
+          </if>
       </where>
         order by  t.id_ desc
     </select>