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
c94623fc
Commit
c94623fc
authored
May 16, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量修改活码
parent
a3757dda
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
HmClerkRelationServiceImpl.java
...e/service/service/hm/impl/HmClerkRelationServiceImpl.java
+26
-0
HmQrcodeController.java
...c/haoban/manage/web/controller/hm/HmQrcodeController.java
+3
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/HmClerkRelationServiceImpl.java
View file @
c94623fc
...
@@ -162,6 +162,8 @@ public class HmClerkRelationServiceImpl implements HmClerkRelationService {
...
@@ -162,6 +162,8 @@ public class HmClerkRelationServiceImpl implements HmClerkRelationService {
List
<
TabHaobanHmClerkRelation
>
staffRelationList
=
map
.
get
(
hmId
)
;
List
<
TabHaobanHmClerkRelation
>
staffRelationList
=
map
.
get
(
hmId
)
;
if
(
CollectionUtils
.
isEmpty
(
staffRelationList
))
{
if
(
CollectionUtils
.
isEmpty
(
staffRelationList
))
{
log
.
info
(
"活码无关联导购={}"
,
hmId
);
log
.
info
(
"活码无关联导购={}"
,
hmId
);
HmBatchModifyResultDTO
err
=
new
HmBatchModifyResultDTO
(
hmId
,
3
,
"无关联导购"
)
;
errList
.
add
(
err
)
;
continue
;
continue
;
}
}
Set
<
String
>
staffIdSet
=
staffRelationList
.
stream
().
map
(
o
->
o
.
getStaffId
()).
collect
(
Collectors
.
toSet
())
;
Set
<
String
>
staffIdSet
=
staffRelationList
.
stream
().
map
(
o
->
o
.
getStaffId
()).
collect
(
Collectors
.
toSet
())
;
...
@@ -223,6 +225,30 @@ public class HmClerkRelationServiceImpl implements HmClerkRelationService {
...
@@ -223,6 +225,30 @@ public class HmClerkRelationServiceImpl implements HmClerkRelationService {
if
(
StringUtils
.
isBlank
(
taskId
))
{
if
(
StringUtils
.
isBlank
(
taskId
))
{
return
ServiceResponse
.
failure
(
"9999"
,
"创建任务失败"
)
;
return
ServiceResponse
.
failure
(
"9999"
,
"创建任务失败"
)
;
}
}
if
(
CollectionUtils
.
isNotEmpty
(
errList
))
{
List
<
TabHaobanPreDealLog
>
dealLogList
=
new
ArrayList
<>()
;
for
(
HmBatchModifyResultDTO
err
:
errList
)
{
if
(
err
.
getErrcode
()==
1
||
err
.
getErrcode
()==
3
)
{
Long
hmid
=
err
.
getHmid
()
;
TabHaobanPreDealLog
dealLog
=
new
TabHaobanPreDealLog
();
dealLog
.
setEnterpriseId
(
enterpriseId
);
dealLog
.
setWxEnterpriseId
(
wxEnterpriseId
);
dealLog
.
setTaskId
(
taskId
);
dealLog
.
setDataId
(
hmid
+
""
)
;
dealLog
.
setpDataId
(
hmid
+
""
);
dealLog
.
setDataContent
(
JSON
.
toJSONString
(
modifyMap
.
get
(
hmid
)));
dealLog
.
setDataType
(
PreDealTypeEnum
.
modify_hm
.
getVal
());
dealLog
.
setStatusFlag
(
3
);
dealLog
.
setReason
(
err
.
getMessage
());
dealLogList
.
add
(
dealLog
)
;
}
}
if
(
CollectionUtils
.
isNotEmpty
(
dealLogList
))
{
this
.
preDealService
.
insert
(
dealLogList
);
}
}
log
.
info
(
"总任务数={},taskid={}"
,
modifyMap
.
size
(),
taskId
);
log
.
info
(
"总任务数={},taskid={}"
,
modifyMap
.
size
(),
taskId
);
List
<
TabHaobanPreDealLog
>
dealLogList
=
modifyMap
.
keySet
().
stream
().
map
(
hmid
->
{
List
<
TabHaobanPreDealLog
>
dealLogList
=
modifyMap
.
keySet
().
stream
().
map
(
hmid
->
{
TabHaobanPreDealLog
dealLog
=
new
TabHaobanPreDealLog
();
TabHaobanPreDealLog
dealLog
=
new
TabHaobanPreDealLog
();
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/hm/HmQrcodeController.java
View file @
c94623fc
...
@@ -280,6 +280,9 @@ public class HmQrcodeController {
...
@@ -280,6 +280,9 @@ public class HmQrcodeController {
qdto
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
qdto
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
ServiceResponse
<
List
<
HmBatchModifyResultDTO
>>
resp
=
this
.
hmQrcodeApiService
.
batchModify
(
qdto
)
;
ServiceResponse
<
List
<
HmBatchModifyResultDTO
>>
resp
=
this
.
hmQrcodeApiService
.
batchModify
(
qdto
)
;
if
(
resp
.
isSuccess
())
{
if
(
resp
.
isSuccess
())
{
if
(
null
==
resp
.
getResult
())
{
return
RestResponse
.
successResult
(
resp
.
getMessage
())
;
}
return
RestResponse
.
successResult
(
resp
.
getResult
())
;
return
RestResponse
.
successResult
(
resp
.
getResult
())
;
}
}
return
RestResponse
.
failure
(
"9999"
,
resp
.
getMessage
())
;
return
RestResponse
.
failure
(
"9999"
,
resp
.
getMessage
())
;
...
...
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