|
@@ -90,8 +90,15 @@ public class IncrementOrderServiceImpl extends ServiceImpl<IIncrementOrderMapper
|
|
|
if(param.getDateType() != 5 && param.getDateType() != 6 && param.getDateType() !=7){
|
|
|
throw new BusinessException(SceneConstant.FAILURE_CODE_5012, SceneConstant.FAILURE_MSG_5012);
|
|
|
}
|
|
|
+ GoodsSkuVo goodsSkuVo = getGoodsSkuVo(param.getDateType(), param.getUserIncrementId());
|
|
|
+ if(param.getMonthQy() != null){
|
|
|
+ goodsSkuVo.setPrice(goodsSkuVo.getPrice().multiply(new BigDecimal(param.getMonthQy())));
|
|
|
+ if(param.getDateType() ==7){
|
|
|
+ goodsSkuVo.setDeadLine(DateUserUtil.getMonthDate( new Date(),param.getMonthQy() ).getTime());
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- return getGoodsSkuVo(param.getDateType(),param.getUserIncrementId());
|
|
|
+ return goodsSkuVo;
|
|
|
}
|
|
|
|
|
|
private GoodsSkuVo getGoodsSkuVo (Integer dateType,Integer userIncrementId){
|