Commit f9e87d98 by guojuxing

根据名称和企业ID,查询分组数据

parent 3159cce8
......@@ -120,6 +120,7 @@ public class StoreGroupApiServiceImpl implements StoreGroupApiService{
throw new StoreGroupException(StoreGroupErrorEnum.ParentStoreGroupParamError.getCode(), StoreGroupErrorEnum.ParentStoreGroupParamError.getMessage());
}
int storeGroupParentId = storeGroupDTO.getParentStoreGroupId();
validIsDefault(storeGroupParentId);
int oldStoreGroupParentId = oldStoreGroup.getParentStoreGroupId();
boolean hasEditParentId = storeGroupParentId != oldStoreGroupParentId;
if (hasEditParentId) {
......@@ -260,6 +261,7 @@ public class StoreGroupApiServiceImpl implements StoreGroupApiService{
if (tabStoreGroup == null) {
return ServiceResponse.failure(ErrorCode.ERR_5.getCode(), "主键错误,查询不到数据");
}
validIsDefault(storeGroupId);
if (setSortValue == null) {
return ServiceResponse.failure(ErrorCode.ERR_5.getCode(), "拖拽排序值不能为空过");
}
......
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