Commit cde6c09e by 陶光胜

init

parent e9e0d550
...@@ -55,7 +55,9 @@ public class StoreMessageHandler implements MessageHandler { ...@@ -55,7 +55,9 @@ public class StoreMessageHandler implements MessageHandler {
if(CollectionUtils.isNotEmpty(resourceResponse.getResult())){ if(CollectionUtils.isNotEmpty(resourceResponse.getResult())){
for(UnionEnterpriseResourceDTO dto : resourceResponse.getResult()){ for(UnionEnterpriseResourceDTO dto : resourceResponse.getResult()){
ServiceResponse<StoreWidgetDTO> storeWidget = this.storeWidgetApiService.getStoreWidget(dto.getResource().intValue()); ServiceResponse<StoreWidgetDTO> storeWidget = this.storeWidgetApiService.getStoreWidget(dto.getResource().intValue());
if(storeWidget.isSuccess()){ if(!storeWidget.isSuccess()){
continue;
}
StoreWidgetDTO storeWidgetDTO = storeWidget.getResult(); StoreWidgetDTO storeWidgetDTO = storeWidget.getResult();
if(storeWidgetDTO != null){ if(storeWidgetDTO != null){
if(AuthModeEnum.YES.getCode() == storeWidgetDTO.getAuthMode()){ if(AuthModeEnum.YES.getCode() == storeWidgetDTO.getAuthMode()){
...@@ -64,16 +66,15 @@ public class StoreMessageHandler implements MessageHandler { ...@@ -64,16 +66,15 @@ public class StoreMessageHandler implements MessageHandler {
storeSearchDTO.setSearchJson(storeWidgetDTO.getSearchParam()); storeSearchDTO.setSearchJson(storeWidgetDTO.getSearchParam());
storeSearchDTO.setEnterpriseId(enterpriseId); storeSearchDTO.setEnterpriseId(enterpriseId);
ServiceResponse<Page<StoreDTO>> response = this.storeApiService.listStore(storeSearchDTO, 1, 1); ServiceResponse<Page<StoreDTO>> response = this.storeApiService.listStore(storeSearchDTO, 1, 1);
if(response.isSuccess()){ if(!response.isSuccess()){
continue;
}
if(CollectionUtils.isNotEmpty(response.getResult().getResult())){ if(CollectionUtils.isNotEmpty(response.getResult().getResult())){
StoreDTO storeDTO = new StoreDTO(); StoreDTO storeDTO = new StoreDTO();
storeDTO.setStoreInfoId(storeInfoId); storeDTO.setStoreInfoId(storeInfoId);
storeDTO.setEnterpriseId(enterpriseId); storeDTO.setEnterpriseId(enterpriseId);
storeDTO.setFromEnterpriseId(dto.getUnionEnterpriseId()); storeDTO.setFromEnterpriseId(dto.getUnionEnterpriseId());
this.storeAuthorizationApiService.saveStore(storeDTO); this.storeAuthorizationApiService.saveStore(storeDTO);
//this.storeIndexRefreshHandler.refreshStoreIndex(dto.getUnionEnterpriseId(), storeId);
}
}
} }
} }
} }
......
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