liujunchi 2 éve
szülő
commit
84fe089dc5

+ 11 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/page/SysCouponQueryInfo.java

@@ -16,6 +16,17 @@ public class SysCouponQueryInfo extends QueryInfo {
     @ApiModelProperty("状态:0停用,1启用")
     private Integer status;
 
+    @ApiModelProperty("优惠券类型")
+    private String typeDetail;
+
+    public String getTypeDetail() {
+        return typeDetail;
+    }
+
+    public void setTypeDetail(String typeDetail) {
+        this.typeDetail = typeDetail;
+    }
+
     public CouponTypeEnum getType() {
         return type;
     }

+ 3 - 0
mec-biz/src/main/resources/config/mybatis/SysCouponMapper.xml

@@ -152,6 +152,9 @@
 			<if test="search != null and search != ''">
 				AND (id_=#{search} OR name_ LIKE CONCAT('%', #{search}, '%'))
 			</if>
+			<if test="typeDetail != null and typeDetail != ''">
+				and #{typeDetail} = type_detail_
+			</if>
 		</where>
 	</sql>