Althars123 3 vuotta sitten
vanhempi
commit
7855dc3e4a

+ 1 - 1
zzjs-service/src/main/java/com/miaxis/wx/service/impl/WxOrderServiceImpl.java

@@ -197,7 +197,6 @@ public class WxOrderServiceImpl extends ServiceImpl<WxOrderMapper, WxOrder> impl
         JSONObject  data = jsonObject.getJSONObject("data");
         JSONObject  discountRule = data.getJSONObject("discountRule");
         JSONArray list = data.getJSONArray("list");
-        log.info(list.toJSONString());
         List<CinemaData> cinemaData = list.toJavaList(CinemaData.class);
         List<CinemaData> listdata = cinemaData.stream().filter(a -> showId.equals(a.getShowId())).collect(Collectors.toList());
         CinemaData realCinemaData = listdata.get(0);
@@ -210,6 +209,7 @@ public class WxOrderServiceImpl extends ServiceImpl<WxOrderMapper, WxOrder> impl
             String film_discount = configService.selectConfigByKey("film_discount");
             Double  chosenDiscount = netPrice >3900 ? upDiscountRate:downDiscountRate;
             Double aDouble = Double.valueOf(film_discount);
+            log.info("upDiscountRate值:"+upDiscountRate+",downDiscountRate值:"+downDiscountRate+",film_discount值:"+aDouble);
             Double dDouble = netPrice * chosenDiscount * aDouble;
             realValue = dDouble.intValue();
         }else if (ticketType == 2){