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
1
Merge Requests
1
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
d8caa5cd
Commit
d8caa5cd
authored
Mar 12, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
朋友圈
parent
2c0e9895
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
4 deletions
+31
-4
QwMomentPlanAttendMapper.java
...e/service/dao/mapper/moment/QwMomentPlanAttendMapper.java
+2
-0
QwMomentPlanService.java
...an/manage/service/service/moment/QwMomentPlanService.java
+1
-1
QwMomentPlanAttendServiceImpl.java
...ce/service/moment/impl/QwMomentPlanAttendServiceImpl.java
+6
-0
QwMomentPlanServiceImpl.java
.../service/service/moment/impl/QwMomentPlanServiceImpl.java
+16
-2
qwMomentPlanAttendMapper.xml
...main/resources/mapper/moment/qwMomentPlanAttendMapper.xml
+6
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/moment/QwMomentPlanAttendMapper.java
View file @
d8caa5cd
...
...
@@ -14,6 +14,8 @@ import java.util.List;
public
interface
QwMomentPlanAttendMapper
{
TabQwMomentPlanAttend
getById
(
Long
attendId
)
;
void
batchInsert
(
List
<
TabQwMomentPlanAttend
>
list
)
;
/**
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/moment/QwMomentPlanService.java
View file @
d8caa5cd
...
...
@@ -37,7 +37,7 @@ public interface QwMomentPlanService {
* 拉取企微点赞、评论
* @param task
*/
void
getQwData
(
TabQwMomentPlanAttend
task
)
;
void
getQwData
(
TabQwMomentPlanAttend
task
,
int
type
)
;
void
getMomentId
(
Long
planId
)
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/moment/impl/QwMomentPlanAttendServiceImpl.java
View file @
d8caa5cd
...
...
@@ -26,6 +26,7 @@ import com.gic.haoban.manage.service.entity.moment.TabQwMomentPlanAttend;
import
com.gic.haoban.manage.service.pojo.ClerkStaffBO
;
import
com.gic.haoban.manage.service.service.WxEnterpriseService
;
import
com.gic.haoban.manage.service.service.moment.QwMomentPlanAttendService
;
import
com.gic.haoban.manage.service.service.moment.QwMomentPlanService
;
import
com.gic.wechat.api.dto.qdto.group.QywxMomentInfoQDTO
;
import
com.gic.wechat.api.dto.qywx.group.QywxMomentRespDTO
;
import
com.gic.wechat.api.service.qywx.QywxSuiteApiService
;
...
...
@@ -61,6 +62,8 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService
private
QwMomentPlanMapper
qwMomentPlanMapper
;
@Autowired
private
StaffClerkRelationApiService
staffClerkRelationApiService
;
@Autowired
private
QwMomentPlanService
qwMomentPlanService
;
@Override
public
ServiceResponse
<
Page
<
QwMomentPlanAttendDTO
>>
attendList
(
PlanClerkListQDTO
qdto
)
{
...
...
@@ -177,6 +180,9 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService
@Override
public
ServiceResponse
<
TaskDetailDTO
>
taskDetail
(
Long
planId
,
String
execClerkId
)
{
TaskDetailDTO
dto
=
this
.
qwMomentPlanAttendMapper
.
taskDetail
(
planId
,
execClerkId
)
;
Long
attendId
=
dto
.
getAttendId
()
;
TabQwMomentPlanAttend
attend
=
this
.
qwMomentPlanAttendMapper
.
getById
(
attendId
)
;
this
.
qwMomentPlanService
.
getQwData
(
attend
,
1
);
return
ServiceResponse
.
success
(
dto
);
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/moment/impl/QwMomentPlanServiceImpl.java
View file @
d8caa5cd
...
...
@@ -473,7 +473,7 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
List
<
TabQwMomentPlanAttend
>
list
=
this
.
qwMomentPlanAttendMapper
.
listForData
(
planId
)
;
for
(
TabQwMomentPlanAttend
item
:
list
)
{
item
.
setMomentId
(
plan
.
getMomentId
());
this
.
getQwData
(
item
);
this
.
getQwData
(
item
,
0
);
}
CountBO
bo
=
this
.
qwMomentPlanAttendMapper
.
getQwCount
(
planId
)
;
if
(
null
!=
bo
&&
(
null
!=
bo
.
getLinkCount
()
||
null
!=
bo
.
getCommentCount
()))
{
...
...
@@ -490,10 +490,24 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
}
@Override
public
void
getQwData
(
TabQwMomentPlanAttend
task
)
{
public
void
getQwData
(
TabQwMomentPlanAttend
task
,
int
type
)
{
MomentResultDTO
dto
=
this
.
getQwData
(
task
.
getStaffId
(),
task
.
getMomentId
(),
task
.
getWxEnterpriseId
())
;
if
(
null
!=
dto
)
{
this
.
qwMomentPlanDataService
.
save
(
task
,
dto
);
if
(
type
==
1
)
{
CountBO
bo
=
this
.
qwMomentPlanAttendMapper
.
getQwCount
(
task
.
getPlanId
())
;
if
(
null
!=
bo
&&
(
null
!=
bo
.
getLinkCount
()
||
null
!=
bo
.
getCommentCount
()))
{
int
like
=
0
;
int
comment
=
0
;
if
(
bo
.
getLinkCount
()
==
null
)
{
like
=
0
;
}
if
(
bo
.
getCommentCount
()
==
null
)
{
comment
=
0
;
}
this
.
qwMomentPlanMapper
.
updateQwData
(
task
.
getPlanId
()
,
like
,
comment
)
;
}
}
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/moment/qwMomentPlanAttendMapper.xml
View file @
d8caa5cd
...
...
@@ -167,6 +167,11 @@
like_count is not null and comment_count is not null
</select>
<select
id=
"getById"
resultMap=
"result-map-tabHaobanQwMomentPlanAttend"
parameterType=
"java.lang.Long"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_qw_moment_plan_attend where attend_id = #{attendId}
</select>
<update
id=
"delClerks"
>
update tab_haoban_qw_moment_plan_attend set delete_flag = 1 , update_time=now() where plan_id = #{planId}
<if
test=
"null != list"
>
...
...
@@ -210,7 +215,7 @@
</update>
<update
id=
"updateQwData"
>
update tab_haoban_qw_moment_plan_attend set like_count = #{likeCount} , comment_count=#{momentCount} where plan_id = #{planId} and clerk_id = #{clerkId}
update tab_haoban_qw_moment_plan_attend set like_count = #{likeCount} , comment_count=#{momentCount}
, qw_data_time = now()
where plan_id = #{planId} and clerk_id = #{clerkId}
</update>
<!-- ===================== 新增 ======================== -->
...
...
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