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
aaa8e3bc
Commit
aaa8e3bc
authored
Feb 26, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品牌添加共享标志
parent
ca934aff
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
0 deletions
+47
-0
StoreBrandApiService.java
...main/java/com/gic/store/service/StoreBrandApiService.java
+7
-0
TabStoreBrandMapper.java
...in/java/com/gic/store/dao/mapper/TabStoreBrandMapper.java
+7
-0
StoreBrandService.java
...rc/main/java/com/gic/store/service/StoreBrandService.java
+7
-0
StoreBrandServiceImpl.java
...ava/com/gic/store/service/impl/StoreBrandServiceImpl.java
+8
-0
StoreBrandApiServiceImpl.java
...ic/store/service/outer/impl/StoreBrandApiServiceImpl.java
+5
-0
TabStoreBrandMapper.xml
...service/src/main/resources/mapper/TabStoreBrandMapper.xml
+13
-0
No files found.
gic-store-api/src/main/java/com/gic/store/service/StoreBrandApiService.java
View file @
aaa8e3bc
...
...
@@ -112,6 +112,13 @@ public interface StoreBrandApiService {
ServiceResponse
<
List
<
StoreBrandDTO
>>
listStoreBrandByIds
(
List
<
Integer
>
brandIdList
);
/**
* 查询所有的信息,包括商户关联信息
* @param brandIdList
* @return
*/
ServiceResponse
<
List
<
StoreBrandDTO
>>
listAllStoreBrandInfoByIds
(
List
<
Integer
>
brandIdList
);
/**
* 查详情
* @Title: getById
* @Description:
...
...
gic-store-service/src/main/java/com/gic/store/dao/mapper/TabStoreBrandMapper.java
View file @
aaa8e3bc
...
...
@@ -124,6 +124,13 @@ public interface TabStoreBrandMapper {
List
<
TabStoreBrand
>
listStoreBrandByIds
(
@Param
(
"ids"
)
List
<
Integer
>
idList
);
/**
* 查询品牌
* @param brandIdList
* @return
*/
List
<
TabStoreBrand
>
listAllStoreBrandInfoByIds
(
@Param
(
"ids"
)
List
<
Integer
>
brandIdList
);
/**
* getByStoreBrandName
* @Title: getByStoreBrandName
* @Description:
...
...
gic-store-service/src/main/java/com/gic/store/service/StoreBrandService.java
View file @
aaa8e3bc
...
...
@@ -219,6 +219,13 @@ public interface StoreBrandService {
List
<
TabStoreBrand
>
listStoreBrandByIds
(
List
<
Integer
>
brandIdList
);
/**
* 查询品牌信息
* @param brandIdList
* @return
*/
List
<
TabStoreBrand
>
listAllStoreBrandInfoByIds
(
List
<
Integer
>
brandIdList
);
/**
* getById
* @Title: getById
* @Description:
...
...
gic-store-service/src/main/java/com/gic/store/service/impl/StoreBrandServiceImpl.java
View file @
aaa8e3bc
...
...
@@ -237,6 +237,14 @@ public class StoreBrandServiceImpl implements StoreBrandService {
}
@Override
public
List
<
TabStoreBrand
>
listAllStoreBrandInfoByIds
(
List
<
Integer
>
brandIdList
)
{
if
(
CollectionUtils
.
isNotEmpty
(
brandIdList
))
{
return
tabStoreBrandMapper
.
listAllStoreBrandInfoByIds
(
brandIdList
);
}
return
null
;
}
@Override
public
TabStoreBrand
getById
(
Integer
storeBrandId
)
{
return
tabStoreBrandMapper
.
selectByPrimaryKey
(
storeBrandId
);
}
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreBrandApiServiceImpl.java
View file @
aaa8e3bc
...
...
@@ -173,6 +173,11 @@ public class StoreBrandApiServiceImpl implements StoreBrandApiService {
}
@Override
public
ServiceResponse
<
List
<
StoreBrandDTO
>>
listAllStoreBrandInfoByIds
(
List
<
Integer
>
brandIdList
)
{
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityListNew
(
StoreBrandDTO
.
class
,
storeBrandService
.
listAllStoreBrandInfoByIds
(
brandIdList
)));
}
@Override
public
ServiceResponse
<
StoreBrandDTO
>
getById
(
Integer
storeBrandId
)
{
TabStoreBrand
storeBrand
=
this
.
storeBrandService
.
getById
(
storeBrandId
);
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityByJSON
(
StoreBrandDTO
.
class
,
storeBrand
));
...
...
gic-store-service/src/main/resources/mapper/TabStoreBrandMapper.xml
View file @
aaa8e3bc
...
...
@@ -236,6 +236,19 @@
</if>
order by t1.store_brand_id
</select>
<select
id=
"listAllStoreBrandInfoByIds"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Ref_Column_List"
/>
from tab_store_brand t1, tab_store_brand_ref t2
where t2.delete_flag = 0 and t1.delete_flag =0 and t1.store_brand_id = t2.store_brand_id
<if
test=
"null != ids and ids.size() > 0"
>
and t1.store_brand_id in
<foreach
close=
")"
collection=
"ids"
index=
"index"
item=
"item"
open=
"("
separator=
","
>
#{item}
</foreach>
</if>
</select>
<select
id=
"getByStoreBrandName"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Ref_Column_List"
/>
...
...
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