|
@@ -96,7 +96,7 @@ public class IncrementOrderServiceImpl extends ServiceImpl<IIncrementOrderMapper
|
|
|
throw new BusinessException(LoginConstant.FAILURE_CODE_3001, LoginConstant.FAILURE_MSG_3001);
|
|
|
}
|
|
|
// 5 专业会员,6 下载 , 7 高级会员
|
|
|
- if(param.getDateType() != 6 && param.getIncrementTypeId() == null){
|
|
|
+ if(param.getDateType() != 6 && param.getIncrementTypeId() == null && param.getUserIncrementId() == null){
|
|
|
throw new BusinessException(SceneConstant.FAILURE_CODE_5012, SceneConstant.FAILURE_MSG_5012);
|
|
|
}
|
|
|
return getGoodsSkuVo(param.getDateType(), param.getUserIncrementId(),param.getMonthQy(),param.getIncrementTypeId());
|
|
@@ -105,6 +105,10 @@ public class IncrementOrderServiceImpl extends ServiceImpl<IIncrementOrderMapper
|
|
|
|
|
|
private GoodsSkuVo getGoodsSkuVo (Integer dateType,Integer userIncrementId,Integer monthDy,Integer incrementTypeId){
|
|
|
GoodsSkuVo goodsSkuVo = new GoodsSkuVo();
|
|
|
+ if(userIncrementId != null){
|
|
|
+ UserIncrement userIncrement = userIncrementService.getById(userIncrementId);
|
|
|
+ incrementTypeId = userIncrement.getIncrementTypeId();
|
|
|
+ }
|
|
|
IncrementType incrementType = null;
|
|
|
if(incrementTypeId != null){ //购买会员
|
|
|
incrementType = incrementTypeService.getById(incrementTypeId);
|