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
e7b38ca7
Commit
e7b38ca7
authored
Aug 04, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:关联详情bug修改
parent
ec9647c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
41 deletions
+23
-41
StaffClerkRelationApiServiceImpl.java
...ce/service/out/impl/StaffClerkRelationApiServiceImpl.java
+13
-38
HmQrcodeApiServiceImpl.java
...e/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
+8
-1
TabHaobanHmQrcodeMapper.xml
.../src/main/resources/mapper/hm/TabHaobanHmQrcodeMapper.xml
+2
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffClerkRelationApiServiceImpl.java
View file @
e7b38ca7
...
...
@@ -142,48 +142,23 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
return
null
;
}
List
<
StaffClerkInfoDTO
>
infoDTOS
=
EntityUtil
.
changeEntityListByJSON
(
StaffClerkInfoDTO
.
class
,
list
);
Map
<
String
,
String
>
nameMap
=
new
HashMap
<>();
infoDTOS
.
forEach
(
infoDTO
->
{
//企业
if
(!
nameMap
.
containsKey
(
infoDTO
.
getEnterpriseId
()))
{
EnterpriseDTO
enterpriseDTO
=
enterpriseService
.
getEnterpriseById
(
infoDTO
.
getEnterpriseId
());
if
(
null
!=
enterpriseDTO
)
{
nameMap
.
put
(
infoDTO
.
getEnterpriseId
(),
enterpriseDTO
.
getEnterpriseName
()
+
"_"
+
enterpriseDTO
.
getBrandName
());
}
else
{
nameMap
.
put
(
infoDTO
.
getEnterpriseId
(),
"未知商户"
);
}
}
//门店店员名称
if
(!
nameMap
.
containsKey
(
infoDTO
.
getClerkId
()))
{
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
infoDTO
.
getClerkId
());
if
(
null
!=
clerkDTO
)
{
nameMap
.
put
(
infoDTO
.
getClerkId
(),
clerkDTO
.
getClerkName
());
nameMap
.
put
(
infoDTO
.
getStoreId
(),
clerkDTO
.
getStoreName
());
infoDTO
.
setClerkPhoneNumber
(
clerkDTO
.
getPhoneNumber
());
}
else
{
nameMap
.
put
(
infoDTO
.
getClerkId
(),
"未知店员"
);
}
EnterpriseDTO
enterpriseDTO
=
enterpriseService
.
getEnterpriseById
(
infoDTO
.
getEnterpriseId
());
if
(
enterpriseDTO
!=
null
)
{
infoDTO
.
setBrandName
(
enterpriseDTO
.
getBrandName
());
infoDTO
.
setEnterpriseName
(
enterpriseDTO
.
getEnterpriseName
());
}
//门店店员名称
if
(!
nameMap
.
containsKey
(
infoDTO
.
getStoreId
()))
{
StoreDTO
storeDTO
=
storeService
.
getStore
(
infoDTO
.
getStoreId
());
if
(
null
!=
storeDTO
)
{
nameMap
.
put
(
infoDTO
.
getStoreId
(),
storeDTO
.
getStoreName
());
}
else
{
nameMap
.
put
(
infoDTO
.
getStoreId
(),
"未知门店"
);
}
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
infoDTO
.
getClerkId
());
if
(
null
!=
clerkDTO
)
{
infoDTO
.
setClerkPhoneNumber
(
clerkDTO
.
getPhoneNumber
());
infoDTO
.
setClerkName
(
clerkDTO
.
getClerkName
());
infoDTO
.
setClerkCode
(
clerkDTO
.
getClerkCode
());
}
infoDTO
.
setClerkName
(
nameMap
.
get
(
infoDTO
.
getClerkId
()));
infoDTO
.
setStoreName
(
nameMap
.
get
(
infoDTO
.
getStoreId
()));
if
((
nameMap
.
get
(
infoDTO
.
getEnterpriseId
()))
!=
null
)
{
String
enterpriseAndBrandName
=
nameMap
.
get
(
infoDTO
.
getEnterpriseId
());
String
[]
split
=
enterpriseAndBrandName
.
split
(
"_"
);
infoDTO
.
setEnterpriseName
(
split
[
0
]);
if
(
split
[
1
]
!=
null
)
{
infoDTO
.
setBrandName
(
split
[
1
]);
}
StoreDTO
storeDTO
=
storeService
.
getStore
(
infoDTO
.
getStoreId
());
if
(
null
!=
storeDTO
)
{
infoDTO
.
setStoreName
(
storeDTO
.
getStoreName
());
}
});
return
infoDTOS
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
View file @
e7b38ca7
...
...
@@ -311,7 +311,14 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
//操作日志
updateSystemLog
(
hmQrcodeQDTO
,
hmId
);
String
welcomeId
=
hmQrcodeQDTO
.
getWelcomeId
();
if
(
StringUtils
.
isBlank
(
welcomeId
)){
hmQrcodeQDTO
.
setWelcomeId
(
""
);
}
String
memberLabelId
=
hmQrcodeQDTO
.
getMemberLabelId
();
if
(
StringUtils
.
isBlank
(
memberLabelId
)){
hmQrcodeQDTO
.
setMemberLabelId
(
""
);
}
int
updateResult
=
hmQrcodeService
.
update
(
hmQrcodeQDTO
);
if
(
updateResult
==
1
)
{
// 更新欢迎语引用次数
...
...
haoban-manage3-service/src/main/resources/mapper/hm/TabHaobanHmQrcodeMapper.xml
View file @
e7b38ca7
...
...
@@ -177,13 +177,13 @@
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"memberLabelId != null
and memberLabelId != ''
"
>
<if
test=
"memberLabelId != null"
>
member_label_id = #{memberLabelId},
</if>
<if
test=
"passFlag != null"
>
pass_flag = #{passFlag},
</if>
<if
test=
"welcomeId != null
and welcomeId != ''
"
>
<if
test=
"welcomeId != null"
>
welcome_id = #{welcomeId},
</if>
<if
test=
"statusFlag != null"
>
...
...
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