|
@@ -29,6 +29,7 @@ import com.fdkankan.ucenter.vo.request.OrderParam;
|
|
|
import com.fdkankan.ucenter.vo.request.PlaceOrderParam;
|
|
|
import com.fdkankan.ucenter.vo.response.GoodsSkuVo;
|
|
|
import com.fdkankan.ucenter.vo.response.OrderVo;
|
|
|
+import com.google.common.collect.Ordering;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -140,7 +141,7 @@ public class OrderServiceImpl extends ServiceImpl<IOrderMapper, Order> implement
|
|
|
OrderItem orderItemEntity = null;
|
|
|
int goodsTotalCount = 0;
|
|
|
BigDecimal goodsAmount = new BigDecimal(0);
|
|
|
-
|
|
|
+ List<String> goodsInfoList = new ArrayList<>();
|
|
|
for(CartParam requestCart : param.getGoods()){
|
|
|
goodsTotalCount += requestCart.getGoodsCount();
|
|
|
|
|
@@ -170,9 +171,10 @@ public class OrderServiceImpl extends ServiceImpl<IOrderMapper, Order> implement
|
|
|
orderItemEntities.add(orderItemEntity);
|
|
|
|
|
|
goodsAmount = goodsAmount.add(orderItemEntity.getGoodsPrice().multiply(new BigDecimal(orderItemEntity.getGoodsCount())));
|
|
|
+ goodsInfoList .add(orderItemEntity.getGoodsName() +"/" +orderItemEntity.getGoodsCount() +"个");
|
|
|
}
|
|
|
|
|
|
- PayOrderVo payOrderVo = payService.downOrder(goodsAmount, "partOrder");
|
|
|
+ PayOrderVo payOrderVo = payService.downOrder(goodsAmount, "partOrder",user.getUserName(),user.getNickName(),goodsInfoList);
|
|
|
if(payOrderVo == null){
|
|
|
throw new BusinessException(OrderConstant.FAILURE_CODE_8005,OrderConstant.FAILURE_MSG_8005);
|
|
|
}
|
|
@@ -271,7 +273,7 @@ public class OrderServiceImpl extends ServiceImpl<IOrderMapper, Order> implement
|
|
|
throw new BusinessException(OrderConstant.FAILURE_CODE_8004, OrderConstant.FAILURE_MSG_8004);
|
|
|
}
|
|
|
|
|
|
- return downloadOrderService.insertDownloadOrder(user.getId(),param,incrementType.getDownloadPrice());
|
|
|
+ return downloadOrderService.insertDownloadOrder(user,param,incrementType.getDownloadPrice());
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -288,7 +290,7 @@ public class OrderServiceImpl extends ServiceImpl<IOrderMapper, Order> implement
|
|
|
if(incrementType == null){
|
|
|
throw new BusinessException(OrderConstant.FAILURE_CODE_8004, OrderConstant.FAILURE_MSG_8004);
|
|
|
}
|
|
|
- return incrementOrderService.insertIncrementOrder(user.getId(), param,incrementType);
|
|
|
+ return incrementOrderService.insertIncrementOrder(user, param,incrementType);
|
|
|
}
|
|
|
|
|
|
@Override
|