|
|
|
@ -168,7 +168,6 @@ public class OrderServiceImpl implements OrderService { |
|
|
|
|
order.setPromoteCode(popularizeUser.getAgentId().toString()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
order.setCombineOrderNo(createOrderModel.getCombineOrderNo()); |
|
|
|
|
order.setOrderNo(createOrderModel.getOrderNo()); |
|
|
|
|
order.setMemId(createOrderModel.getMemId()); |
|
|
|
|
order.setMemName(createOrderModel.getMemName()); |
|
|
|
@ -939,6 +938,66 @@ public class OrderServiceImpl implements OrderService { |
|
|
|
|
|
|
|
|
|
List<CreateOrderModel> createOrderModels = createCombine.getCreateOrderModel(); |
|
|
|
|
|
|
|
|
|
// 查询推广员信息
|
|
|
|
|
Map<String, Object> mapUser = new HashMap<>(); |
|
|
|
|
mapUser.put("userId" , createCombine.getMemId()); |
|
|
|
|
BsDistributionUserRel popularizeUser = bsDistributionUserRelService.findDistributionUserRel(mapUser); |
|
|
|
|
|
|
|
|
|
HighOrder order = new HighOrder(); |
|
|
|
|
if (popularizeUser != null) { |
|
|
|
|
order.setPromoteCode(popularizeUser.getAgentId().toString()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for (CreateOrderModel createOrderModel : createOrderModels) { |
|
|
|
|
order.setCombineOrderNo(createCombine.getCombineOrderNo()); |
|
|
|
|
order.setOrderNo(createOrderModel.getOrderNo()); |
|
|
|
|
order.setMemId(createOrderModel.getMemId()); |
|
|
|
|
order.setMemName(createOrderModel.getMemName()); |
|
|
|
|
order.setMemPhone(createOrderModel.getMemPhone()); |
|
|
|
|
order.setRemarks(createOrderModel.getRemarks()); |
|
|
|
|
order.setOrderStatus(OrderStatus.STATUS1.getNumber()); |
|
|
|
|
order.setWhetherCheck(false); |
|
|
|
|
order.setWhetherRebate(false); |
|
|
|
|
order.setProfitSharingStatus(false); |
|
|
|
|
order.setExceptionStatus(false); |
|
|
|
|
order.setCreateTime(new Date()); |
|
|
|
|
order.setDeductionCouponPrice(new BigDecimal("0")); |
|
|
|
|
order.setDeductionProductPrice(new BigDecimal("0")); |
|
|
|
|
order.setCompanyId(createOrderModel.getCompanyId()); |
|
|
|
|
|
|
|
|
|
if (createOrderModel.getProductType() == 12) {} |
|
|
|
|
|
|
|
|
|
/*********** 组装处理子订单 商品业务************/ |
|
|
|
|
List<HighChildOrder> childOrderList = new ArrayList<>(); |
|
|
|
|
for (CreateOrderChildModel child : createOrderModel.getChildOrderList()) { |
|
|
|
|
child.setMemId(order.getMemId()); |
|
|
|
|
child.setMemName(order.getMemName()); |
|
|
|
|
child.setMemPhone(order.getMemPhone()); |
|
|
|
|
child.setOrderNo(order.getOrderNo()); |
|
|
|
|
|
|
|
|
|
if (child.getGoodsType().equals(OrderChildGoodsType.TYPE11.getNumber())) { |
|
|
|
|
|
|
|
|
|
HighChildOrder childOrder = orderCreateHandleService.goods(order , child); |
|
|
|
|
childOrderList.add(childOrder); |
|
|
|
|
order.setProductType(OrderProductType.PRODUCT_TYPE12.getNumber()); |
|
|
|
|
order.setSecUserId(childOrder.getId()); |
|
|
|
|
|
|
|
|
|
if (StringUtils.isBlank(order.getTitle())) { |
|
|
|
|
order.setTitle(childOrder.getGoodsName()); |
|
|
|
|
order.setExt6(childOrder.getGoodsImg()); |
|
|
|
|
} else { |
|
|
|
|
order.setTitle(order.getTitle() + "+" +childOrder.getGoodsName()); |
|
|
|
|
order.setExt6(order.getExt6() + "," +childOrder.getGoodsImg()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|