Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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-platform-enterprise
Commits
bb749aa4
Commit
bb749aa4
authored
Jul 15, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口调整
parent
7f6d484b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
6 deletions
+18
-6
WmStoreApiService.java
...in/java/com/gic/enterprise/service/WmStoreApiService.java
+2
-0
TabWmStoreMapper.java
.../java/com/gic/enterprise/dao/mapper/TabWmStoreMapper.java
+2
-1
WmStoreService.java
.../main/java/com/gic/enterprise/service/WmStoreService.java
+1
-1
WmStoreServiceImpl.java
...a/com/gic/enterprise/service/impl/WmStoreServiceImpl.java
+3
-3
WmStoreApiServiceImpl.java
.../enterprise/service/outer/impl/WmStoreApiServiceImpl.java
+7
-1
TabWmStoreMapper.xml
...se-service/src/main/resources/mapper/TabWmStoreMapper.xml
+3
-0
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/service/WmStoreApiService.java
View file @
bb749aa4
...
...
@@ -53,6 +53,8 @@ public interface WmStoreApiService {
ServiceResponse
<
List
<
WmStoreDTO
>>
listWmStore
(
Integer
enterpriseId
);
ServiceResponse
<
List
<
WmStoreDTO
>>
listWmStore
(
Integer
enterpriseId
,
String
search
);
ServiceResponse
<
WmStoreDTO
>
getWmStoreByWmMallStoreId
(
Integer
wmMallStoreId
);
/**
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/dao/mapper/TabWmStoreMapper.java
View file @
bb749aa4
...
...
@@ -67,7 +67,7 @@ public interface TabWmStoreMapper {
int
countByStoreName
(
@Param
(
"storeName"
)
String
storeName
,
@Param
(
"wmMallStoreId"
)
Integer
wmMallStoreId
,
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
List
<
TabWmStore
>
listWmStore
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"appId"
)
String
appId
,
@Param
(
"authStatus"
)
Integer
authStatus
);
List
<
TabWmStore
>
listWmStore
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"appId"
)
String
appId
,
@Param
(
"authStatus"
)
Integer
authStatus
,
@Param
(
"search"
)
String
search
);
TabWmStore
getByWmMainAccount
(
String
wmMainAccount
);
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/WmStoreService.java
View file @
bb749aa4
...
...
@@ -60,7 +60,7 @@ public interface WmStoreService {
*/
TabWmStore
getByWmMainAccount
(
String
wmMainAccount
);
List
<
TabWmStore
>
listWmStore
(
Integer
enterpriseId
);
List
<
TabWmStore
>
listWmStore
(
Integer
enterpriseId
,
String
search
);
/**
* 已授权店铺
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/WmStoreServiceImpl.java
View file @
bb749aa4
...
...
@@ -64,12 +64,12 @@ public class WmStoreServiceImpl implements WmStoreService{
}
@Override
public
List
<
TabWmStore
>
listWmStore
(
Integer
enterpriseId
)
{
return
tabWmStoreMapper
.
listWmStore
(
enterpriseId
,
null
,
null
);
public
List
<
TabWmStore
>
listWmStore
(
Integer
enterpriseId
,
String
search
)
{
return
tabWmStoreMapper
.
listWmStore
(
enterpriseId
,
null
,
null
,
search
);
}
@Override
public
List
<
TabWmStore
>
getHasAuth
(
Integer
enterpriseId
)
{
return
tabWmStoreMapper
.
listWmStore
(
enterpriseId
,
null
,
1
);
return
tabWmStoreMapper
.
listWmStore
(
enterpriseId
,
null
,
1
,
null
);
}
}
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/WmStoreApiServiceImpl.java
View file @
bb749aa4
...
...
@@ -77,7 +77,13 @@ public class WmStoreApiServiceImpl implements WmStoreApiService {
@Override
public
ServiceResponse
<
List
<
WmStoreDTO
>>
listWmStore
(
Integer
enterpriseId
)
{
List
<
TabWmStore
>
list
=
wmStoreService
.
listWmStore
(
enterpriseId
);
List
<
TabWmStore
>
list
=
wmStoreService
.
listWmStore
(
enterpriseId
,
null
);
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityListNew
(
WmStoreDTO
.
class
,
list
));
}
@Override
public
ServiceResponse
<
List
<
WmStoreDTO
>>
listWmStore
(
Integer
enterpriseId
,
String
search
)
{
List
<
TabWmStore
>
list
=
wmStoreService
.
listWmStore
(
enterpriseId
,
search
);
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityListNew
(
WmStoreDTO
.
class
,
list
));
}
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabWmStoreMapper.xml
View file @
bb749aa4
...
...
@@ -242,6 +242,9 @@
<if
test=
"authStatus != null"
>
and auth_status = #{authStatus}
</if>
<if
test=
"search != null and search !=''"
>
and wm_main_account like concat('%', #{search}, '%')
</if>
</select>
<select
id=
"getByWmMainAccount"
resultMap=
"BaseResultMap"
>
...
...
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