Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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
base_platform_enterprise
gic-store
Commits
2727ce27
Commit
2727ce27
authored
Jun 30, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导购列表查询支持联合商户查询
parent
25620429
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
8 deletions
+14
-8
ClerkApiService.java
.../src/main/java/com/gic/store/service/ClerkApiService.java
+1
-1
ClerkApiServiceImpl.java
...com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
+2
-1
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+7
-5
TabClerkMapper.xml
...tore-service/src/main/resources/mapper/TabClerkMapper.xml
+4
-1
No files found.
gic-store-api/src/main/java/com/gic/store/service/ClerkApiService.java
View file @
2727ce27
...
...
@@ -136,7 +136,7 @@ public interface ClerkApiService {
* @Title: getClerkByCodeAndStoreInfoId
* @Description:
* @author zhiwj
* @param enterpriseId
* @param enterpriseId
弃用
* @param clerkCode
* @param storeInfoId
* @return com.gic.api.base.commons.ServiceResponse<com.gic.store.dto.ClerkDTO>
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
View file @
2727ce27
...
...
@@ -315,7 +315,7 @@ public class ClerkApiServiceImpl implements ClerkApiService {
public
ServiceResponse
<
ClerkDTO
>
getClerkByCode
(
Integer
enterpriseId
,
String
clerkCode
,
Integer
storeId
)
{
ServiceResponse
<
StoreDTO
>
storeResponse
=
storeApiService
.
getStoreById
(
enterpriseId
,
storeId
);
if
(
storeResponse
.
getResult
()
!=
null
)
{
StoreDTO
store
=
storeResponse
.
getResult
();
//enterpriseId 弃用
return
getClerkByCodeAndStoreInfoId
(
enterpriseId
,
clerkCode
,
storeId
);
}
else
{
logger
.
warn
(
"门店不存在 enterpriseId:{}, storeId:{}"
,
enterpriseId
,
storeId
);
...
...
@@ -325,6 +325,7 @@ public class ClerkApiServiceImpl implements ClerkApiService {
@Override
public
ServiceResponse
<
ClerkDTO
>
getClerkByCodeAndStoreInfoId
(
Integer
enterpriseId
,
String
clerkCode
,
Integer
storeInfoId
)
{
//enterpriseId 弃用
TabClerk
clerk
=
this
.
clerkService
.
getClerkByCode
(
enterpriseId
,
clerkCode
,
storeInfoId
);
if
(
clerk
!=
null
)
{
return
EnterpriseServiceResponse
.
success
(
EntityUtil
.
changeEntityByJSON
(
ClerkDTO
.
class
,
clerk
));
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
2727ce27
...
...
@@ -394,8 +394,7 @@ public class StoreApiServiceImpl implements StoreApiService {
@Override
public
void
refreshCache
(
Integer
enterpriseId
,
Integer
storeId
)
{
String
key
=
Constants
.
STORE_KEY
+
enterpriseId
+
":"
+
storeId
;
RedisUtil
.
delCache
(
key
);
RedisUtil
.
delCache
(
getStoreRedisKey
(
enterpriseId
,
storeId
));
}
@Override
...
...
@@ -1313,7 +1312,7 @@ public class StoreApiServiceImpl implements StoreApiService {
@Override
public
ServiceResponse
<
StoreDTO
>
getStoreById
(
Integer
enterpriseId
,
Integer
storeId
)
{
String
key
=
Constants
.
STORE_KEY
+
enterpriseId
+
":"
+
storeId
;
String
key
=
getStoreRedisKey
(
enterpriseId
,
storeId
)
;
StoreDTO
storeDTO
=
(
StoreDTO
)
RedisUtil
.
getCache
(
key
);
if
(
storeDTO
==
null
)
{
...
...
@@ -1730,8 +1729,7 @@ public class StoreApiServiceImpl implements StoreApiService {
private
void
removeCache
(
Integer
enterpriseId
,
List
<
Integer
>
storeIds
)
{
for
(
Integer
storeId
:
storeIds
)
{
String
key
=
Constants
.
STORE_KEY
+
enterpriseId
+
":"
+
storeId
;
RedisUtil
.
delCache
(
key
);
RedisUtil
.
delCache
(
getStoreRedisKey
(
enterpriseId
,
storeId
));
}
}
...
...
@@ -2054,4 +2052,8 @@ public class StoreApiServiceImpl implements StoreApiService {
return
null
;
}
private
static
String
getStoreRedisKey
(
Integer
enterpriseId
,
Integer
storeId
)
{
return
Constants
.
STORE_KEY
+
enterpriseId
+
":"
+
storeId
;
}
}
gic-store-service/src/main/resources/mapper/TabClerkMapper.xml
View file @
2727ce27
...
...
@@ -312,7 +312,10 @@
select
distinct store_info_id
from tab_clerk
where enterprise_id = #{enterpriseId}
where
store_info_id in (
select store_info_id from tab_store where enterprise_id = #{enterpriseId} and status = 1
)
<if
test=
"search != null and search != '' "
>
and (clerk_code like concat('%', #{search} ,'%') or clerk_name like concat('%', #{search} ,'%') or phone_number like concat('%', #{search} ,'%') )
</if>
...
...
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