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
7e8202a3
Commit
7e8202a3
authored
May 16, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量修改活码
parent
c94623fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
HmClerkRelationServiceImpl.java
...e/service/service/hm/impl/HmClerkRelationServiceImpl.java
+11
-11
QwHmOperation.java
.../com/gic/haoban/manage/service/task/hm/QwHmOperation.java
+1
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/HmClerkRelationServiceImpl.java
View file @
7e8202a3
...
@@ -166,38 +166,38 @@ public class HmClerkRelationServiceImpl implements HmClerkRelationService {
...
@@ -166,38 +166,38 @@ public class HmClerkRelationServiceImpl implements HmClerkRelationService {
errList
.
add
(
err
)
;
errList
.
add
(
err
)
;
continue
;
continue
;
}
}
Set
<
String
>
staffIdSet
=
staffRelationList
.
stream
().
map
(
o
->
o
.
getStaff
Id
()).
collect
(
Collectors
.
toSet
())
;
Set
<
String
>
clerkIdSet
=
staffRelationList
.
stream
().
map
(
o
->
o
.
getClerk
Id
()).
collect
(
Collectors
.
toSet
())
;
if
(
CollectionUtils
.
isNotEmpty
(
staffRelationList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
staffRelationList
))
{
Set
<
String
>
staff
IdSetBak
=
new
HashSet
<>();
Set
<
String
>
clerk
IdSetBak
=
new
HashSet
<>();
staffIdSetBak
.
addAll
(
staff
IdSet
)
;
clerkIdSetBak
.
addAll
(
clerk
IdSet
)
;
List
<
String
>
modifyIdList
=
qdto
.
getClerkIdList
();
List
<
String
>
modifyIdList
=
qdto
.
getClerkIdList
();
// add
// add
if
(
qdto
.
getOptType
()==
1
)
{
if
(
qdto
.
getOptType
()==
1
)
{
staff
IdSetBak
.
addAll
(
modifyIdList
)
;
clerk
IdSetBak
.
addAll
(
modifyIdList
)
;
if
(
staff
IdSetBak
.
size
()>
maxCount
)
{
if
(
clerk
IdSetBak
.
size
()>
maxCount
)
{
HmBatchModifyResultDTO
err
=
new
HmBatchModifyResultDTO
(
hmId
,
1
,
"超出多人活码成员数上限,最多支持添加100个成员"
)
;
HmBatchModifyResultDTO
err
=
new
HmBatchModifyResultDTO
(
hmId
,
1
,
"超出多人活码成员数上限,最多支持添加100个成员"
)
;
errList
.
add
(
err
)
;
errList
.
add
(
err
)
;
}
}
}
}
// 减
// 减
if
(
qdto
.
getOptType
()==
2
)
{
if
(
qdto
.
getOptType
()==
2
)
{
staff
IdSetBak
.
removeAll
(
modifyIdList
);
clerk
IdSetBak
.
removeAll
(
modifyIdList
);
if
(
staff
IdSetBak
.
size
()<=
0
)
{
if
(
clerk
IdSetBak
.
size
()<=
0
)
{
HmBatchModifyResultDTO
err
=
new
HmBatchModifyResultDTO
(
hmId
,
2
,
"成员数为0"
)
;
HmBatchModifyResultDTO
err
=
new
HmBatchModifyResultDTO
(
hmId
,
2
,
"成员数为0"
)
;
errList
.
add
(
err
)
;
errList
.
add
(
err
)
;
}
}
}
}
// 1 继续执行更新 2不废弃活码
// 1 继续执行更新 2不废弃活码
if
(
qdto
.
getUpdateType
()==
2
&&
staff
IdSetBak
.
size
()==
0
)
{
if
(
qdto
.
getUpdateType
()==
2
&&
clerk
IdSetBak
.
size
()==
0
)
{
log
.
info
(
"无人活码={}"
,
hmId
);
log
.
info
(
"无人活码={}"
,
hmId
);
continue
;
continue
;
}
}
if
(
staff
IdSet
.
size
()>
maxCount
)
{
if
(
clerk
IdSet
.
size
()>
maxCount
)
{
log
.
info
(
"超人数活码={}"
,
hmId
);
log
.
info
(
"超人数活码={}"
,
hmId
);
continue
;
continue
;
}
}
if
(
staffIdSetBak
.
size
()
!=
staff
IdSet
.
size
())
{
if
(
clerkIdSetBak
.
size
()
!=
clerk
IdSet
.
size
())
{
modifyMap
.
put
(
hmId
,
staff
IdSetBak
)
;
modifyMap
.
put
(
hmId
,
clerk
IdSetBak
)
;
}
}
}
}
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/hm/QwHmOperation.java
View file @
7e8202a3
...
@@ -36,6 +36,7 @@ public class QwHmOperation implements BaseSyncOperation {
...
@@ -36,6 +36,7 @@ public class QwHmOperation implements BaseSyncOperation {
public
void
dealSingleByMq
(
DealParamMqDTO
dealParamMqDTO
,
TabHaobanPreDealLog
dataPre
)
{
public
void
dealSingleByMq
(
DealParamMqDTO
dealParamMqDTO
,
TabHaobanPreDealLog
dataPre
)
{
String
taskId
=
dealParamMqDTO
.
getTaskId
();
String
taskId
=
dealParamMqDTO
.
getTaskId
();
Long
hmId
=
Long
.
valueOf
(
dataPre
.
getDataId
());
Long
hmId
=
Long
.
valueOf
(
dataPre
.
getDataId
());
logger
.
info
(
"开始处理活码={},{}"
,
taskId
,
hmId
);
String
clerkIds
=
dataPre
.
getDataContent
();
String
clerkIds
=
dataPre
.
getDataContent
();
String
wxEnterpriseId
=
dataPre
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
dataPre
.
getWxEnterpriseId
();
String
enterpriseId
=
dataPre
.
getEnterpriseId
();
String
enterpriseId
=
dataPre
.
getEnterpriseId
();
...
...
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