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
aea9d053
Commit
aea9d053
authored
Feb 10, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店ETL修改
parent
3c8c5cfa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletions
+22
-1
ProcessBatchStoreDTO.java
...src/main/java/com/gic/store/dto/ProcessBatchStoreDTO.java
+12
-0
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+10
-1
No files found.
gic-store-api/src/main/java/com/gic/store/dto/ProcessBatchStoreDTO.java
View file @
aea9d053
...
...
@@ -36,6 +36,10 @@ public class ProcessBatchStoreDTO implements Serializable {
private
String
conactsPhone
;
/**
* 店招品牌id
*/
private
Integer
brandId
;
/**
* 店招品牌
*/
private
String
brandName
;
...
...
@@ -209,4 +213,12 @@ public class ProcessBatchStoreDTO implements Serializable {
public
void
setStoreGroupName
(
String
storeGroupName
)
{
this
.
storeGroupName
=
storeGroupName
;
}
public
Integer
getBrandId
()
{
return
brandId
;
}
public
void
setBrandId
(
Integer
brandId
)
{
this
.
brandId
=
brandId
;
}
}
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
aea9d053
...
...
@@ -647,13 +647,22 @@ public class StoreApiServiceImpl implements StoreApiService {
return
responseErrorElement
(
ImportStoreBatchResultEnum
.
A4
);
}
storeDTO
.
setStoreCode
(
processBatchStoreDTO
.
getStoreCode
());
if
(
StringUtils
.
isNotBlank
(
processBatchStoreDTO
.
getBrandName
()))
{
// 店招品牌
if
(
processBatchStoreDTO
.
getBrandId
()
!=
null
)
{
TabStoreBrand
storeBrand
=
storeBrandService
.
getById
(
processBatchStoreDTO
.
getBrandId
());
if
(
storeBrand
==
null
)
{
return
responseErrorElement
(
ImportStoreBatchResultEnum
.
B1
);
}
storeDTO
.
setBrandIds
(
processBatchStoreDTO
.
getBrandId
().
toString
());
}
else
if
(
StringUtils
.
isNotBlank
(
processBatchStoreDTO
.
getBrandName
()))
{
TabStoreBrand
storeBrand
=
storeBrandService
.
getByStoreBrandName
(
processBatchStoreDTO
.
getEnterpriseId
(),
processBatchStoreDTO
.
getBrandName
());
if
(
storeBrand
==
null
)
{
return
responseErrorElement
(
ImportStoreBatchResultEnum
.
B1
);
}
storeDTO
.
setBrandIds
(
storeBrand
.
getStoreBrandId
().
toString
());
}
// 门店类型
if
(
StringUtils
.
isNotBlank
(
processBatchStoreDTO
.
getStoreType
()))
{
ServiceResponse
<
List
<
StoreDictDTO
>>
serviceResponse
=
storeDictApiService
.
listStoreType
(
processBatchStoreDTO
.
getEnterpriseId
());
if
(
serviceResponse
.
isSuccess
())
{
...
...
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