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
fc6d506d
Commit
fc6d506d
authored
Mar 03, 2020
by
阮思源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1002498客服入口需呈现读者当前阶段情况
parent
05819e10
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
PersonalStageBiz.java
...a/com/pcloud/book/personalstage/biz/PersonalStageBiz.java
+2
-0
PersonalStageBizImpl.java
...oud/book/personalstage/biz/impl/PersonalStageBizImpl.java
+9
-0
PersonalStageFacade.java
...pcloud/book/personalstage/facade/PersonalStageFacade.java
+11
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/personalstage/biz/PersonalStageBiz.java
View file @
fc6d506d
...
@@ -74,4 +74,6 @@ public interface PersonalStageBiz {
...
@@ -74,4 +74,6 @@ public interface PersonalStageBiz {
*/
*/
Boolean
isFirstVisit
(
Long
personalStageUserId
);
Boolean
isFirstVisit
(
Long
personalStageUserId
);
PersonalStage
getCurrentPersonalStage
(
String
wxId
,
String
robotId
);
}
}
pcloud-service-book/src/main/java/com/pcloud/book/personalstage/biz/impl/PersonalStageBizImpl.java
View file @
fc6d506d
...
@@ -893,6 +893,15 @@ public class PersonalStageBizImpl implements PersonalStageBiz {
...
@@ -893,6 +893,15 @@ public class PersonalStageBizImpl implements PersonalStageBiz {
return
false
;
return
false
;
}
}
@ParamLog
(
"当前用户阶段"
)
@Override
public
PersonalStage
getCurrentPersonalStage
(
String
wxId
,
String
robotId
)
{
PersonalStageUser
last
=
personalStageUserDao
.
getLast
(
wxId
,
robotId
,
null
);
if
(
last
!=
null
){
return
personalStageDao
.
getById
(
last
.
getPersonalStageId
());
}
return
null
;
}
private
void
setProgressTime
(
List
<
PersonalStageProgressMessage
>
personalStageProgressMessages
,
Date
startTime
)
{
private
void
setProgressTime
(
List
<
PersonalStageProgressMessage
>
personalStageProgressMessages
,
Date
startTime
)
{
personalStageProgressMessages
.
stream
().
forEach
(
e
->{
personalStageProgressMessages
.
stream
().
forEach
(
e
->{
e
.
setProgressTime
(
DateUtils
.
addMinute
(
startTime
,
e
.
getMinutes
()));
e
.
setProgressTime
(
DateUtils
.
addMinute
(
startTime
,
e
.
getMinutes
()));
...
...
pcloud-service-book/src/main/java/com/pcloud/book/personalstage/facade/PersonalStageFacade.java
View file @
fc6d506d
...
@@ -228,4 +228,15 @@ public class PersonalStageFacade {
...
@@ -228,4 +228,15 @@ public class PersonalStageFacade {
return
new
ResponseDto
<>(
personalStageBiz
.
isFirstVisit
(
personalStageUserId
));
return
new
ResponseDto
<>(
personalStageBiz
.
isFirstVisit
(
personalStageUserId
));
}
}
@ApiOperation
(
"获取单个用户当前定制化阶段"
)
@GetMapping
(
"/getCurrentPersonalStage"
)
public
ResponseDto
<?>
getCurrentPersonalStage
(
@RequestHeader
(
"token"
)
@ApiParam
(
"token信息"
)
String
token
,
@RequestParam
(
"wxId"
)
@ApiParam
(
"用户id"
)
String
wxId
,
@RequestParam
(
"robotId"
)
@ApiParam
(
"机器人id"
)
String
robotId
)
throws
BizException
,
PermissionException
{
SessionUtil
.
getVlaue
(
token
,
SessionUtil
.
PARTY_ID
);
return
new
ResponseDto
<>(
personalStageBiz
.
getCurrentPersonalStage
(
wxId
,
robotId
));
}
}
}
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