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
6d330003
Commit
6d330003
authored
Mar 27, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/xgh/2502朋友圈' into 'master'
Feature/xgh/2502朋友圈 See merge request
!2692
parents
32a30821
054d28f3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
6 deletions
+26
-6
QwMomentPlanAttendServiceImpl.java
...ce/service/moment/impl/QwMomentPlanAttendServiceImpl.java
+10
-1
QwMomentPlanServiceImpl.java
.../service/service/moment/impl/QwMomentPlanServiceImpl.java
+11
-2
GroupChatPlanLogMapper.xml
...src/main/resources/mapper/chat/GroupChatPlanLogMapper.xml
+1
-1
MomentTest.java
haoban-manage3-service/src/test/java/MomentTest.java
+4
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/moment/impl/QwMomentPlanAttendServiceImpl.java
View file @
6d330003
...
@@ -22,10 +22,12 @@ import com.gic.haoban.manage.api.service.StaffClerkRelationApiService;
...
@@ -22,10 +22,12 @@ import com.gic.haoban.manage.api.service.StaffClerkRelationApiService;
import
com.gic.haoban.manage.service.dao.mapper.StaffMapper
;
import
com.gic.haoban.manage.service.dao.mapper.StaffMapper
;
import
com.gic.haoban.manage.service.dao.mapper.moment.QwMomentPlanAttendMapper
;
import
com.gic.haoban.manage.service.dao.mapper.moment.QwMomentPlanAttendMapper
;
import
com.gic.haoban.manage.service.dao.mapper.moment.QwMomentPlanMapper
;
import
com.gic.haoban.manage.service.dao.mapper.moment.QwMomentPlanMapper
;
import
com.gic.haoban.manage.service.entity.TabHaobanClerkMainStoreRelated
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaff
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaff
;
import
com.gic.haoban.manage.service.entity.moment.TabQwMomentPlan
;
import
com.gic.haoban.manage.service.entity.moment.TabQwMomentPlan
;
import
com.gic.haoban.manage.service.entity.moment.TabQwMomentPlanAttend
;
import
com.gic.haoban.manage.service.entity.moment.TabQwMomentPlanAttend
;
import
com.gic.haoban.manage.service.pojo.ClerkStaffBO
;
import
com.gic.haoban.manage.service.pojo.ClerkStaffBO
;
import
com.gic.haoban.manage.service.service.ClerkMainStoreRelatedService
;
import
com.gic.haoban.manage.service.service.WxEnterpriseService
;
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.QwMomentPlanAttendService
;
import
com.gic.haoban.manage.service.service.moment.QwMomentPlanService
;
import
com.gic.haoban.manage.service.service.moment.QwMomentPlanService
;
...
@@ -69,6 +71,8 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService
...
@@ -69,6 +71,8 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService
private
PendingTaskService
pendingTaskService
;
private
PendingTaskService
pendingTaskService
;
@Autowired
@Autowired
private
HaobanCommonMQApiService
haobanCommonMQApiService
;
private
HaobanCommonMQApiService
haobanCommonMQApiService
;
@Autowired
private
ClerkMainStoreRelatedService
clerkMainStoreRelatedService
;
@Override
@Override
public
ServiceResponse
<
Page
<
QwMomentPlanAttendDTO
>>
attendList
(
PlanClerkListQDTO
qdto
)
{
public
ServiceResponse
<
Page
<
QwMomentPlanAttendDTO
>>
attendList
(
PlanClerkListQDTO
qdto
)
{
...
@@ -167,10 +171,15 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService
...
@@ -167,10 +171,15 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService
String
cid
=
dto
.
getClerkId
()
;
String
cid
=
dto
.
getClerkId
()
;
String
sid
=
dto
.
getStaffId
()
;
String
sid
=
dto
.
getStaffId
()
;
if
(
map
.
get
(
cid
)
!=
null
&&
map
.
get
(
cid
).
equals
(
sid
))
{
if
(
map
.
get
(
cid
)
!=
null
&&
map
.
get
(
cid
).
equals
(
sid
))
{
successList
.
add
(
cid
)
;
}
else
{
}
else
{
this
.
qwMomentPlanAttendMapper
.
updateSuccessStaff
(
plan
.
getPlanId
(),
cid
,
map
.
get
(
cid
));
this
.
qwMomentPlanAttendMapper
.
updateSuccessStaff
(
plan
.
getPlanId
(),
cid
,
map
.
get
(
cid
));
}
}
TabHaobanClerkMainStoreRelated
tab
=
this
.
clerkMainStoreRelatedService
.
getMainStoreByStaffId
(
sid
,
plan
.
getWxEnterpriseId
())
;
if
(
null
==
tab
||
!
tab
.
getStoreId
().
equals
(
dto
.
getStoreId
()))
{
this
.
qwMomentPlanAttendMapper
.
updateFail
(
plan
.
getPlanId
(),
clerkIdList
,
"任务下发时不是主门店"
);
continue
;
}
successList
.
add
(
cid
)
;
}
}
if
(
CollectionUtils
.
isNotEmpty
(
successList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
successList
))
{
this
.
qwMomentPlanAttendMapper
.
updateSuccess
(
plan
.
getPlanId
(),
successList
);
this
.
qwMomentPlanAttendMapper
.
updateSuccess
(
plan
.
getPlanId
(),
successList
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/moment/impl/QwMomentPlanServiceImpl.java
View file @
6d330003
...
@@ -32,12 +32,14 @@ import com.gic.haoban.manage.api.util.notify.NoticeMessageUtil;
...
@@ -32,12 +32,14 @@ import com.gic.haoban.manage.api.util.notify.NoticeMessageUtil;
import
com.gic.haoban.manage.service.dao.mapper.StaffMapper
;
import
com.gic.haoban.manage.service.dao.mapper.StaffMapper
;
import
com.gic.haoban.manage.service.dao.mapper.moment.QwMomentPlanAttendMapper
;
import
com.gic.haoban.manage.service.dao.mapper.moment.QwMomentPlanAttendMapper
;
import
com.gic.haoban.manage.service.dao.mapper.moment.QwMomentPlanMapper
;
import
com.gic.haoban.manage.service.dao.mapper.moment.QwMomentPlanMapper
;
import
com.gic.haoban.manage.service.entity.TabHaobanClerkMainStoreRelated
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaff
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaff
;
import
com.gic.haoban.manage.service.entity.moment.TabQwMomentPlan
;
import
com.gic.haoban.manage.service.entity.moment.TabQwMomentPlan
;
import
com.gic.haoban.manage.service.entity.moment.TabQwMomentPlanAttend
;
import
com.gic.haoban.manage.service.entity.moment.TabQwMomentPlanAttend
;
import
com.gic.haoban.manage.service.pojo.ClerkStaffBO
;
import
com.gic.haoban.manage.service.pojo.ClerkStaffBO
;
import
com.gic.haoban.manage.service.pojo.bo.PendingTaskBO
;
import
com.gic.haoban.manage.service.pojo.bo.PendingTaskBO
;
import
com.gic.haoban.manage.service.pojo.bo.moment.CountBO
;
import
com.gic.haoban.manage.service.pojo.bo.moment.CountBO
;
import
com.gic.haoban.manage.service.service.ClerkMainStoreRelatedService
;
import
com.gic.haoban.manage.service.service.QywxSendService
;
import
com.gic.haoban.manage.service.service.QywxSendService
;
import
com.gic.haoban.manage.service.service.WxEnterpriseService
;
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.QwMomentPlanAttendService
;
...
@@ -102,6 +104,8 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
...
@@ -102,6 +104,8 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
private
HaobanCommonMQApiService
haobanCommonMQApiService
;
private
HaobanCommonMQApiService
haobanCommonMQApiService
;
@Autowired
@Autowired
private
PendingTaskService
pendingTaskService
;
private
PendingTaskService
pendingTaskService
;
@Autowired
private
ClerkMainStoreRelatedService
clerkMainStoreRelatedService
;
private
static
GicMQClient
mqClient
=
GICMQClientUtil
.
getClientInstance
();
private
static
GicMQClient
mqClient
=
GICMQClientUtil
.
getClientInstance
();
...
@@ -174,7 +178,8 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
...
@@ -174,7 +178,8 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
}).
collect
(
Collectors
.
toList
())
;
}).
collect
(
Collectors
.
toList
())
;
int
statusFlag
=
0
;
int
statusFlag
=
0
;
if
(
publishNow
)
{
if
(
publishNow
)
{
statusFlag
=
1
;
// 校验是不是主门店
statusFlag
=
0
;
}
}
this
.
qwMomentPlanAttendService
.
saveClerk
(
wxEnterpriseId
,
enterpriseId
,
planId
,
clerkStaffList
,
statusFlag
);
this
.
qwMomentPlanAttendService
.
saveClerk
(
wxEnterpriseId
,
enterpriseId
,
planId
,
clerkStaffList
,
statusFlag
);
}
else
{
}
else
{
...
@@ -317,7 +322,10 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
...
@@ -317,7 +322,10 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
storeIdList
=
this
.
getStoreIdList
(
clerkDTO
)
;
storeIdList
=
this
.
getStoreIdList
(
clerkDTO
)
;
}
}
List
<
StaffClerkRelationDTO
>
list
=
this
.
staffClerkRelationApiService
.
listByStoreIds
(
plan
.
getWxEnterpriseId
()
,
storeIdList
)
;
List
<
StaffClerkRelationDTO
>
list
=
this
.
staffClerkRelationApiService
.
listByStoreIds
(
plan
.
getWxEnterpriseId
()
,
storeIdList
)
;
List
<
ClerkStaffBO
>
clerkIdList
=
list
.
stream
().
map
(
o
->{
List
<
ClerkStaffBO
>
clerkIdList
=
list
.
stream
().
filter
(
o
->{
TabHaobanClerkMainStoreRelated
tab
=
this
.
clerkMainStoreRelatedService
.
getMainStoreByStaffId
(
o
.
getStaffId
(),
plan
.
getWxEnterpriseId
())
;
return
tab
!=
null
&&
tab
.
getStoreId
().
equals
(
o
.
getStoreId
())
;
}).
map
(
o
->{
ClerkStaffBO
bo
=
new
ClerkStaffBO
()
;
ClerkStaffBO
bo
=
new
ClerkStaffBO
()
;
bo
.
setClerkId
(
o
.
getClerkId
());
bo
.
setClerkId
(
o
.
getClerkId
());
bo
.
setStaffId
(
o
.
getStaffId
());
bo
.
setStaffId
(
o
.
getStaffId
());
...
@@ -328,6 +336,7 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
...
@@ -328,6 +336,7 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
logger
.
info
(
"管理员列表={}"
,
userIdList
);
logger
.
info
(
"管理员列表={}"
,
userIdList
);
clerkIdList
.
stream
().
filter
(
o
->!
userIdList
.
contains
(
o
)).
collect
(
Collectors
.
toList
())
;
clerkIdList
.
stream
().
filter
(
o
->!
userIdList
.
contains
(
o
)).
collect
(
Collectors
.
toList
())
;
logger
.
info
(
"导购数量={}"
,
clerkIdList
.
size
());
logger
.
info
(
"导购数量={}"
,
clerkIdList
.
size
());
this
.
qwMomentPlanAttendService
.
saveClerk
(
plan
.
getWxEnterpriseId
(),
plan
.
getEnterpriseId
(),
planId
,
clerkIdList
,
1
);
this
.
qwMomentPlanAttendService
.
saveClerk
(
plan
.
getWxEnterpriseId
(),
plan
.
getEnterpriseId
(),
planId
,
clerkIdList
,
1
);
this
.
qwMomentPlanMapper
.
updateClerkNum
(
planId
,
clerkIdList
.
size
(),-
1
,-
1
);
this
.
qwMomentPlanMapper
.
updateClerkNum
(
planId
,
clerkIdList
.
size
(),-
1
,-
1
);
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatPlanLogMapper.xml
View file @
6d330003
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
and c.staff_name like #{searchParams}
and c.staff_name like #{searchParams}
</if>
</if>
<if
test=
"null !=chatName and '' !=chatName"
>
<if
test=
"null !=chatName and '' !=chatName"
>
and (
d.name like #{chatName} or d.wx_chat_id like #{wxChatId}
and (
d.name like #{chatName} or d.wx_chat_id like #{wxChatId} )
</if>
</if>
<if
test=
"null !=sendStatus"
>
<if
test=
"null !=sendStatus"
>
<if
test=
"sendStatus==30"
>
<if
test=
"sendStatus==30"
>
...
...
haoban-manage3-service/src/test/java/MomentTest.java
View file @
6d330003
...
@@ -73,9 +73,11 @@ public class MomentTest {
...
@@ -73,9 +73,11 @@ public class MomentTest {
dto.setSelectClerkIdList(clerkIds);
dto.setSelectClerkIdList(clerkIds);
this.qwMomentApiService.save(dto) ;*/
this.qwMomentApiService.save(dto) ;*/
Long
planId
=
772924621895778364L
;
/*
Long planId = 772924621895778364L ;
TabQwMomentPlan plan = this.qwMomentPlanMapper.getById(planId) ;
TabQwMomentPlan plan = this.qwMomentPlanMapper.getById(planId) ;
this
.
qwMomentPlanService
.
sendToQiwei
(
plan
);
this.qwMomentPlanService.sendToQiwei(plan);*/
this
.
qwMomentPlanService
.
qwDataTimer
(
"2"
);
}
}
...
...
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