Commit 806c0798 by 吴博

fix1002932

parent 5e089bd9
...@@ -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