Commit 4377ee2f by huluobin

update

parent dec30b5f
...@@ -1180,6 +1180,7 @@ public class MarketServiceImpl implements MarketService { ...@@ -1180,6 +1180,7 @@ public class MarketServiceImpl implements MarketService {
if (couponCustomerRelevance.getType() == 5) { if (couponCustomerRelevance.getType() == 5) {
discountAmount = orderServe.getPrice().multiply(BigDecimal.ONE.subtract(couponCustomerRelevance.getDiscountPercent())); discountAmount = orderServe.getPrice().multiply(BigDecimal.ONE.subtract(couponCustomerRelevance.getDiscountPercent()));
} }
BigDecimal actualDiscountAmount = orderServe.getPayPrice().min(discountAmount); BigDecimal actualDiscountAmount = orderServe.getPayPrice().min(discountAmount);
//新增外部券抵扣情况记录 //新增外部券抵扣情况记录
...@@ -1365,7 +1366,7 @@ public class MarketServiceImpl implements MarketService { ...@@ -1365,7 +1366,7 @@ public class MarketServiceImpl implements MarketService {
@Async @Async
@Override @Override
public void asyncAutoSetCoupon(Integer couponCustomerRelevanceId, Integer orderId) { public void asyncAutoSetCoupon(Integer couponCustomerRelevanceId, Integer orderId) {
this.setUpInnerCoupon(orderId,Lists.newArrayList(couponCustomerRelevanceId)); this.setUpInnerCoupon(orderId, Lists.newArrayList(couponCustomerRelevanceId));
//结算订单 //结算订单
this.calcOrderAmount(orderId); this.calcOrderAmount(orderId);
} }
......
...@@ -39,9 +39,8 @@ public class MallCategoryServiceImpl extends ServiceImpl<CategoryMapper, MallCat ...@@ -39,9 +39,8 @@ public class MallCategoryServiceImpl extends ServiceImpl<CategoryMapper, MallCat
for (MallCategory mallCategory : list) { for (MallCategory mallCategory : list) {
if (mallCategory.getId().equals(subTreeId)) { if (mallCategory.getId().equals(subTreeId)) {
List<MallCategory> clone = SerializationUtils.clone((new ArrayList<>(mallCategory.getChildList()))); if (ListUtil.isNotEmpty(mallCategory.getChildList())) {
if (ListUtil.isNotEmpty(clone)) { return SerializationUtils.clone((new ArrayList<>(mallCategory.getChildList())));
return clone;
} }
} else if (ListUtil.isNotEmpty(mallCategory.getChildList())) { } else if (ListUtil.isNotEmpty(mallCategory.getChildList())) {
this.findSubTree(mallCategory.getChildList(), subTreeId); this.findSubTree(mallCategory.getChildList(), subTreeId);
......
...@@ -37,6 +37,7 @@ public interface CouponCustomerRelevanceMapper extends BaseMapper<CouponCustomer ...@@ -37,6 +37,7 @@ public interface CouponCustomerRelevanceMapper extends BaseMapper<CouponCustomer
*/ */
List<Integer> queryCouponCustomerServeRelevance(Integer couponId); List<Integer> queryCouponCustomerServeRelevance(Integer couponId);
List<CouponCustomerRelevance> selectByOrderTimes(); List<CouponCustomerRelevance> selectByOrderTimes();
......
spring: spring:
profiles: profiles:
active: pre active: prod
servlet: servlet:
#文件上传最大容量 #文件上传最大容量
multipart: multipart:
......
...@@ -681,11 +681,11 @@ public class Test { ...@@ -681,11 +681,11 @@ public class Test {
marketService.calcOrderAmount(13431); marketService.calcOrderAmount(13431);
} }
@org.junit.Test @org.junit.Test
public void reCalcOrderAmount() { public void reCalcOrderAmount() {
marketService.orderAmountReCalc(14878); marketService.orderAmountReCalc(14933);
} }
@Resource @Resource
PurchaseSkuMapper purchaseSkuMapper; PurchaseSkuMapper purchaseSkuMapper;
......
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