Commit 91351f30 by guojuxing

门店分组

parent 373d4388
......@@ -15,6 +15,11 @@ public class StoreGroupConstant {
*/
public final static int ALL_STORE_LEVEL = 0;
/**
* 分组最后一级
*/
public final static int LAST_STORE_GROUP_LEVEL = 6;
/**
* 排序,上移
......
......@@ -38,6 +38,9 @@ public class StoreGroupApiServiceImpl implements StoreGroupApiService{
if (groupLevel < StoreGroupConstant.ALL_STORE_LEVEL) {
throw new StoreGroupException(StoreGroupErrorEnum.GroupLevelError.getCode(), StoreGroupErrorEnum.GroupLevelError.getMessage());
}
if (groupLevel > StoreGroupConstant.LAST_STORE_GROUP_LEVEL) {
throw new StoreGroupException(StoreGroupErrorEnum.GroupLevelError.getCode(), StoreGroupErrorEnum.GroupLevelError.getMessage());
}
//所有门店的父级ID为0
if (groupLevel == StoreGroupConstant.ALL_STORE_LEVEL) {
TabStoreGroup allStoreGroup = tabStoreGroupMapper.selectAllStoreGroup(storeGroupDTO.getEnterpriseId(), StoreGroupConstant.ALL_STORE_LEVEL);
......
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