Commit d82c4b64 by 吴博

Merge branch 'feat_wb_1002932_new' into 'master'

fix1002932

See merge request rays/pcloud-book!740
parents 71a11464 806c0798
...@@ -38,7 +38,7 @@ public class RightsSettingCheck { ...@@ -38,7 +38,7 @@ public class RightsSettingCheck {
if (null==rightsSetting.getRightsSettingType()){ if (null==rightsSetting.getRightsSettingType()){
throw new BookBizException(BookBizException.PARAM_IS_NULL,"权益类型为空!"); throw new BookBizException(BookBizException.PARAM_IS_NULL,"权益类型为空!");
} }
if (ListUtils.isEmpty(rightsSetting.getRightsSettingBookRelations())){ if (rightsSetting.getRightsSettingType() == 2 &&ListUtils.isEmpty(rightsSetting.getRightsSettingBookRelations())){
throw new BookBizException(BookBizException.PARAM_IS_NULL,"RightsSettingBookRelations不能为空!"); throw new BookBizException(BookBizException.PARAM_IS_NULL,"RightsSettingBookRelations不能为空!");
} }
if (rightsSetting.getRightsSettingType()==1 && null == rightsSetting.getFirstClassify()){ if (rightsSetting.getRightsSettingType()==1 && null == rightsSetting.getFirstClassify()){
......
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