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
3bbf353a
Commit
3bbf353a
authored
Sep 04, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
启用状态加上必填字段判断
parent
a87a85e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+9
-3
No files found.
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
3bbf353a
...
...
@@ -521,9 +521,15 @@ public class StoreApiServiceImpl implements StoreApiService {
* @param storeDTO
*/
private
void
getStatus
(
StoreDTO
storeDTO
)
{
if
(
storeDTO
.
getStatus
()
==
null
)
{
String
hitStrategy
=
storeStrategyService
.
isHitStrategy
(
storeDTO
,
StoreGroupConstant
.
STORE_STRATEGY_TYPE
);
storeDTO
.
setStatus
(
StringUtils
.
isNotBlank
(
hitStrategy
)
?
Integer
.
valueOf
(
hitStrategy
)
:
StoreEnableOrDisAbleEnum
.
DISABLE
.
getCode
());
// 所有必填字段都填之后才能走策略 不然就是未启用 必填字段一共有门店名称 门店代码 门店域 店招品牌,
// 门店名称 门店代码 门店域没有的话不能创建 能走到这里只有店招品牌有可能没有
if
(
StringUtils
.
isNotBlank
(
storeDTO
.
getBrandIds
()))
{
if
(
storeDTO
.
getStatus
()
==
null
)
{
String
hitStrategy
=
storeStrategyService
.
isHitStrategy
(
storeDTO
,
StoreGroupConstant
.
STORE_STRATEGY_TYPE
);
storeDTO
.
setStatus
(
StringUtils
.
isNotBlank
(
hitStrategy
)
?
Integer
.
valueOf
(
hitStrategy
)
:
StoreEnableOrDisAbleEnum
.
DISABLE
.
getCode
());
}
}
else
{
storeDTO
.
setStatus
(
StoreEnableOrDisAbleEnum
.
DISABLE
.
getCode
());
}
}
...
...
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