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
bbb67f66
Commit
bbb67f66
authored
Mar 13, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
朋友圈
parent
a76035c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
QwMomentPlanAttendMapper.java
...e/service/dao/mapper/moment/QwMomentPlanAttendMapper.java
+6
-1
GroupChatPlanServiceImpl.java
...e/service/service/chat/impl/GroupChatPlanServiceImpl.java
+5
-1
qwMomentPlanAttendMapper.xml
...main/resources/mapper/moment/qwMomentPlanAttendMapper.xml
+14
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/moment/QwMomentPlanAttendMapper.java
View file @
bbb67f66
...
...
@@ -58,5 +58,10 @@ public interface QwMomentPlanAttendMapper {
CountBO
getQwCount
(
@Param
(
"planId"
)
Long
planId
);
int
getTotalTask
(
String
enterpriseId
,
String
clerkId
,
Date
date
);
int
getTotalTask
(
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"clerkId"
)
String
clerkId
,
@Param
(
"time"
)
Date
time
)
;
int
getInvalidTask
(
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"clerkId"
)
String
clerkId
,
@Param
(
"time"
)
Date
time
)
;
int
getOverdueTask
(
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"clerkId"
)
String
clerkId
,
@Param
(
"time"
)
Date
time
)
;
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatPlanServiceImpl.java
View file @
bbb67f66
...
...
@@ -957,9 +957,13 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
int
overdue
=
this
.
groupChatPlanOwnerLogMapper
.
getOverdueTask
(
enterpriseId
,
clerkId
,
date
)
;
this
.
qywxGroupSendCanvasApiService
.
saveNoticeLog
(
enterpriseId
,
clerkId
,
total
,
overdue
,
invalid
,
"chat"
)
;
}
// 朋友圈
int
momentTotal
=
this
.
qwMomentPlanAttendMapper
.
getTotalTask
(
enterpriseId
,
clerkId
,
date
)
;
if
(
total
>
0
)
{
int
invalid
=
this
.
qwMomentPlanAttendMapper
.
getInvalidTask
(
enterpriseId
,
clerkId
,
date
)
;
int
overdue
=
this
.
qwMomentPlanAttendMapper
.
getOverdueTask
(
enterpriseId
,
clerkId
,
date
)
;
this
.
qywxGroupSendCanvasApiService
.
saveNoticeLog
(
enterpriseId
,
clerkId
,
momentTotal
,
overdue
,
invalid
,
"moment"
)
;
}
}
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/moment/qwMomentPlanAttendMapper.xml
View file @
bbb67f66
...
...
@@ -179,6 +179,20 @@
AND a.clerk_id = #{clerkId} AND a.task_status = 1 and a.delete_flag = 0
</select>
<!-- 查询逾期任务数-->
<select
id=
"getInvalidTask"
resultType=
"int"
>
select count(1) 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.enterprise_id = #{enterpriseId} and b.end_date = #{time}
AND a.clerk_id = #{clerkId} AND a.task_status = 1 and a.delete_flag = 0
</select>
<!-- 查询失效任务数-->
<select
id=
"getOverdueTask"
resultType=
"int"
>
select count(1) 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.enterprise_id = #{enterpriseId} and b.end_date = now()
AND a.clerk_id = #{clerkId} AND a.task_status = 1 and a.delete_flag = 0
</select>
<update
id=
"delClerks"
>
update tab_haoban_qw_moment_plan_attend set delete_flag = 1 , update_time=now() where plan_id = #{planId}
...
...
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