Commit ca084ec8 by 吴博

feat: [none] addGroup

parent f19d8656
...@@ -353,6 +353,8 @@ public class BookConstant { ...@@ -353,6 +353,8 @@ public class BookConstant {
public static final Integer MAX_NEWS_COUNT = 3; public static final Integer MAX_NEWS_COUNT = 3;
public static final Integer MAX_NEWS_COUNT_GROUP = 5;
public static final String APP_PRODUCT = "APP/PRODUCT"; public static final String APP_PRODUCT = "APP/PRODUCT";
public static final String[] APPANDPRODUCT = {"APP","PRODUCT"}; public static final String[] APPANDPRODUCT = {"APP","PRODUCT"};
......
...@@ -1063,7 +1063,7 @@ public class RightsSettingBizImpl implements RightsSettingBiz { ...@@ -1063,7 +1063,7 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
List<RightsNowItem> nowItems = rightsNowItemDao List<RightsNowItem> nowItems = rightsNowItemDao
.getListByRightsSettingTitleId(rightsSettingTitle.getId(), Collections.singletonList(RightsNowItemTypeNew.ONLINE_COURSE.value)); .getListByRightsSettingTitleId(rightsSettingTitle.getId(), Collections.singletonList(RightsNowItemTypeNew.ONLINE_COURSE.value));
processNowItems(rightsSettingTitle, nowItems, RightsNowItemTypeNew.ONLINE_COURSE, rightsSetting.getId(), wechatUserId, processNowItems(rightsSettingTitle, nowItems, RightsNowItemTypeNew.ONLINE_COURSE, rightsSetting.getId(), wechatUserId,
Long.valueOf(RightsNowItemTypeNew.ONLINE_COURSE.value), BookConstant.MAX_NEWS_COUNT, bookId); Long.valueOf(RightsNowItemTypeNew.ONLINE_COURSE.value), BookConstant.MAX_NEWS_COUNT_GROUP, bookId);
rightsSetting.setOnlineRightsSettingTitle(rightsSettingTitle); rightsSetting.setOnlineRightsSettingTitle(rightsSettingTitle);
} }
return rightsSetting; return rightsSetting;
...@@ -1971,11 +1971,11 @@ public class RightsSettingBizImpl implements RightsSettingBiz { ...@@ -1971,11 +1971,11 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
.getListByRightsSettingTitleId(rightsSettingTitle.getId(), Collections.singletonList(RightsNowItemTypeNew.GROUP_SERVICE.value)); .getListByRightsSettingTitleId(rightsSettingTitle.getId(), Collections.singletonList(RightsNowItemTypeNew.GROUP_SERVICE.value));
if (RightsServeTypeEnum.NEWS.name().equalsIgnoreCase(rightsSettingTitle.getServeType())){ if (RightsServeTypeEnum.NEWS.name().equalsIgnoreCase(rightsSettingTitle.getServeType())){
processNowItems(rightsSettingTitle, nowItems, RightsNowItemTypeNew.GROUP_SERVICE, rightsSetting.getId(), wechatUserId, processNowItems(rightsSettingTitle, nowItems, RightsNowItemTypeNew.GROUP_SERVICE, rightsSetting.getId(), wechatUserId,
Long.valueOf(RightsNowItemTypeNew.GROUP_SERVICE.value), BookConstant.MAX_NEWS_COUNT, bookId); Long.valueOf(RightsNowItemTypeNew.GROUP_SERVICE.value), BookConstant.MAX_NEWS_COUNT_GROUP, bookId);
rightsSetting.setGroupServiceTitle(rightsSettingTitle); rightsSetting.setGroupServiceTitle(rightsSettingTitle);
} else { } else {
processNowItems4Group(rightsSettingTitle, nowItems, RightsNowItemTypeNew.GROUP_SERVICE, rightsSetting.getId(), wechatUserId, processNowItems4Group(rightsSettingTitle, nowItems, RightsNowItemTypeNew.GROUP_SERVICE, rightsSetting.getId(), wechatUserId,
Long.valueOf(RightsNowItemTypeNew.GROUP_SERVICE.value), BookConstant.MAX_NEWS_COUNT, bookId); Long.valueOf(RightsNowItemTypeNew.GROUP_SERVICE.value), BookConstant.MAX_NEWS_COUNT_GROUP, bookId);
rightsSetting.setGroupServiceTitle(rightsSettingTitle); rightsSetting.setGroupServiceTitle(rightsSettingTitle);
} }
......
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