Commit b161d493 by huluobin

update

parent db3c9cdd
log log
*.log *.log
target target
\ No newline at end of file /xw-agent-front/
/xw-operation-front/
...@@ -508,12 +508,12 @@ public class OrderManageServiceImpl extends ServiceImpl<OrderManageMapper, Order ...@@ -508,12 +508,12 @@ public class OrderManageServiceImpl extends ServiceImpl<OrderManageMapper, Order
//todo 考虑代付 //todo 考虑代付
List<CouponCustomerRelevance> couponCustomerRelevanceList = couponCustomerRelevanceService.getOrderCoupon(orderManage.getOrderUser(), orderId); List<CouponCustomerRelevance> couponCustomerRelevanceList = couponCustomerRelevanceService.getOrderCoupon(orderManage.getOrderUser(), orderId);
couponCustomerRelevanceList.stream() // couponCustomerRelevanceList.stream()
//
.filter(couponCustomerRelevance -> couponCustomerRelevance.getDiscountAmount() != null) // .filter(couponCustomerRelevance -> couponCustomerRelevance.getDiscountAmount() != null)
.filter(couponCustomerRelevance -> couponCustomerRelevance.getDiscountAmount().compareTo(orderManage.getTotalPaymentAmount()) <= 0) // .filter(couponCustomerRelevance -> couponCustomerRelevance.getDiscountAmount().compareTo(orderManage.getTotalPaymentAmount()) <= 0)
.findAny() // .findAny()
.ifPresent(couponCustomerRelevance -> marketService.asyncAutoSetCoupon(couponCustomerRelevance.getId(), orderId)); // .ifPresent(couponCustomerRelevance -> marketService.asyncAutoSetCoupon(couponCustomerRelevance.getId(), orderId));
pushMsgService.sendOrderPayNotifyMsg(orderId, pushMsgService.sendOrderPayNotifyMsg(orderId,
customer.getOpenid1(), customer.getOpenid1(),
......
...@@ -28,6 +28,6 @@ public class CustomerBalanceServiceImplTest { ...@@ -28,6 +28,6 @@ public class CustomerBalanceServiceImplTest {
@org.junit.Test @org.junit.Test
public void transferBalance() { public void transferBalance() {
customerBalanceService.transferBalance("96827361", "18559161648"); customerBalanceService.transferBalance("18671855858", "18671855851");
} }
} }
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