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
673b2271
Commit
673b2271
authored
Dec 24, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通知画布
parent
36fd147c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
38 deletions
+45
-38
GroupChatPlanServiceImpl.java
...e/service/service/chat/impl/GroupChatPlanServiceImpl.java
+5
-0
GroupChatPlanOwnerLogMapper.xml
...ain/resources/mapper/chat/GroupChatPlanOwnerLogMapper.xml
+40
-38
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatPlanServiceImpl.java
View file @
673b2271
...
...
@@ -745,6 +745,8 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
String
failRemark
=
qdto
.
getFailRemark
()
;
Date
sendTime
=
qdto
.
getSendTime
()
;
this
.
groupChatPlanOwnerLogMapper
.
staffSendResult
(
staffId
,
planId
,
sendTime
,
failRemark
)
;
GroupChatPlanOwnerLogDTO
dto
=
this
.
groupChatPlanOwnerLogService
.
getOwnerInfo
(
planId
,
staffId
,
null
,
wxEnterpriseId
)
;
this
.
updateMsgid
(
dto
);
}
public
void
addOrDelTimer
(
Long
planId
,
Date
sendTime
,
int
status
)
{
...
...
@@ -840,6 +842,9 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
private
void
updateMsgid
(
GroupChatPlanOwnerLogDTO
dto
)
{
try
{
if
(
null
==
dto
)
{
return
;
}
Long
ownerLogId
=
dto
.
getOwnerLogId
()
;
String
staffId
=
dto
.
getStaffId
()
;
Date
sendTime
=
dto
.
getSendTime
()
;
...
...
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatPlanOwnerLogMapper.xml
View file @
673b2271
...
...
@@ -159,21 +159,47 @@
</if>
order by a.create_time , a.owner_log_id
</select>
<select
id=
"getOwnerInfo"
resultType=
"com.gic.haoban.manage.api.dto.chat.GroupChatPlanOwnerLogDTO"
>
select
a.owner_log_id ownerLogId ,
b.plan_id planId ,
b.name planName ,
b.exec_type execType ,
a.staff_id staffId ,
a.clerk_id clerkId ,
a.store_id storeId ,
a.send_status sendStatus ,
a.send_count sendCount ,
a.fail_count failCount ,
a.send_time sendTime ,
a.create_time createTime ,
b.end_time expireDate ,
b.end_time endTime ,
b.start_time startTime ,
a.done_flag doneFlag ,
a.msgid msgid
from tab_haoban_group_chat_plan_owner_log a left join tab_haoban_group_chat_plan b on a.plan_id = b.plan_id
where a.wx_enterprise_id = #{wxEnterpriseId} and a.plan_id = #{planId} and b.delete_flag = 0 and a.staff_id = #{staffId}
<if
test=
"null != clerkId"
>
and a.clerk_id = #{clerkId}
</if>
</select>
<select
id=
"listOwnerLogPageForWxaTotal"
parameterType=
"com.gic.haoban.manage.api.dto.qdto.chat.GroupChatPlanSearchQDTO"
resultType=
"com.gic.haoban.manage.api.dto.chat.ChatOwnerTotalDTO"
>
select
select
b.plan_id planId ,
b.name planName ,
b.start_time startTime ,
b.start_time startTime ,
b.end_time endTime ,
b.exec_type execType ,
<!-- 已发送 -->
SUM(CASE a.send_status WHEN 2 THEN 1 ELSE 0 END ) sendCount,
<!-- 待发送 -->
SUM(CASE a.send_status WHEN 1 THEN 1 ELSE 0 END ) notSendCount
from tab_haoban_group_chat_plan_owner_log a left join tab_haoban_group_chat_plan b on a.plan_id = b.plan_id
where
SUM(CASE a.send_status WHEN 1 THEN 1 ELSE 0 END ) notSendCount
from tab_haoban_group_chat_plan_owner_log a left join tab_haoban_group_chat_plan b on a.plan_id = b.plan_id
where
a.wx_enterprise_id = #{wxEnterpriseId} and b.delete_flag = 0
<if
test=
"null != storeId"
>
and a.store_id = #{storeId}
...
...
@@ -196,17 +222,17 @@
group by b.plan_id
order by b.end_time desc , a.create_time desc
</select>
<select
id=
"listOwnerLogPageForWxa"
parameterType=
"com.gic.haoban.manage.api.dto.qdto.chat.GroupChatPlanSearchQDTO"
resultType=
"com.gic.haoban.manage.api.dto.chat.GroupChatPlanOwnerLogDTO"
>
select
select
a.owner_log_id ownerLogId ,
b.plan_id planId ,
b.plan_id planId ,
b.name planName ,
a.staff_id staffId ,
a.staff_id staffId ,
a.clerk_id clerkId ,
a.store_id storeId ,
a.send_status sendStatus ,
a.send_count sendCount ,
a.send_count sendCount ,
a.fail_count failCount ,
a.send_time sendTime ,
a.create_time createTime ,
...
...
@@ -214,8 +240,8 @@
b.end_time endTime ,
b.start_time startTime ,
a.done_flag doneFlag ,
a.msgid msgid
from tab_haoban_group_chat_plan_owner_log a left join tab_haoban_group_chat_plan b on a.plan_id = b.plan_id
a.msgid msgid
from tab_haoban_group_chat_plan_owner_log a left join tab_haoban_group_chat_plan b on a.plan_id = b.plan_id
where a.wx_enterprise_id = #{wxEnterpriseId} and a.plan_id = #{planId} and b.delete_flag = 0
<if
test=
"null != storeId"
>
and a.store_id = #{storeId}
...
...
@@ -228,30 +254,6 @@
</if>
order by a.create_time desc , a.owner_log_id
</select>
<select
id=
"getOwnerInfo"
resultType=
"com.gic.haoban.manage.api.dto.chat.GroupChatPlanOwnerLogDTO"
>
select
a.owner_log_id ownerLogId ,
b.plan_id planId ,
b.name planName ,
b.exec_type execType ,
a.staff_id staffId ,
a.clerk_id clerkId ,
a.store_id storeId ,
a.send_status sendStatus ,
a.send_count sendCount ,
a.fail_count failCount ,
a.send_time sendTime ,
a.create_time createTime ,
b.end_time expireDate ,
b.end_time endTime ,
b.start_time startTime ,
a.done_flag doneFlag ,
a.msgid msgid
from tab_haoban_group_chat_plan_owner_log a left join tab_haoban_group_chat_plan b on a.plan_id = b.plan_id
where a.wx_enterprise_id = #{wxEnterpriseId} and a.plan_id = #{planId} and b.delete_flag = 0 and a.staff_id = #{staffId}
and a.clerk_id = #{clerkId}
</select>
<select
id=
"getTotalCount"
resultType=
"java.lang.Integer"
>
...
...
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