群聊券 的 名称
This commit is contained in:
@@ -122,6 +122,9 @@ public class MkShopCouponRecord implements Serializable {
|
||||
private LocalDateTime useEndTime;
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime useStartTime;
|
||||
|
||||
@Column(ignore = true)
|
||||
private String couponName;
|
||||
/**
|
||||
* 有效期类型:fixed(固定时间),custom(自定义时间)
|
||||
*/
|
||||
|
||||
@@ -519,11 +519,10 @@ public class MkShopCouponRecordServiceImpl extends ServiceImpl<MkShopCouponRecor
|
||||
public MkShopCouponRecord assembleRecord(Long chatCouponId, ShopCoupon coupon) {
|
||||
MkShopCouponRecord record = new MkShopCouponRecord();
|
||||
record.setShopId(coupon.getShopId());
|
||||
|
||||
record.setCouponName(coupon.getTitle());
|
||||
record.setCouponId(coupon.getId());
|
||||
record.setCouponSyncId(coupon.getSyncId());
|
||||
record.setSourceId(chatCouponId);
|
||||
|
||||
record.setSource("群聊发放");
|
||||
record.setStatus(0);
|
||||
record.setType(coupon.getCouponType());
|
||||
|
||||
@@ -502,7 +502,7 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService {
|
||||
} else {
|
||||
BigDecimal discount = BigDecimal.valueOf(100).subtract(BigDecimal.valueOf(shopUser.getDiscount())).divide(BigDecimal.valueOf(100), 2, RoundingMode.HALF_UP);
|
||||
BigDecimal discountAmount = newTotalAmount.multiply(discount);
|
||||
discountAmount = discountAmount.setScale(2, RoundingMode.HALF_DOWN);
|
||||
discountAmount = discountAmount.setScale(2, RoundingMode.HALF_UP);
|
||||
if (discountAmount.compareTo(param.getVipDiscountAmount()) != 0) {
|
||||
log.info("会员整单折扣金额不正确:传递为:{},计算为:{}", param.getVipDiscountAmount(), discountAmount);
|
||||
throw new OrderValidateException("生成支付订单失败,会员整单折扣金额不正确");
|
||||
|
||||
Reference in New Issue
Block a user