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
c934dec2
Commit
c934dec2
authored
Aug 09, 2021
by
田超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/gradeLabel' into 'master'
feat:[1005218]更新用户学龄段 See merge request rays/pcloud-book!1377
parents
9ec670ff
4e49a55e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
AppletUserBookcaseBizImpl.java
...cloud/book/applet/biz/impl/AppletUserBookcaseBizImpl.java
+11
-5
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/applet/biz/impl/AppletUserBookcaseBizImpl.java
View file @
c934dec2
...
@@ -170,11 +170,14 @@ public class AppletUserBookcaseBizImpl implements AppletUserBookcaseBiz {
...
@@ -170,11 +170,14 @@ public class AppletUserBookcaseBizImpl implements AppletUserBookcaseBiz {
}
}
private
void
updateUserGradeLabel
(
AppletUserBookcase
appletUserBookcase
)
{
private
void
updateUserGradeLabel
(
AppletUserBookcase
appletUserBookcase
)
{
//用户没有标签,更新用户年级标签
//如果书刊能匹配到,更新用户年级标签
//用户是否有年级标签
Boolean
hasLabel
=
false
;
UserGradeLabelIdDTO
labelIdDTO
=
readerConsr
.
getUserGrade
(
appletUserBookcase
.
getWechatUserId
(),
appletUserBookcase
.
getOfficialAccountsId
());
UserGradeLabelIdDTO
labelIdDTO
=
readerConsr
.
getUserGrade
(
appletUserBookcase
.
getWechatUserId
(),
appletUserBookcase
.
getOfficialAccountsId
());
if
(
null
!=
labelIdDTO
&&
null
!=
labelIdDTO
.
getLabelId
())
{
if
(
null
!=
labelIdDTO
&&
null
!=
labelIdDTO
.
getLabelId
())
{
return
;
hasLabel
=
true
;
}
}
//获取书刊匹配的年级标签
BookAdviserDto
bookAdviserDto
=
bookAdviserBiz
.
getBase
(
appletUserBookcase
.
getBookId
(),
appletUserBookcase
.
getChannelId
(),
appletUserBookcase
.
getAdviserId
());
BookAdviserDto
bookAdviserDto
=
bookAdviserBiz
.
getBase
(
appletUserBookcase
.
getBookId
(),
appletUserBookcase
.
getChannelId
(),
appletUserBookcase
.
getAdviserId
());
if
(
null
==
bookAdviserDto
)
{
if
(
null
==
bookAdviserDto
)
{
return
;
return
;
...
@@ -186,9 +189,12 @@ public class AppletUserBookcaseBizImpl implements AppletUserBookcaseBiz {
...
@@ -186,9 +189,12 @@ public class AppletUserBookcaseBizImpl implements AppletUserBookcaseBiz {
if
(
null
!=
bookAdviserDto
.
getDepLabelId
())
{
if
(
null
!=
bookAdviserDto
.
getDepLabelId
())
{
gradeId
=
resourcePageBiz
.
getGradeByDepLabelId
(
bookAdviserDto
.
getDepLabelId
());
gradeId
=
resourcePageBiz
.
getGradeByDepLabelId
(
bookAdviserDto
.
getDepLabelId
());
}
}
//匹配不到,取已工作年龄段
//书刊匹配不到且用户当前没有标签,取已工作年龄段
gradeId
=
null
==
gradeId
?
29L
:
gradeId
;
gradeId
=
(
null
==
gradeId
&&
!
hasLabel
)
?
29L
:
gradeId
;
readerConsr
.
addUserGradeLabel
(
appletUserBookcase
.
getWechatUserId
(),
appletUserBookcase
.
getOfficialAccountsId
(),
gradeId
);
//更新用户年级标签
if
(
null
!=
gradeId
)
{
readerConsr
.
addUserGradeLabel
(
appletUserBookcase
.
getWechatUserId
(),
appletUserBookcase
.
getOfficialAccountsId
(),
gradeId
);
}
//更新用户书籍标签
//更新用户书籍标签
if
(
null
!=
bookAdviserDto
.
getTempletId
())
{
if
(
null
!=
bookAdviserDto
.
getTempletId
())
{
try
{
try
{
...
...
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