Commit 638eda85 by 刘鹏飞

coco核销优惠券整单优惠券

parent 88fcb8d0
......@@ -260,9 +260,9 @@ public class CocoCouponRelationServiceImpl implements CouponRelationService {
try {
//71.券核销
for (int i = 2; i >= 0; i--) {
log.info("coco核销券码开始==", JSON.toJSONString(couponCodeVerificationDto), null);
log.info("coco核销券码开始,orderCode:{}", orderBean.getOid());
CouponCodeResponseDto couponCodeResponseDto = couponOfflineClient.verification(couponCodeVerificationDto);
log.info("coco核销券码返回==", JSON.toJSONString(couponCodeResponseDto), null);
log.info("coco核销券码返回,orderCode:{}", orderBean.getOid());
ThirdPartyLog.infoConvertJson(System.currentTimeMillis(), System.currentTimeMillis(), "/api", couponCodeVerificationDto, couponCodeResponseDto);
if (Objects.equals(couponCodeResponseDto.getStatusCode(), ResponseResult.SUCCESS.getCode())) {
LogUtil.info("coco 核销券码返回成功,couponCodeVerificationDto:{},couponCodeResponseDto,", JSON.toJSONString(couponCodeVerificationDto), JSON.toJSONString(couponCodeResponseDto));
......@@ -299,7 +299,7 @@ public class CocoCouponRelationServiceImpl implements CouponRelationService {
QueryOrdersResponseDto.DataBean.OrderBean.ProductBean pb,
List<CouponCodeVerificationProductDto> productsFull,
Integer totalAmountOriFull){
Long alreadyNum = collect.get(pb.getProductId()) == null ? 0L : collect.get(pb.getProductId()).getSum();
Long alreadyNum = collect.get(pb.getSpecification()) == null ? 0L : collect.get(pb.getSpecification()).getSum();
Integer num = pb.getNumber();
Integer remainNum = num - alreadyNum.intValue();
if(Objects.equals(remainNum,0)){
......
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