Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
667223f1
Commit
667223f1
authored
Mar 10, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
朋友圈
parent
b32eb545
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
QwMomentPlanMapper.java
.../manage/service/dao/mapper/moment/QwMomentPlanMapper.java
+5
-0
QwMomentPlanServiceImpl.java
.../service/service/moment/impl/QwMomentPlanServiceImpl.java
+7
-2
qwMomentPlanMapper.xml
...e/src/main/resources/mapper/moment/qwMomentPlanMapper.xml
+7
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/moment/QwMomentPlanMapper.java
View file @
667223f1
...
...
@@ -29,4 +29,9 @@ public interface QwMomentPlanMapper {
List
<
QwMomentPlanWxaDTO
>
planListWxa
(
PlanListWxaQDTO
qdto
);
int
getTaskNum
(
TaskNumQDTO
qdto
);
void
updateJobid
(
@Param
(
"planId"
)
Long
planId
,
@Param
(
"jobId"
)
String
jobId
);
void
updateMomentId
(
@Param
(
"planId"
)
Long
planId
,
@Param
(
"momentId"
)
String
jobId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/moment/impl/QwMomentPlanServiceImpl.java
View file @
667223f1
...
...
@@ -379,11 +379,16 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
ServiceResponse
<
String
>
resp
=
this
.
qywxSendService
.
share
(
plan
.
getWxEnterpriseId
(),
Arrays
.
asList
(
"b2ef17cce11f476b996d0b27ebadf7fb"
),
msg
,
imageList
)
;
logger
.
info
(
"发企微朋友={}"
,
JSONObject
.
toJSONString
(
resp
));
String
jobId
=
resp
.
getResult
()
;
this
.
qwMomentPlanMapper
.
updateJobid
(
plan
.
getPlanId
(),
jobId
)
;
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
plan
.
getWxEnterpriseId
());
ServiceResponse
<
Object
>
resp2
=
this
.
qywxExternalUserService
.
getMomentTaskResult
(
qwDTO
.
getThirdCorpid
(),
qwDTO
.
getSelf3thSecret
(),
jobId
,
qwDTO
.
isSelf
(),
qwDTO
.
getUrlHost
())
;
qwDTO
.
getSelf3thSecret
(),
jobId
,
qwDTO
.
isSelf
(),
qwDTO
.
getUrlHost
())
;
logger
.
info
(
"获取moment_id={}"
,
JSONObject
.
toJSONString
(
resp2
));
String
moment_id
=
resp2
.
getResult
().
toString
()
;
if
(
null
!=
resp2
.
getResult
())
{
String
moment_id
=
resp2
.
getResult
().
toString
()
;
this
.
qwMomentPlanMapper
.
updateMomentId
(
plan
.
getPlanId
(),
moment_id
);
}
}
@Override
...
...
haoban-manage3-service/src/main/resources/mapper/moment/qwMomentPlanMapper.xml
View file @
667223f1
...
...
@@ -291,5 +291,11 @@
where plan_id = #{planId}
</update>
<update
id=
"updateJobid"
>
update tab_haoban_qw_moment_plan set qw_jobid = #{jobId} where plan_id = #{planId}
</update>
<update
id=
"updateMomentId"
>
update tab_haoban_qw_moment_plan set moment_id = #{momentId} where plan_id = #{planId}
</update>
</mapper>
\ No newline at end of file
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