Browse Source

商品更新下架

change 3 years ago
parent
commit
0dcd09c5a5

+ 3 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/bo/UserSubscribeQueryBo.java

@@ -92,4 +92,7 @@ public class UserSubscribeQueryBo extends BaseEntity {
 
 	@ApiModelProperty("查询超过过期时间,未消耗考试次数 1")
 	private Long exceed;
+
+	@ApiModelProperty("查询超过过期时间,考试次数 1")
+	private Long exceedExamExpend;
 }

+ 3 - 0
zhongzheng-system/src/main/resources/mapper/modules/user/UserSubscribeMapper.xml

@@ -112,6 +112,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
           <if test="beforeId != null ">
             and us.before_id =#{beforeId}
         </if>
+        <if test="exceedExamExpend != null ">
+            and us.exam_expend  = 1
+        </if>
         <if test="exceed != null ">
             and unix_timestamp(now()) > us.apply_site_exam_time and us.exam_expend is NULL and us.subscribe_status = 1
         </if>