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
d7011b7e
Commit
d7011b7e
authored
Jul 22, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
8d0270c7
e22204a5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
12 deletions
+17
-12
HmQrcodeApiService.java
.../gic/haoban/manage/api/service/hm/HmQrcodeApiService.java
+1
-1
TabHaobanHmQrcodeMapper.java
...manage/service/dao/mapper/hm/TabHaobanHmQrcodeMapper.java
+1
-1
HmQrcodeService.java
...gic/haoban/manage/service/service/hm/HmQrcodeService.java
+1
-1
HmQrcodeServiceImpl.java
...n/manage/service/service/hm/impl/HmQrcodeServiceImpl.java
+2
-2
HmLinkApiServiceImpl.java
...age/service/service/out/impl/hm/HmLinkApiServiceImpl.java
+1
-0
HmQrcodeApiServiceImpl.java
...e/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
+3
-3
TabHaobanHmQrcodeMapper.xml
.../src/main/resources/mapper/hm/TabHaobanHmQrcodeMapper.xml
+8
-4
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/hm/HmQrcodeApiService.java
View file @
d7011b7e
...
@@ -152,7 +152,7 @@ public interface HmQrcodeApiService {
...
@@ -152,7 +152,7 @@ public interface HmQrcodeApiService {
* @return
* @return
* @throws
* @throws
*/
*/
List
<
String
>
getHmStoreForWxa
(
String
enterpriseId
)
;
List
<
String
>
getHmStoreForWxa
(
String
wxEnterpriseId
,
String
enterpriseId
)
;
/**
/**
* 根据导购信息获取hmid
* 根据导购信息获取hmid
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/hm/TabHaobanHmQrcodeMapper.java
View file @
d7011b7e
...
@@ -203,7 +203,7 @@ public interface TabHaobanHmQrcodeMapper {
...
@@ -203,7 +203,7 @@ public interface TabHaobanHmQrcodeMapper {
List
<
HmQrcodeClerkBO
>
listCanAddClerk
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"storeIdList"
)
List
<
String
>
storeIdList
);
List
<
HmQrcodeClerkBO
>
listCanAddClerk
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"storeIdList"
)
List
<
String
>
storeIdList
);
List
<
String
>
getHmStoreForWxa
(
@Param
(
"enterpriseId"
)
String
enterpriseId
);
List
<
String
>
getHmStoreForWxa
(
@Param
(
"
wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"
enterpriseId"
)
String
enterpriseId
);
List
<
String
>
listHmIdForIndex
(
HmQrcodeListQDTO
qdto
);
List
<
String
>
listHmIdForIndex
(
HmQrcodeListQDTO
qdto
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/HmQrcodeService.java
View file @
d7011b7e
...
@@ -183,7 +183,7 @@ public interface HmQrcodeService {
...
@@ -183,7 +183,7 @@ public interface HmQrcodeService {
List
<
HmQrcodeClerkBO
>
listCanAddClerk
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
clerkId
)
;
List
<
HmQrcodeClerkBO
>
listCanAddClerk
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
clerkId
)
;
List
<
String
>
getHmStoreForWxa
(
String
enterpriseId
);
List
<
String
>
getHmStoreForWxa
(
String
wxEnterpriseId
,
String
enterpriseId
);
List
<
String
>
listHmIdForIndex
(
HmQrcodeListQDTO
qdto
);
List
<
String
>
listHmIdForIndex
(
HmQrcodeListQDTO
qdto
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/HmQrcodeServiceImpl.java
View file @
d7011b7e
...
@@ -171,8 +171,8 @@ public class HmQrcodeServiceImpl implements HmQrcodeService {
...
@@ -171,8 +171,8 @@ public class HmQrcodeServiceImpl implements HmQrcodeService {
}
}
@Override
@Override
public
List
<
String
>
getHmStoreForWxa
(
String
enterpriseId
)
{
public
List
<
String
>
getHmStoreForWxa
(
String
wxEnterpriseId
,
String
enterpriseId
)
{
return
tabHaobanHmQrcodeMapper
.
getHmStoreForWxa
(
enterpriseId
)
;
return
tabHaobanHmQrcodeMapper
.
getHmStoreForWxa
(
wxEnterpriseId
,
enterpriseId
)
;
}
}
@Override
@Override
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmLinkApiServiceImpl.java
View file @
d7011b7e
...
@@ -511,6 +511,7 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
...
@@ -511,6 +511,7 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
if
(
null
==
hm
&&
dy
==
1
)
{
if
(
null
==
hm
&&
dy
==
1
)
{
List
<
HmQrcodeBO
>
list
=
this
.
hmQrcodeService
.
listByStoreId
(
wxEnterpriseId
,
inStoreId
,
0
);
List
<
HmQrcodeBO
>
list
=
this
.
hmQrcodeService
.
listByStoreId
(
wxEnterpriseId
,
inStoreId
,
0
);
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
log
.
info
(
"查询门店下有活码的导购数={}"
,
list
.
size
());
list
=
list
.
stream
().
filter
(
dto
->
!
clerkIdList
.
contains
(
dto
.
getClerkId
())).
collect
(
Collectors
.
toList
());
list
=
list
.
stream
().
filter
(
dto
->
!
clerkIdList
.
contains
(
dto
.
getClerkId
())).
collect
(
Collectors
.
toList
());
}
}
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
View file @
d7011b7e
...
@@ -731,13 +731,13 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
...
@@ -731,13 +731,13 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
}
}
@Override
@Override
public
List
<
String
>
getHmStoreForWxa
(
String
enterpriseId
)
{
public
List
<
String
>
getHmStoreForWxa
(
String
wxEnterpriseId
,
String
enterpriseId
)
{
String
key
=
"HM:STORE:WXA"
+
enterpriseId
;
String
key
=
"HM:STORE:WXA"
+
enterpriseId
+
wxEnterpriseId
;
Object
cache
=
RedisUtil
.
getCache
(
key
);
Object
cache
=
RedisUtil
.
getCache
(
key
);
if
(
cache
!=
null
)
{
if
(
cache
!=
null
)
{
return
(
List
<
String
>)
cache
;
return
(
List
<
String
>)
cache
;
}
}
List
<
String
>
list
=
hmQrcodeService
.
getHmStoreForWxa
(
enterpriseId
);
List
<
String
>
list
=
hmQrcodeService
.
getHmStoreForWxa
(
wxEnterpriseId
,
enterpriseId
);
RedisUtil
.
setCache
(
key
,
list
,
10L
,
TimeUnit
.
MINUTES
);
RedisUtil
.
setCache
(
key
,
list
,
10L
,
TimeUnit
.
MINUTES
);
return
list
;
return
list
;
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/hm/TabHaobanHmQrcodeMapper.xml
View file @
d7011b7e
...
@@ -315,19 +315,23 @@
...
@@ -315,19 +315,23 @@
select store_id storeId,
select store_id storeId,
MIN(over_flag) overFlag
MIN(over_flag) overFlag
from tab_haoban_hm_qrcode
from tab_haoban_hm_qrcode
where
where
1
<if
test=
"null != wxEnterpriseId"
>
<if
test=
"null != wxEnterpriseId"
>
wx_enterprise_id = #{wxEnterpriseId}
wx_enterprise_id = #{wxEnterpriseId}
</if>
</if>
enterprise_id = #{enterpriseId} and status_flag = 1
and
enterprise_id = #{enterpriseId} and status_flag = 1
and store_id is not null
and store_id is not null
GROUP BY store_id
GROUP BY store_id
</select>
</select>
<select
id=
"getHmStoreForWxa"
resultType=
"String"
>
<select
id=
"getHmStoreForWxa"
resultType=
"String"
>
select distinct(store_id)
select distinct(store_id)
from tab_haoban_hm_qrcode
from tab_haoban_hm_qrcode
where enterprise_id = #{enterpriseId} and status_flag = 1 and over_flag = 0 and store_id is not null
where 1
<if
test=
"null != wxEnterpriseId"
>
wx_enterprise_id = #{wxEnterpriseId}
</if>
and enterprise_id = #{enterpriseId} and status_flag = 1 and over_flag = 0 and store_id is not null
</select>
</select>
<select
id=
"listHmIdForIndex"
resultType=
"String"
parameterType=
"com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO"
>
<select
id=
"listHmIdForIndex"
resultType=
"String"
parameterType=
"com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO"
>
...
...
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