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
d2add87a
Commit
d2add87a
authored
Jul 04, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分组策略
parent
f9e87d98
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
250 additions
and
0 deletions
+250
-0
StoreGroupConstant.java
.../main/java/com/gic/store/constant/StoreGroupConstant.java
+12
-0
StoreStrategyDTO.java
...api/src/main/java/com/gic/store/dto/StoreStrategyDTO.java
+168
-0
StoreStrategyApiService.java
...n/java/com/gic/store/service/StoreStrategyApiService.java
+70
-0
No files found.
gic-store-api/src/main/java/com/gic/store/constant/StoreGroupConstant.java
View file @
d2add87a
...
...
@@ -51,6 +51,18 @@ public class StoreGroupConstant {
public
final
static
int
TEST_ENTERPRISE_ID
=
10000
;
/**
* 分组策略类型是2
*/
public
final
static
int
STORE_GROUP_STRATEGY_TYPE
=
2
;
/**
* 门店策略
*/
public
final
static
int
STORE_STRATEGY_TYPE
=
1
;
}
gic-store-api/src/main/java/com/gic/store/dto/StoreStrategyDTO.java
0 → 100644
View file @
d2add87a
package
com
.
gic
.
store
.
dto
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @author guojx
* @date 2019/7/4 9:41 AM
*/
public
class
StoreStrategyDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
4683081402308681202L
;
/**
*
*/
private
Integer
strategyId
;
/**
* 策略名称
*/
private
String
strategyName
;
/**
*
*/
private
Integer
enterpriseId
;
/**
* 门店域id
*/
private
Integer
storeRegionId
;
/**
* 门店分组条件,json数组
*/
private
String
condition
;
/**
* 策略命中值;如果type为门店分组策略,对应分组id;否则为门店启用和不启用值
*/
private
String
targetValue
;
/**
*
*/
private
Date
createTime
;
/**
*
*/
private
Date
updateTime
;
/**
* 状态值 1有效 0无效
*/
private
Integer
status
;
/**
* 策略类型,1门店状态策略, 2门店分组策略
*/
private
Integer
strategyType
;
/**
* 排序字段
*/
private
Double
sort
;
/**
* 排序值
*/
private
Integer
seq
;
public
Integer
getStrategyId
()
{
return
strategyId
;
}
public
void
setStrategyId
(
Integer
strategyId
)
{
this
.
strategyId
=
strategyId
;
}
public
String
getStrategyName
()
{
return
strategyName
;
}
public
void
setStrategyName
(
String
strategyName
)
{
this
.
strategyName
=
strategyName
;
}
public
Integer
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
Integer
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Integer
getStoreRegionId
()
{
return
storeRegionId
;
}
public
void
setStoreRegionId
(
Integer
storeRegionId
)
{
this
.
storeRegionId
=
storeRegionId
;
}
public
String
getCondition
()
{
return
condition
;
}
public
void
setCondition
(
String
condition
)
{
this
.
condition
=
condition
;
}
public
String
getTargetValue
()
{
return
targetValue
;
}
public
void
setTargetValue
(
String
targetValue
)
{
this
.
targetValue
=
targetValue
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Integer
getStrategyType
()
{
return
strategyType
;
}
public
void
setStrategyType
(
Integer
strategyType
)
{
this
.
strategyType
=
strategyType
;
}
public
Double
getSort
()
{
return
sort
;
}
public
void
setSort
(
Double
sort
)
{
this
.
sort
=
sort
;
}
public
Integer
getSeq
()
{
return
seq
;
}
public
void
setSeq
(
Integer
seq
)
{
this
.
seq
=
seq
;
}
}
gic-store-api/src/main/java/com/gic/store/service/StoreStrategyApiService.java
0 → 100644
View file @
d2add87a
package
com
.
gic
.
store
.
service
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.store.dto.StoreStrategyDTO
;
/**
* @author guojx
* @date 2019/7/4 9:44 AM
*/
public
interface
StoreStrategyApiService
{
/**
* 新增 分组策略数据
* @param storeStrategyDTO
* @return
*/
ServiceResponse
<
Integer
>
saveStoreGroupStrategy
(
StoreStrategyDTO
storeStrategyDTO
);
/**
* 删除分组策略(单条)
* @param strategyId
* @return
*/
ServiceResponse
<
Integer
>
deleteStoreGroupStrategy
(
int
strategyId
);
/**
* 修改分组策略
* @param storeStrategyDTO
* @return
*/
ServiceResponse
<
Integer
>
modifyStoreGroupStrategy
(
StoreStrategyDTO
storeStrategyDTO
);
/**
* 置底
* @param strategyId
* @param strategyType
* @return
*/
ServiceResponse
<
Integer
>
sortBottom
(
int
strategyId
,
int
strategyType
);
/**
* 置顶
* @param strategyId
* @param strategyType
* @return
*/
ServiceResponse
<
Integer
>
sortTopping
(
int
strategyId
,
int
strategyType
);
/**
* 设置排序值
* @param strategyId
* @param setValue
* @param strategyType
* @return
*/
ServiceResponse
<
Integer
>
setStoreStrategySort
(
int
strategyId
,
int
setValue
,
int
strategyType
);
/**
* 分页查询分组策略数据
* @param enterpriseId
* @param search
* @param strategyType
* @param pageNum
* @param pageSize
* @return
*/
ServiceResponse
<
Page
<
StoreStrategyDTO
>>
listStoreField
(
int
enterpriseId
,
String
search
,
int
strategyType
,
Integer
pageNum
,
Integer
pageSize
);
}
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