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
50750502
Commit
50750502
authored
Jul 19, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活码门店查询
parent
d2592832
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
5 deletions
+41
-5
HmQrcodeApiService.java
.../gic/haoban/manage/api/service/hm/HmQrcodeApiService.java
+11
-0
TabHaobanHmQrcodeMapper.java
...manage/service/dao/mapper/hm/TabHaobanHmQrcodeMapper.java
+2
-0
HmQrcodeService.java
...gic/haoban/manage/service/service/hm/HmQrcodeService.java
+2
-0
HmQrcodeServiceImpl.java
...n/manage/service/service/hm/impl/HmQrcodeServiceImpl.java
+5
-0
HmQrcodeApiServiceImpl.java
...e/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
+12
-0
TabHaobanHmQrcodeMapper.xml
.../src/main/resources/mapper/hm/TabHaobanHmQrcodeMapper.xml
+9
-5
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/hm/HmQrcodeApiService.java
View file @
50750502
...
@@ -132,6 +132,17 @@ public interface HmQrcodeApiService {
...
@@ -132,6 +132,17 @@ public interface HmQrcodeApiService {
* @date 2022-07-08 15:07:15
* @date 2022-07-08 15:07:15
*/
*/
List
<
HmQrcodeStoreDTO
>
getHmStoreByEnterpriseId
(
String
enterpriseId
);
List
<
HmQrcodeStoreDTO
>
getHmStoreByEnterpriseId
(
String
enterpriseId
);
/**
*
* @Title: getHmStoreForWxa
* @Description: 返回小程序有活码的门店列表
* @author xugh
* @param enterpriseId
* @return
* @throws
*/
List
<
String
>
getHmStoreForWxa
(
String
enterpriseId
)
;
/**
/**
* 根据导购信息获取hmid
* 根据导购信息获取hmid
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/hm/TabHaobanHmQrcodeMapper.java
View file @
50750502
...
@@ -202,5 +202,7 @@ public interface TabHaobanHmQrcodeMapper {
...
@@ -202,5 +202,7 @@ public interface TabHaobanHmQrcodeMapper {
int
getCanAddCount
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"storeIdList"
)
List
<
String
>
storeIdList
)
;
int
getCanAddCount
(
@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
<
HmQrcodeClerkBO
>
listCanAddClerk
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"storeIdList"
)
List
<
String
>
storeIdList
);
List
<
String
>
getHmStoreForWxa
(
@Param
(
"enterpriseId"
)
String
enterpriseId
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/HmQrcodeService.java
View file @
50750502
...
@@ -180,4 +180,6 @@ public interface HmQrcodeService {
...
@@ -180,4 +180,6 @@ 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
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/HmQrcodeServiceImpl.java
View file @
50750502
...
@@ -169,5 +169,10 @@ public class HmQrcodeServiceImpl implements HmQrcodeService {
...
@@ -169,5 +169,10 @@ public class HmQrcodeServiceImpl implements HmQrcodeService {
authStoreIdList
);
authStoreIdList
);
return
list
;
return
list
;
}
}
@Override
public
List
<
String
>
getHmStoreForWxa
(
String
enterpriseId
)
{
return
tabHaobanHmQrcodeMapper
.
getHmStoreForWxa
(
enterpriseId
)
;
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
View file @
50750502
...
@@ -650,6 +650,18 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
...
@@ -650,6 +650,18 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
RedisUtil
.
setCache
(
key
,
hmQrcodeStoreDTOS
,
10L
,
TimeUnit
.
MINUTES
);
RedisUtil
.
setCache
(
key
,
hmQrcodeStoreDTOS
,
10L
,
TimeUnit
.
MINUTES
);
return
hmQrcodeStoreDTOS
;
return
hmQrcodeStoreDTOS
;
}
}
@Override
public
List
<
String
>
getHmStoreForWxa
(
String
enterpriseId
)
{
String
key
=
"HM:STORE:WXA"
+
enterpriseId
;
Object
cache
=
RedisUtil
.
getCache
(
key
);
if
(
cache
!=
null
)
{
return
(
List
<
String
>)
cache
;
}
List
<
String
>
list
=
hmQrcodeService
.
getHmStoreForWxa
(
enterpriseId
);
RedisUtil
.
setCache
(
key
,
list
,
10L
,
TimeUnit
.
MINUTES
);
return
list
;
}
@Override
@Override
public
Page
<
HmClerkRelationDTO
>
getHmClerkByHmId
(
BasePageInfo
basePageInfo
,
Long
hmId
)
{
public
Page
<
HmClerkRelationDTO
>
getHmClerkByHmId
(
BasePageInfo
basePageInfo
,
Long
hmId
)
{
...
...
haoban-manage3-service/src/main/resources/mapper/hm/TabHaobanHmQrcodeMapper.xml
View file @
50750502
...
@@ -313,15 +313,19 @@
...
@@ -313,15 +313,19 @@
<select
id=
"getHmStoreByEnterpriseId"
resultMap=
"TabHaobanHmQrcodeMap"
>
<select
id=
"getHmStoreByEnterpriseId"
resultMap=
"TabHaobanHmQrcodeMap"
>
select store_id storeId,
select store_id storeId,
store_name storeName,
store_code storeCode,
enterprise_id enterpriseId,
MIN(over_flag) overFlag
MIN(over_flag) overFlag
from tab_haoban_hm_qrcode
from tab_haoban_hm_qrcode
where
status_flag in (1, 3)
where
enterprise_id = #{enterpriseId} and status_flag in = 1
and
enterprise_id = #{enterpriseId}
and
store_id is not null
GROUP BY store_id
GROUP BY store_id
</select>
</select>
<select
id=
"getHmStoreForWxa"
resultType=
"String"
>
select distinct(store_id)
from tab_haoban_hm_qrcode
where enterprise_id = #{enterpriseId} and status_flag = 1 and over_flag = 0 and store_id is not null
</select>
<select
id=
"getGroupIdNumByEnterpriseId"
resultType=
"com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeGroupNumBO"
>
<select
id=
"getGroupIdNumByEnterpriseId"
resultType=
"com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeGroupNumBO"
>
select hm_group_id as hmGroupId,
select hm_group_id as hmGroupId,
...
...
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