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
fce368a6
Commit
fce368a6
authored
Mar 27, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
朋友圈-只处理主门店导购
parent
d9f411c0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
4 deletions
+23
-4
QwMomentPlanAttendServiceImpl.java
...ce/service/moment/impl/QwMomentPlanAttendServiceImpl.java
+10
-1
QwMomentPlanServiceImpl.java
.../service/service/moment/impl/QwMomentPlanServiceImpl.java
+9
-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 @
fce368a6
...
@@ -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 @
fce368a6
...
@@ -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
();
...
@@ -317,7 +321,10 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
...
@@ -317,7 +321,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 +335,7 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
...
@@ -328,6 +335,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/test/java/MomentTest.java
View file @
fce368a6
...
@@ -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