Commit 732f140d by 吕明尚

修改自动生成优惠卷购买金额开始

parent ca8501ee
......@@ -95,8 +95,8 @@ public class CouponRetryTask {
} else {
finalList.stream().forEach(store -> {
TuangouReceiptGetConsumedReponseEntity newGetconsumed = qpService.getconsumed(item.getCouponCode(), store.getOpenShopUuid());
System.out.println("门店:" + store.getName() + "优惠券码:" + item.getCouponCode());
if (!ObjectUtils.isEmpty(getconsumed)) {
logger.debug("门店:" + store.getName() + "优惠券码:" + item.getCouponCode());
if (!ObjectUtils.isEmpty(newGetconsumed)) {
item.setStoreId(store.getId());
item.setCouponPayPrice(BigDecimal.valueOf(newGetconsumed.getDeal_price()).subtract(BigDecimal.valueOf(newGetconsumed.getOrder_shoppromo_amount())));
logger.debug("门店:" + store.getName() + "优惠券码:" + item.getCouponCode());
......@@ -104,6 +104,7 @@ public class CouponRetryTask {
//跳出循环
return;
}
logger.debug("门店:" + store.getName() + "优惠券码:" + item.getCouponCode() + "查询优惠券失败" + newGetconsumed);
});
if (item.getCouponPayPrice() == null) {
item.setCouponPayPrice(BigDecimal.ZERO);
......
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