Commit 2dd259ff by 陶光胜

门店状态变更

parent 7a4f29cc
......@@ -88,7 +88,7 @@ public class StoreServiceImpl implements StoreService {
store.setCreateTime(new Date());
store.setUpdateTime(new Date());
store.setOwnType(StoreOwnTypeEnum.OWNER.getCode());
store.setStatus(copy.getStatus());
store.setStatus(1);
store.setStoreGroupId(copy.getStoreGroupId());
store.setStoreInfoId(tabStoreInfo.getStoreInfoId());
store.setFromEnterpriseId(copy.getFromEnterpriseId());
......
......@@ -186,7 +186,7 @@ public class StoreApiServiceImpl implements StoreApiService {
try{
ServiceResponse<StoreDTO> existStore = this.getStoreById(storeDTO.getEnterpriseId(), storeDTO.getStoreId());
storeDTO.setStoreInfoId(existStore.getResult().getStoreInfoId());
storeDTO.setStatus(existStore.getResult().getStatus());
storeDTO.setStatus(storeDTO.getStatus() != null ? storeDTO.getStatus() : existStore.getResult().getStatus());
Integer update = storeService.update(storeDTO);
if (update == 0) {
return ServiceResponse.failure(ErrorCode.NOTEXISTS.getCode(), ErrorCode.NOTEXISTS.getMsg());
......
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