Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
ca084ec8
Commit
ca084ec8
authored
Aug 07, 2020
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: [none] addGroup
parent
f19d8656
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
BookConstant.java
...main/java/com/pcloud/book/book/constant/BookConstant.java
+2
-0
RightsSettingBizImpl.java
...oud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
+3
-3
No files found.
pcloud-facade-book/src/main/java/com/pcloud/book/book/constant/BookConstant.java
View file @
ca084ec8
...
...
@@ -353,6 +353,8 @@ public class BookConstant {
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
[]
APPANDPRODUCT
=
{
"APP"
,
"PRODUCT"
};
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
View file @
ca084ec8
...
...
@@ -1063,7 +1063,7 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
List
<
RightsNowItem
>
nowItems
=
rightsNowItemDao
.
getListByRightsSettingTitleId
(
rightsSettingTitle
.
getId
(),
Collections
.
singletonList
(
RightsNowItemTypeNew
.
ONLINE_COURSE
.
value
));
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
);
}
return
rightsSetting
;
...
...
@@ -1971,11 +1971,11 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
.
getListByRightsSettingTitleId
(
rightsSettingTitle
.
getId
(),
Collections
.
singletonList
(
RightsNowItemTypeNew
.
GROUP_SERVICE
.
value
));
if
(
RightsServeTypeEnum
.
NEWS
.
name
().
equalsIgnoreCase
(
rightsSettingTitle
.
getServeType
())){
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
);
}
else
{
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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment