微信小程序分类查询(优惠券错误)完成
This commit is contained in:
parent
e06c84fc4d
commit
cfeefe2dc6
@ -216,6 +216,4 @@ public class ActivityInfoServiceImpl extends ServiceImpl<ActivityInfoMapper, Act
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -58,18 +58,21 @@
|
||||
|
||||
<!--//根据skuId进行查询,查询sku对应活动里面规则列表-->
|
||||
<select id="findActivityRule" resultMap="ActivityRuleMap">
|
||||
select DISTINCT rule.id,
|
||||
info.activity_type as activityType,
|
||||
rule.activity_id,
|
||||
rule.condition_amount,
|
||||
rule.condition_num,
|
||||
rule.benefit_amount,
|
||||
rule.benefit_discount
|
||||
select rule.id,
|
||||
info.activity_type as activityType,
|
||||
rule.activity_id,
|
||||
rule.condition_amount,
|
||||
rule.condition_num,
|
||||
rule.benefit_amount,
|
||||
rule.benefit_discount
|
||||
from activity_info info
|
||||
inner join activity_sku sku on info.id = sku.activity_id
|
||||
inner join activity_rule rule on info.id = rule.activity_id
|
||||
where sku.sku_id = #{skuId}
|
||||
and now() between info.start_time and info.end_time
|
||||
and sku.is_deleted = 0
|
||||
and info.is_deleted = 0
|
||||
and rule.is_deleted = 0
|
||||
order by rule.condition_amount desc
|
||||
</select>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user