记得上下班打卡 | git大法好,push需谨慎

Commit 89230f04 authored by 胡佳晨's avatar 胡佳晨

candy 修改

parent c1a197e4
......@@ -201,7 +201,7 @@ public class CandyCouponServiceImpl implements ICandyCouponService {
}
break;
case 3:
vo.setValue(BigDecimal.valueOf(-1));
vo.setValue(new BigDecimal(totalPrice));
break;
case 4:
vo.setValue(dto.getDiscount());
......
......@@ -83,7 +83,7 @@ public class CouponBaseUtil {
vo.setUsedAt(DateUtil.format(dtoItem.getUsedAt(), DateUtil.Formatter.yyyy_MM_dd));
vo.setUsedFor(dtoItem.getUsedFor());
//适用范围 规则
if (dtoItem.getUseRules() == null && dtoItem.getBusiType().equals(1)) {
if (dtoItem.getBusiType().equals(0)) {
isTarget = true;
} else {
for (CandyCouponRuleDto ruleItem : dtoItem.getUseRules()) {
......@@ -150,7 +150,7 @@ public class CouponBaseUtil {
vo.setUsedAt(DateUtil.format(dtoItem.getUsedAt(), DateUtil.Formatter.yyyy_MM_dd));
vo.setUsedFor(dtoItem.getUsedFor());
//适用范围 规则
if (dtoItem.getUseRules() == null && dtoItem.getBusiType().equals(1)) {
if (dtoItem.getBusiType().equals(0)) {
isTarget = true;
} else {
for (CandyCouponRuleDto ruleItem : dtoItem.getUseRules()) {
......
......@@ -3,4 +3,4 @@ candy_coupon.use=UPDATE candy_user_coupon SET state = 3 WHERE uid = ? AND ucoupo
# -- 回退券 --
candy_coupon.back=UPDATE candy_user_coupon SET state = 1 WHERE uid = ? AND ucoupon_id = ?
# -- 领取券 --
candy_coupon.receive=INSERT INTO candy_user_coupon (ucoupon_id , uid , state , coupon_id , ccdoe , bind_at ) VALUE ( ? , ? , ? , ? , ? , ? )
candy_coupon.receive=INSERT INTO candy_user_coupon (ucoupon_id , uid , state , coupon_id , ccode , bind_at ) VALUE ( ? , ? , ? , ? , ? , ? )
......@@ -67,7 +67,7 @@ public class ConsumerCandyCouponReceiveRedisStreamConfig {
}
@Bean
public Subscription subscriptionSqlCandyCouponBack3(RedisConnectionFactory factory) {
public Subscription subscriptionSqlCandyCouponReceive3(RedisConnectionFactory factory) {
var listenerContainer = this.buildStreamMessageListenerContainer(factory);
var subscription = receiveSqlCandyCouponReceive(listenerContainer, 1);
listenerContainer.start();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment