Commit 8fdff616 by 陶光胜

门店保存修改

parent 571e7b81
......@@ -53,8 +53,6 @@ public class StoreGroupApiServiceImpl implements StoreGroupApiService {
} else {
return parentIdWhenNew;
}
storeGroupDTO.setCreateTime(new Date());
storeGroupDTO.setUpdateTime(new Date());
storeGroupDTO.setStatus(1);
......@@ -72,8 +70,9 @@ public class StoreGroupApiServiceImpl implements StoreGroupApiService {
storeGroupChain.setStoreGroupId(storeGroupId);
storeGroupChain.setStoreGroupChain(getStoreGroupChain(storeGroupId));
storeGroupService.update(storeGroupChain);
if (isNeedTransferStore(storeGroupDTO.getParentStoreGroupId())) {
boolean needTransferStore = isNeedTransferStore(storeGroupDTO.getParentStoreGroupId());
logger.info("needTransferStore:{}", needTransferStore);
if (needTransferStore) {
//转移门店
storeService.updateGroupId(storeGroupDTO.getParentStoreGroupId(), storeGroupId);
}
......
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