Commit 4377ee2f by huluobin

update

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