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
b3d073e9
Commit
b3d073e9
authored
Feb 28, 2020
by
裴大威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixbug-1021251' into 'master'
修改return异步 See merge request rays/pcloud-book!487
parents
8cca8c56
7bc3a378
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
15 deletions
+19
-15
SelfPlanBizImpl.java
...com/pcloud/book/timecontrol/biz/impl/SelfPlanBizImpl.java
+19
-15
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/timecontrol/biz/impl/SelfPlanBizImpl.java
View file @
b3d073e9
...
@@ -210,21 +210,25 @@ public class SelfPlanBizImpl implements SelfPlanBiz {
...
@@ -210,21 +210,25 @@ public class SelfPlanBizImpl implements SelfPlanBiz {
selfPlanItemMapper
.
deleteByPlanId
(
planId
);
selfPlanItemMapper
.
deleteByPlanId
(
planId
);
selfPlanItemMapper
.
batchInsert
(
selfPlanItemList
);
selfPlanItemMapper
.
batchInsert
(
selfPlanItemList
);
TimeControlSelfPlan
plan
=
timeControlSelfPlanMapper
.
getById
(
planId
);
TimeControlSelfPlan
plan
=
timeControlSelfPlanMapper
.
getById
(
planId
);
plan
.
setUpdateTime
(
new
Date
());
if
(
plan
!=
null
)
{
timeControlSelfPlanMapper
.
update
(
plan
);
plan
.
setUpdateTime
(
new
Date
());
if
(
plan
!=
null
&&
plan
.
getHasClickPlan
()
==
1
)
{
timeControlSelfPlanMapper
.
update
(
plan
);
String
robotWxId
=
plan
.
getRobotWxId
();
if
(
plan
.
getHasClickPlan
()
==
1
)
{
String
userWxId
=
plan
.
getWxId
();
ThreadPoolUtils
.
OTHER_THREAD_POOL
.
execute
(()
->
{
GroupRobotDTO
groupRobotDTO
=
wechatGroupConsr
.
getGroupRobotByWxId
(
robotWxId
);
String
robotWxId
=
plan
.
getRobotWxId
();
String
ip
=
weixinQrcodeBiz
.
getRobotIpByGeneration
(
groupRobotDTO
.
getVersion
());
String
userWxId
=
plan
.
getWxId
();
SendTextMessageVO
sendTextMessageVO
=
new
SendTextMessageVO
();
GroupRobotDTO
groupRobotDTO
=
wechatGroupConsr
.
getGroupRobotByWxId
(
robotWxId
);
sendTextMessageVO
.
setContent
(
plan
.
getChangeReply
());
String
ip
=
weixinQrcodeBiz
.
getRobotIpByGeneration
(
groupRobotDTO
.
getVersion
());
sendTextMessageVO
.
setCode
(
SendMessageTypeEnum
.
SELF
.
getCode
());
SendTextMessageVO
sendTextMessageVO
=
new
SendTextMessageVO
();
sendTextMessageVO
.
setWxId
(
robotWxId
);
sendTextMessageVO
.
setContent
(
plan
.
getChangeReply
());
sendTextMessageVO
.
setAltId
(
robotWxId
);
sendTextMessageVO
.
setCode
(
SendMessageTypeEnum
.
SELF
.
getCode
());
sendTextMessageVO
.
setWxGroupId
(
userWxId
);
sendTextMessageVO
.
setWxId
(
robotWxId
);
sendTextMessageVO
.
setIp
(
ip
);
sendTextMessageVO
.
setAltId
(
robotWxId
);
WxGroupSDK
.
sendTextMessage
(
sendTextMessageVO
);
sendTextMessageVO
.
setWxGroupId
(
userWxId
);
sendTextMessageVO
.
setIp
(
ip
);
WxGroupSDK
.
sendTextMessage
(
sendTextMessageVO
);
});
}
}
}
}
}
...
...
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