Commit 25620429 by guojuxing

门店授权修复

parent cc9b444e
......@@ -83,8 +83,9 @@ public class StoreAuthorizationApiServiceImpl implements StoreAuthorizationApiSe
storeSearchDTO.setSearchJson(storeWidgetDTO.getSearchParam());
storeSearchDTO.setOwnType(StoreOwnTypeEnum.OWNER.getCode());
Long count = this.storeApiService.queryStoreCountFromEs(storeSearchDTO).getResult();
if(count < 0){
if(count <= 0){
this.unionEnterpriseAuthResDetailApiService.unionForStore(UnionEnterpriseAuthDetailStatusEnum.HAS_AUTH.getCode(), ownEnterpriseId, unionEnterpriseId, key, "授权成功");
return ServiceResponse.success();
} else {
this.unionEnterpriseAuthResDetailApiService.unionForStore(UnionEnterpriseAuthDetailStatusEnum.RESOURCE_DEALING.getCode(), ownEnterpriseId, unionEnterpriseId, key, "资源授权中");
}
......
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