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
0d73e11f
Commit
0d73e11f
authored
Jul 21, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log
parent
0d621fc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
HmLinkApiServiceImpl.java
...age/service/service/out/impl/hm/HmLinkApiServiceImpl.java
+13
-3
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmLinkApiServiceImpl.java
View file @
0d73e11f
...
...
@@ -187,9 +187,13 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
// 直接返回门店的导购活码,如果没有返回错误
if
(
null
==
hm
&&
StringUtils
.
isNotBlank
(
inStoreId
))
{
String
customRuleJson
=
link
.
getCustomRuleJson
();
log
.
info
(
"
自定义规则={}"
,
customRuleJson
);
log
.
info
(
"
选门店后,whitchStore={},自定义规则={}"
,
whitchStore
,
customRuleJson
);
JSONObject
storeRuleObj
=
JSONObject
.
parseObject
(
customRuleJson
);
int
openFlag
=
storeRuleObj
.
getIntValue
(
"open"
);
// whitchStore 1推荐门店 2附件门店 3省市区门店
if
(
null
==
whitchStore
)
{
whitchStore
=
1
;
}
if
(
openFlag
==
1
)
{
int
dz
=
0
,
dy
=
0
;
// 1推荐门店 2附件门店 3省市区门店
...
...
@@ -199,8 +203,7 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
HmLinkStoreSettingDTO
cityStore
=
storeRuleObj
.
getObject
(
"city_store"
,
HmLinkStoreSettingDTO
.
class
);
dz
=
cityStore
.
getDz
();
dy
=
cityStore
.
getDy
();
}
if
(
whitchStore
==
1
||
whitchStore
==
2
)
{
}
else
if
(
whitchStore
==
1
||
whitchStore
==
2
)
{
HmLinkStoreSettingDTO
store
=
storeRuleObj
.
getObject
(
"store"
,
HmLinkStoreSettingDTO
.
class
);
if
(
whitchStore
==
2
||
(
storeType
==
1
&&
whitchStore
==
1
))
{
// 附近门店 或者 推荐门店
...
...
@@ -471,6 +474,9 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
ClerkDTO
dzClerk
=
this
.
clerkService
.
getClerkLeaderByStoreId
(
inStoreId
);
if
(
null
!=
dzClerk
)
{
hm
=
this
.
getHmFromClerk
(
dzClerk
.
getClerkId
(),
wxEnterpriseId
);
if
(
null
!=
hm
)
{
log
.
info
(
"选择门店后,获取到店长活码,clerkId={},inStoreId={}"
,
hm
.
getClerkId
(),
inStoreId
);
}
}
else
{
log
.
info
(
"店长不存在,storeId={}"
,
inStoreId
);
}
...
...
@@ -478,7 +484,11 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
if
(
null
==
hm
&&
dy
==
1
)
{
List
<
HmQrcodeBO
>
list
=
this
.
hmQrcodeService
.
listByStoreId
(
wxEnterpriseId
,
inStoreId
,
0
);
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
log
.
info
(
"选择门店下{},导购数={}"
,
inStoreId
,
list
.
size
());
hm
=
list
.
get
(
new
Random
().
nextInt
(
list
.
size
()));
if
(
null
!=
hm
)
{
log
.
info
(
"选择门店后,获取到店员活码,clerkId={},inStoreId={}"
,
hm
.
getClerkId
(),
inStoreId
);
}
}
}
return
hm
;
...
...
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