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
848d5a26
Commit
848d5a26
authored
Mar 13, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
朋友圈
parent
d8c9c02c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
7 deletions
+32
-7
TaskDetailDTO.java
...a/com/gic/haoban/manage/api/dto/moment/TaskDetailDTO.java
+20
-0
QwMomentPlanService.java
...an/manage/service/service/moment/QwMomentPlanService.java
+1
-1
QwMomentPlanAttendServiceImpl.java
...ce/service/moment/impl/QwMomentPlanAttendServiceImpl.java
+2
-1
QwMomentPlanServiceImpl.java
.../service/service/moment/impl/QwMomentPlanServiceImpl.java
+6
-4
qwMomentPlanAttendMapper.xml
...main/resources/mapper/moment/qwMomentPlanAttendMapper.xml
+3
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/moment/TaskDetailDTO.java
View file @
848d5a26
...
@@ -65,6 +65,26 @@ public class TaskDetailDTO implements Serializable {
...
@@ -65,6 +65,26 @@ public class TaskDetailDTO implements Serializable {
// 1内容
// 1内容
private
Integer
mediaType
;
private
Integer
mediaType
;
private
String
momentId
;
private
String
planMomentId
;
public
String
getMomentId
()
{
return
momentId
;
}
public
void
setMomentId
(
String
momentId
)
{
this
.
momentId
=
momentId
;
}
public
String
getPlanMomentId
()
{
return
planMomentId
;
}
public
void
setPlanMomentId
(
String
planMomentId
)
{
this
.
planMomentId
=
planMomentId
;
}
public
Integer
getMediaType
()
{
public
Integer
getMediaType
()
{
return
mediaType
;
return
mediaType
;
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/moment/QwMomentPlanService.java
View file @
848d5a26
...
@@ -37,7 +37,7 @@ public interface QwMomentPlanService {
...
@@ -37,7 +37,7 @@ public interface QwMomentPlanService {
* 拉取企微点赞、评论
* 拉取企微点赞、评论
* @param task
* @param task
*/
*/
void
getQwData
(
TabQwMomentPlanAttend
task
,
int
type
)
;
void
getQwData
(
TabQwMomentPlanAttend
task
,
int
type
,
String
planMomentId
)
;
void
getMomentId
(
Long
planId
)
;
void
getMomentId
(
Long
planId
)
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/moment/impl/QwMomentPlanAttendServiceImpl.java
View file @
848d5a26
...
@@ -182,7 +182,8 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService
...
@@ -182,7 +182,8 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService
TaskDetailDTO
dto
=
this
.
qwMomentPlanAttendMapper
.
taskDetail
(
planId
,
execClerkId
)
;
TaskDetailDTO
dto
=
this
.
qwMomentPlanAttendMapper
.
taskDetail
(
planId
,
execClerkId
)
;
Long
attendId
=
dto
.
getAttendId
()
;
Long
attendId
=
dto
.
getAttendId
()
;
TabQwMomentPlanAttend
attend
=
this
.
qwMomentPlanAttendMapper
.
getById
(
attendId
)
;
TabQwMomentPlanAttend
attend
=
this
.
qwMomentPlanAttendMapper
.
getById
(
attendId
)
;
this
.
qwMomentPlanService
.
getQwData
(
attend
,
1
);
TabQwMomentPlan
plan
=
this
.
qwMomentPlanMapper
.
getById
(
planId
)
;
this
.
qwMomentPlanService
.
getQwData
(
attend
,
1
,
plan
.
getMomentId
());
return
ServiceResponse
.
success
(
dto
);
return
ServiceResponse
.
success
(
dto
);
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/moment/impl/QwMomentPlanServiceImpl.java
View file @
848d5a26
...
@@ -472,8 +472,7 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
...
@@ -472,8 +472,7 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
TabQwMomentPlan
plan
=
this
.
qwMomentPlanMapper
.
getById
(
planId
)
;
TabQwMomentPlan
plan
=
this
.
qwMomentPlanMapper
.
getById
(
planId
)
;
List
<
TabQwMomentPlanAttend
>
list
=
this
.
qwMomentPlanAttendMapper
.
listForData
(
planId
)
;
List
<
TabQwMomentPlanAttend
>
list
=
this
.
qwMomentPlanAttendMapper
.
listForData
(
planId
)
;
for
(
TabQwMomentPlanAttend
item
:
list
)
{
for
(
TabQwMomentPlanAttend
item
:
list
)
{
item
.
setMomentId
(
plan
.
getMomentId
());
this
.
getQwData
(
item
,
0
,
plan
.
getMomentId
());
this
.
getQwData
(
item
,
0
);
}
}
CountBO
bo
=
this
.
qwMomentPlanAttendMapper
.
getQwCount
(
planId
)
;
CountBO
bo
=
this
.
qwMomentPlanAttendMapper
.
getQwCount
(
planId
)
;
if
(
null
!=
bo
&&
(
null
!=
bo
.
getLinkCount
()
||
null
!=
bo
.
getCommentCount
()))
{
if
(
null
!=
bo
&&
(
null
!=
bo
.
getLinkCount
()
||
null
!=
bo
.
getCommentCount
()))
{
...
@@ -490,8 +489,11 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
...
@@ -490,8 +489,11 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
}
}
@Override
@Override
public
void
getQwData
(
TabQwMomentPlanAttend
task
,
int
type
)
{
public
void
getQwData
(
TabQwMomentPlanAttend
task
,
int
type
,
String
planMomentId
)
{
logger
.
info
(
"获取企微的统计"
);
logger
.
info
(
"获取企微的统计={},{},{}"
,
JSONObject
.
toJSONString
(
task
),
task
,
planMomentId
);
if
(
StringUtils
.
isNotBlank
(
planMomentId
))
{
task
.
setMomentId
(
planMomentId
);
}
if
(
StringUtils
.
isBlank
(
task
.
getMomentId
()))
{
if
(
StringUtils
.
isBlank
(
task
.
getMomentId
()))
{
return
;
return
;
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/moment/qwMomentPlanAttendMapper.xml
View file @
848d5a26
...
@@ -119,7 +119,9 @@
...
@@ -119,7 +119,9 @@
a.like_count likeCount ,
a.like_count likeCount ,
a.comment_count commentCount ,
a.comment_count commentCount ,
a.qw_data_time qwDataTime ,
a.qw_data_time qwDataTime ,
a.task_status taskStatus
a.task_status taskStatus ,
a.moment_id momentId ,
b.moment_id planMomentId
from tab_haoban_qw_moment_plan_attend a left join tab_haoban_qw_moment_plan b on a.plan_id = b.plan_id
from tab_haoban_qw_moment_plan_attend a left join tab_haoban_qw_moment_plan b on a.plan_id = b.plan_id
where a.plan_id = #{planId} and a.clerk_id = #{clerkId} and a.delete_flag = 0 and a.status_flag = 1
where a.plan_id = #{planId} and a.clerk_id = #{clerkId} and a.delete_flag = 0 and a.status_flag = 1
</select>
</select>
...
...
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