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
95696240
Commit
95696240
authored
Feb 14, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微群发
parent
520527db
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
+13
-5
GroupChatPlanOwnerLogMapper.java
.../service/dao/mapper/chat/GroupChatPlanOwnerLogMapper.java
+1
-1
GroupChatPlanServiceImpl.java
...e/service/service/chat/impl/GroupChatPlanServiceImpl.java
+7
-1
GroupChatPlanOwnerLogMapper.xml
...ain/resources/mapper/chat/GroupChatPlanOwnerLogMapper.xml
+4
-3
GroupChatPlanController.java
...manage/web/controller/haoban/GroupChatPlanController.java
+1
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/chat/GroupChatPlanOwnerLogMapper.java
View file @
95696240
...
@@ -68,7 +68,7 @@ public interface GroupChatPlanOwnerLogMapper {
...
@@ -68,7 +68,7 @@ public interface GroupChatPlanOwnerLogMapper {
void
updateMsgid
(
@Param
(
"id"
)
Long
id
,
@Param
(
"msgid"
)
String
msgid
)
;
void
updateMsgid
(
@Param
(
"id"
)
Long
id
,
@Param
(
"msgid"
)
String
msgid
)
;
void
staffSendResult
(
@Param
(
"staffId"
)
String
staffId
,
@Param
(
"planId"
)
Long
planId
,
@Param
(
"sendTime"
)
Date
sendTime
,
@Param
(
"failRemark"
)
String
failRemark
);
void
staffSendResult
(
@Param
(
"staffId"
)
String
staffId
,
@Param
(
"planId"
)
Long
planId
,
@Param
(
"sendTime"
)
Date
sendTime
,
@Param
(
"failRemark"
)
String
failRemark
,
@Param
(
"statusFlag"
)
int
statusFlag
);
int
getTotalTask
(
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"clerkId"
)
String
clerkId
,
@Param
(
"time"
)
Date
time
)
;
int
getTotalTask
(
@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 @
95696240
...
@@ -744,7 +744,13 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
...
@@ -744,7 +744,13 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
Long
planId
=
qdto
.
getPlanId
()
;
Long
planId
=
qdto
.
getPlanId
()
;
String
failRemark
=
qdto
.
getFailRemark
()
;
String
failRemark
=
qdto
.
getFailRemark
()
;
Date
sendTime
=
qdto
.
getSendTime
()
;
Date
sendTime
=
qdto
.
getSendTime
()
;
this
.
groupChatPlanOwnerLogMapper
.
staffSendResult
(
staffId
,
planId
,
sendTime
,
failRemark
)
;
if
(
StringUtils
.
isNotBlank
(
failRemark
))
{
this
.
groupChatPlanOwnerLogMapper
.
staffSendResult
(
staffId
,
planId
,
sendTime
,
failRemark
,
3
)
;
logger
.
info
(
"好办小程序发送失败={}"
,
failRemark
);
return
;
}
else
{
this
.
groupChatPlanOwnerLogMapper
.
staffSendResult
(
staffId
,
planId
,
sendTime
,
failRemark
,
2
)
;
}
GroupChatPlanOwnerLogDTO
dto
=
this
.
groupChatPlanOwnerLogService
.
getOwnerInfo
(
planId
,
staffId
,
null
,
wxEnterpriseId
)
;
GroupChatPlanOwnerLogDTO
dto
=
this
.
groupChatPlanOwnerLogService
.
getOwnerInfo
(
planId
,
staffId
,
null
,
wxEnterpriseId
)
;
this
.
updateMsgid
(
dto
);
this
.
updateMsgid
(
dto
);
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatPlanOwnerLogMapper.xml
View file @
95696240
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
update tab_haoban_group_chat_plan_owner_log set send_status = 3 where owner_log_id = #{id}
update tab_haoban_group_chat_plan_owner_log set send_status = 3 where owner_log_id = #{id}
</update>
</update>
<update
id=
"staffSendResult"
>
<update
id=
"staffSendResult"
>
update tab_haoban_group_chat_plan_owner_log set send_status =
2 , send_time = #{sendTime}
where plan_id = #{planId} and staff_id = #{staffId}
update tab_haoban_group_chat_plan_owner_log set send_status =
#{statusFlag} , send_time = #{sendTime} , remark = #{failRemark}
where plan_id = #{planId} and staff_id = #{staffId}
</update>
</update>
<!-- ============ 查询=============-->
<!-- ============ 查询=============-->
...
@@ -324,14 +324,14 @@
...
@@ -324,14 +324,14 @@
</select>
</select>
<select
id=
"getTaskNum"
resultType=
"java.lang.Integer"
>
<select
id=
"getTaskNum"
resultType=
"java.lang.Integer"
>
select count(1) from (
select count(1) from (
select plan_id from tab_haoban_group_chat_plan_owner_log a LEFT JOIN tab_haoban_group_chat_plan b ON a.plan_id = b.plan_id
select
a.
plan_id 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.enterprise_id = #{enterpriseId}
where a.enterprise_id = #{enterpriseId}
and a.store_id = #{storeId}
and a.store_id = #{storeId}
<if
test=
"null != clerkId"
>
<if
test=
"null != clerkId"
>
AND a.clerk_id = #{clerkId}
AND a.clerk_id = #{clerkId}
</if>
</if>
and b.end_time
<![CDATA[ > ]]>
now()
and b.end_time
<![CDATA[ > ]]>
now()
AND a.send_status = 1 and a.delete_flag = 0 group by plan_id ) t
AND a.send_status = 1 and a.delete_flag = 0 group by
a.
plan_id ) t
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/haoban/GroupChatPlanController.java
View file @
95696240
...
@@ -122,6 +122,7 @@ public class GroupChatPlanController {
...
@@ -122,6 +122,7 @@ public class GroupChatPlanController {
*/
*/
@RequestMapping
(
"staff-send-result"
)
@RequestMapping
(
"staff-send-result"
)
public
RestResponse
<
Void
>
staffSendResult
(
@RequestBody
StaffSendResultQDTO
qdto
)
{
public
RestResponse
<
Void
>
staffSendResult
(
@RequestBody
StaffSendResultQDTO
qdto
)
{
logger
.
info
(
"企微返回={}"
,
JSONObject
.
toJSONString
(
qdto
));
this
.
groupChatPlanApiService
.
staffSendResult
(
qdto
)
;
this
.
groupChatPlanApiService
.
staffSendResult
(
qdto
)
;
return
RestResponse
.
successResult
();
return
RestResponse
.
successResult
();
}
}
...
...
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