Commit a8d8b55b authored by shiyu's avatar shiyu

盲袋专区下单

parent 23be5d9c
...@@ -201,7 +201,7 @@ public class BlindBoxServiceImpl implements BlindBoxService { ...@@ -201,7 +201,7 @@ public class BlindBoxServiceImpl implements BlindBoxService {
StringBuffer stringBuffer = new StringBuffer(); StringBuffer stringBuffer = new StringBuffer();
if (StringUtils.hasLength(remark)) { if (StringUtils.hasLength(remark)) {
for (String code : remark.split(",")) { for (String code : remark.split(",")) {
stringBuffer.append(code + "号福袋"); stringBuffer.append(code);
stringBuffer.append("、"); stringBuffer.append("、");
codes.add(code); codes.add(code);
} }
...@@ -209,7 +209,7 @@ public class BlindBoxServiceImpl implements BlindBoxService { ...@@ -209,7 +209,7 @@ public class BlindBoxServiceImpl implements BlindBoxService {
if (stringBuffer.length() > 0) { if (stringBuffer.length() > 0) {
stringBuffer.deleteCharAt(stringBuffer.length() - 1); stringBuffer.deleteCharAt(stringBuffer.length() - 1);
} }
blindBoxBuyRecordVo.setBoxCodes(stringBuffer.toString()); blindBoxBuyRecordVo.setBoxCodes(stringBuffer.toString() + "号福袋");
blindBoxBuyRecordVoList.add(blindBoxBuyRecordVo); blindBoxBuyRecordVoList.add(blindBoxBuyRecordVo);
} }
......
...@@ -474,6 +474,9 @@ public class DistributionOrderServiceImpl implements DistributionOrderService { ...@@ -474,6 +474,9 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
long orderAmount = supplierItem.getDistributionPrice() * dto.getItemNum(); long orderAmount = supplierItem.getDistributionPrice() * dto.getItemNum();
//盲盒订单存在优惠活动,特殊处理 //盲盒订单存在优惠活动,特殊处理
if (dto.getType() != null && DistributionEnum.DistributionTypeEnum.BLACK_COLLECTION.getCode() == dto.getType()) { if (dto.getType() != null && DistributionEnum.DistributionTypeEnum.BLACK_COLLECTION.getCode() == dto.getType()) {
//盲袋订单,盲袋编码在remark字段中
distributionOrder.setRemark(dto.getRemark());
SellActivityRequestDto sellActivityRequestDto = new SellActivityRequestDto(); SellActivityRequestDto sellActivityRequestDto = new SellActivityRequestDto();
sellActivityRequestDto.setOrderAmount(orderAmount); sellActivityRequestDto.setOrderAmount(orderAmount);
//查询优惠活动后的订单价格 //查询优惠活动后的订单价格
......
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