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
cec9170b
Commit
cec9170b
authored
Dec 04, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
社群群发
parent
03943e1a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
GroupChatPlanOwnerLogService.java
...ge/service/service/chat/GroupChatPlanOwnerLogService.java
+1
-1
GroupChatPlanOwnerLogServiceImpl.java
...e/service/chat/impl/GroupChatPlanOwnerLogServiceImpl.java
+6
-1
GroupChatPlanServiceImpl.java
...e/service/service/chat/impl/GroupChatPlanServiceImpl.java
+4
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/GroupChatPlanOwnerLogService.java
View file @
cec9170b
...
...
@@ -15,7 +15,7 @@ public interface GroupChatPlanOwnerLogService {
public
void
batchAdd
(
String
staffIdList
,
TabGroupChatPlan
entity
);
public
void
update
(
TabGroupChatPlanOwnerLog
entity
);
public
boolean
update
(
TabGroupChatPlanOwnerLog
entity
);
public
void
deleteByStaffIds
(
Long
planId
,
String
delStaffIds
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatPlanOwnerLogServiceImpl.java
View file @
cec9170b
...
...
@@ -135,28 +135,33 @@ public class GroupChatPlanOwnerLogServiceImpl implements GroupChatPlanOwnerLogSe
}
@Override
public
void
update
(
TabGroupChatPlanOwnerLog
entity
)
{
public
boolean
update
(
TabGroupChatPlanOwnerLog
entity
)
{
String
staffId
=
entity
.
getStaffId
();
TabHaobanClerkMainStoreRelated
mainStore
=
this
.
clerkMainStoreRelatedService
.
getMainStoreByStaffId
(
staffId
,
entity
.
getWxEnterpriseId
());
boolean
flag
=
true
;
if
(
null
==
mainStore
)
{
entity
.
setRemark
(
"区经/未配置主门店"
);
flag
=
false
;
}
else
{
String
storeId
=
mainStore
.
getStoreId
();
StaffClerkRelationDTO
clerk
=
this
.
staffClerkRelationService
.
getOneBindByStoreId
(
staffId
,
storeId
);
if
(
null
!=
clerk
)
{
if
(!
clerk
.
getEnterpriseId
().
equals
(
entity
.
getEnterpriseId
()))
{
entity
.
setRemark
(
"主门店不在任务商户下"
);
flag
=
false
;
}
else
{
entity
.
setClerkId
(
clerk
.
getClerkId
());
entity
.
setStoreId
(
mainStore
.
getStoreId
());
}
}
else
{
entity
.
setRemark
(
"无关联导购"
);
flag
=
false
;
logger
.
info
(
"导购关联数据不存在,staffid={},storeid={}"
,
staffId
,
mainStore
.
getStoreId
());
}
}
this
.
groupChatPlanOwnerLogMapper
.
update
(
entity
);
return
flag
;
}
@Override
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatPlanServiceImpl.java
View file @
cec9170b
...
...
@@ -393,7 +393,6 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
int
pageNum
=
0
;
if
(
plan
.
getExecType
()
==
1
)
{
logger
.
info
(
"好办小程序执行={}"
,
planId
);
// 发送消息
while
(
true
)
{
ownerList
=
this
.
groupChatPlanOwnerLogMapper
.
listForDoPlan
(
planId
,
pageNum
*
pageSize
,
pageSize
);
if
(
CollectionUtils
.
isEmpty
(
ownerList
))
{
...
...
@@ -401,7 +400,11 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
}
pageNum
++;
for
(
TabGroupChatPlanOwnerLog
ownerLog
:
ownerList
)
{
boolean
flag
=
this
.
groupChatPlanOwnerLogService
.
update
(
ownerLog
);
if
(
flag
)
{
// 发送消息
}
}
}
return
;
...
...
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