Commit 2e56d3e4 by unknown

resolve the null ponit of orderlist in adjustAmount

parent 9bad3376
......@@ -470,10 +470,12 @@ public class CourseOrderService extends AbstractOrderService<CourseOrderBean, Co
BigDecimal vipDiscountAmount = new BigDecimal(0);
List<Order> orderList = this.getOrderDao().queryOrders(resInfo.getPlayDate(), orderBean.getUid());
boolean isFirstOrderToday = true;
for (Order order : orderList) {
if(order.isPay()&&order.getDiscountAmount().compareTo(BigDecimal.ZERO)>0){
isFirstOrderToday = false;
break;
if(orderList != null){
for (Order order : orderList) {
if(order.isPay()&&order.getDiscountAmount().compareTo(BigDecimal.ZERO)>0){
isFirstOrderToday = false;
break;
}
}
}
if(isVipMember && isFirstOrderToday){
......
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 sign in to comment