Authored by TANLING

fix log

@@ -58,16 +58,18 @@ public class ProductLimitCollector { @@ -58,16 +58,18 @@ public class ProductLimitCollector {
58 * @param productLimitInfo 58 * @param productLimitInfo
59 * @return 59 * @return
60 */ 60 */
61 - public static boolean match(ShoppingProductInfo shoppingProductInfo, ProductLimitInfo productLimitInfo){ 61 + public static boolean match(String couponCode,
  62 + ShoppingProductInfo shoppingProductInfo, ProductLimitInfo productLimitInfo){
62 for (LimitValueHandler limitValueHandler : LIMIT_VALUES_LIST){ 63 for (LimitValueHandler limitValueHandler : LIMIT_VALUES_LIST){
63 64
64 if (!limitValueHandler.isMatch(shoppingProductInfo, productLimitInfo)){ 65 if (!limitValueHandler.isMatch(shoppingProductInfo, productLimitInfo)){
65 - logger.info("{} product limit not match, goods info {}, coupon info {}", limitValueHandler.getLimitValue(), shoppingProductInfo, productLimitInfo); 66 + logger.info("[{}] ProductLimitRuleMatcher Condition <<< {},{}; Result <<< [{}] not matched",
  67 + couponCode, shoppingProductInfo, productLimitInfo, limitValueHandler.getLimitValue());
66 return false; 68 return false;
67 } 69 }
68 } 70 }
69 71
70 - logger.info("product limit matched, goods info {}, coupon info {}", shoppingProductInfo, productLimitInfo); 72 + logger.info("[{}] ProductLimitRuleMatcher Condition <<< {},{}; Result <<< matched", couponCode, shoppingProductInfo, productLimitInfo);
71 73
72 return true; 74 return true;
73 } 75 }
@@ -110,7 +110,7 @@ public class CouponRuleMatcher { @@ -110,7 +110,7 @@ public class CouponRuleMatcher {
110 @Override 110 @Override
111 public boolean match(ChargeGoods chargeGoods, UserCouponsBo couponsBo) { 111 public boolean match(ChargeGoods chargeGoods, UserCouponsBo couponsBo) {
112 112
113 - return ProductLimitCollector.match(chargeGoods.getShoppingProductInfo(), couponsBo.getProductLimitInfo()); 113 + return ProductLimitCollector.match(couponsBo.getCouponCode() ,chargeGoods.getShoppingProductInfo(), couponsBo.getProductLimitInfo());
114 114
115 } 115 }
116 } 116 }