Commit d2add87a by guojuxing

分组策略

parent f9e87d98
......@@ -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;
}
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;
}
}
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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment