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
453b23a0
Commit
453b23a0
authored
Jan 06, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店状态变更
parent
7d6a4353
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
20 deletions
+6
-20
StoreDTO.java
gic-store-api/src/main/java/com/gic/store/dto/StoreDTO.java
+0
-14
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+5
-5
StoreQO.java
...web/src/main/java/com/gic/store/web/qo/store/StoreQO.java
+1
-1
No files found.
gic-store-api/src/main/java/com/gic/store/dto/StoreDTO.java
View file @
453b23a0
...
...
@@ -30,11 +30,6 @@ public class StoreDTO extends StoreInfoDTO implements Serializable {
private
Integer
ownType
;
/**
*
*/
private
Integer
status
;
/**
*
*/
private
Integer
storeGroupId
;
...
...
@@ -94,14 +89,6 @@ public class StoreDTO extends StoreInfoDTO implements Serializable {
public
void
setOwnType
(
Integer
ownType
)
{
this
.
ownType
=
ownType
;
}
@Override
public
Integer
getStatus
()
{
return
status
;
}
@Override
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Integer
getEnterpriseId
()
{
return
enterpriseId
;
...
...
@@ -261,7 +248,6 @@ public class StoreDTO extends StoreInfoDTO implements Serializable {
"storeId="
+
storeId
+
", enterpriseId="
+
enterpriseId
+
", ownType="
+
ownType
+
", status="
+
status
+
", storeGroupId="
+
storeGroupId
+
", storeGroupIdList="
+
storeGroupIdList
+
", storeGroupName='"
+
storeGroupName
+
'\''
+
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
453b23a0
...
...
@@ -558,13 +558,13 @@ public class StoreApiServiceImpl implements StoreApiService {
private
void
getStatus
(
StoreDTO
storeDTO
)
{
// 所有必填字段都填之后才能走策略 不然就是未启用 必填字段一共有门店名称 门店代码 门店域 店招品牌,
// 门店名称 门店代码 门店域没有的话不能创建 能走到这里只有店招品牌有可能没有
if
(
StringUtils
.
isNotBlank
(
storeDTO
.
getBrandIds
()))
{
if
(
storeDTO
.
getStatus
()
==
null
)
{
if
(
storeDTO
.
getStatus
()
==
null
)
{
if
(
StringUtils
.
isNotBlank
(
storeDTO
.
getBrandIds
())
)
{
String
hitStrategy
=
storeStrategyService
.
isHitStrategy
(
storeDTO
,
StoreGroupConstant
.
STORE_STRATEGY_TYPE
);
storeDTO
.
setStatus
(
StringUtils
.
isNotBlank
(
hitStrategy
)
?
Integer
.
valueOf
(
hitStrategy
)
:
StoreEnableOrDisAbleEnum
.
DISABLE
.
getCode
());
storeDTO
.
setStatus
(
StringUtils
.
isNotBlank
(
hitStrategy
)
?
Integer
.
valueOf
(
hitStrategy
)
:
StoreStatusEnum
.
INONLINE
.
getCode
());
}
else
{
storeDTO
.
setStatus
(
StoreStatusEnum
.
INONLINE
.
getCode
());
}
}
else
{
storeDTO
.
setStatus
(
StoreEnableOrDisAbleEnum
.
DISABLE
.
getCode
());
}
}
...
...
gic-store-web/src/main/java/com/gic/store/web/qo/store/StoreQO.java
View file @
453b23a0
...
...
@@ -78,7 +78,7 @@ public class StoreQO implements Serializable {
private
Integer
overflowStatus
;
/**
* 门店
启用状态;1启用 2不启用
* 门店
状态;1上线 2未上线 3停业整顿 4闭店
*/
private
Integer
status
;
...
...
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