'修复已知问题'

dev-discount
胡锐 4 years ago
parent d5e792a81a
commit e497a2df2d
  1. 3
      hai-cweb/src/main/java/com/cweb/controller/HighOrderController.java
  2. 9
      hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java

@ -152,7 +152,8 @@ public class HighOrderController {
// 累计订单价格 // 累计订单价格
totalPrice = totalPrice.add(childOrder.getTotalPrice()); totalPrice = totalPrice.add(childOrder.getTotalPrice());
} }
highOrder.setTotalPrice(totalPrice);
// 是否使用了优惠券 // 是否使用了优惠券
if (highOrder.getMemDiscountId() != null) { if (highOrder.getMemDiscountId() != null) {
// 卡优惠券信息 // 卡优惠券信息

@ -394,6 +394,15 @@ public class HighOrderServiceImpl implements HighOrderService {
HighDiscountUserRelExample example = new HighDiscountUserRelExample(); HighDiscountUserRelExample example = new HighDiscountUserRelExample();
HighDiscountUserRelExample.Criteria criteria = example.createCriteria(); HighDiscountUserRelExample.Criteria criteria = example.createCriteria();
if (userId != null) {
criteria.andUserIdEqualTo(userId);
}
if (status != null) {
criteria.andStatusEqualTo(status);
}
example.setOrderByClause("create_time desc");
return highDiscountUserRelMapper.selectByExample(example).size(); return highDiscountUserRelMapper.selectByExample(example).size();
} }
} }

Loading…
Cancel
Save