|
@@ -89,9 +89,9 @@ public class AdminStoreAuditController {
|
|
StoreApplyExample example = new StoreApplyExample();
|
|
StoreApplyExample example = new StoreApplyExample();
|
|
if (WebSiteConstant.MEMBER_OVERSEA.equals(webSite)) {
|
|
if (WebSiteConstant.MEMBER_OVERSEA.equals(webSite)) {
|
|
example.setStoreNameLike(storeName);
|
|
example.setStoreNameLike(storeName);
|
|
|
|
+ example.setStoreGradeId(storeGradeId);
|
|
}
|
|
}
|
|
example.setVendorNameLike(vendorName);
|
|
example.setVendorNameLike(vendorName);
|
|
- example.setStoreGradeId(storeGradeId);
|
|
|
|
example.setStoreType(StoreConst.NO_OWN_STORE);
|
|
example.setStoreType(StoreConst.NO_OWN_STORE);
|
|
example.setPager(pager);
|
|
example.setPager(pager);
|
|
example.setOrderBy("submit_time desc");
|
|
example.setOrderBy("submit_time desc");
|
|
@@ -102,14 +102,19 @@ public class AdminStoreAuditController {
|
|
}
|
|
}
|
|
List<StoreApply> storeApplyList = storeApplyModel.getStoreApplyList(example, pager);
|
|
List<StoreApply> storeApplyList = storeApplyModel.getStoreApplyList(example, pager);
|
|
List<StoreName> storeNameList = Collections.emptyList();
|
|
List<StoreName> storeNameList = Collections.emptyList();
|
|
|
|
+ List<StoreSiteInfo> storeSiteInfoList = Collections.emptyList();
|
|
if (!WebSiteConstant.MEMBER_OVERSEA.equals(webSite)) {
|
|
if (!WebSiteConstant.MEMBER_OVERSEA.equals(webSite)) {
|
|
StoreNameExample storeNameExample = new StoreNameExample();
|
|
StoreNameExample storeNameExample = new StoreNameExample();
|
|
storeNameExample.setStoreNameLike(storeName);
|
|
storeNameExample.setStoreNameLike(storeName);
|
|
storeNameExample.setWebSite(webSite);
|
|
storeNameExample.setWebSite(webSite);
|
|
storeNameList = storeNameModel.getStoreNameList(new StoreNameExample(), null);
|
|
storeNameList = storeNameModel.getStoreNameList(new StoreNameExample(), null);
|
|
|
|
+ StoreSiteInfoExample storeSiteInfoExample = new StoreSiteInfoExample();
|
|
|
|
+ storeSiteInfoExample.setStoreGradeId(storeGradeId);
|
|
|
|
+ storeSiteInfoExample.setStoreIdIn(storeNameList.stream().map(StoreName::getStoreId).collect(Collectors.toList()));
|
|
|
|
+ storeSiteInfoList = storeSiteInfoModel.getStoreSiteInfoList(storeSiteInfoExample, null);
|
|
}
|
|
}
|
|
List<StoreApplyVO> vos = new ArrayList<>();
|
|
List<StoreApplyVO> vos = new ArrayList<>();
|
|
- if (CollectionUtils.isEmpty(storeNameList) && !WebSiteConstant.MEMBER_OVERSEA.equals(webSite)) {
|
|
|
|
|
|
+ if (CollectionUtils.isEmpty(storeNameList) && !WebSiteConstant.MEMBER_OVERSEA.equals(webSite) && CollectionUtils.isEmpty(storeSiteInfoList)) {
|
|
return SldResponse.success(new PageVO<>(vos, new PagerInfo(10, 1)));
|
|
return SldResponse.success(new PageVO<>(vos, new PagerInfo(10, 1)));
|
|
}
|
|
}
|
|
if (!CollectionUtils.isEmpty(storeApplyList)) {
|
|
if (!CollectionUtils.isEmpty(storeApplyList)) {
|
|
@@ -131,10 +136,7 @@ public class AdminStoreAuditController {
|
|
storeSiteInfoExample.setStoreId(storeApply.getStoreId());
|
|
storeSiteInfoExample.setStoreId(storeApply.getStoreId());
|
|
storeSiteInfoExample.setWebSite(webSite);
|
|
storeSiteInfoExample.setWebSite(webSite);
|
|
StoreSiteInfo storeSiteInfo = storeSiteInfoModel.getStoreSiteInfo(storeSiteInfoExample);
|
|
StoreSiteInfo storeSiteInfo = storeSiteInfoModel.getStoreSiteInfo(storeSiteInfoExample);
|
|
- if (storeSiteInfo != null) {
|
|
|
|
- vo.setStoreGradeName(storeSiteInfo.getStoreGradeName());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ vo.setStoreGradeName(storeSiteInfo != null ? storeSiteInfo.getStoreGradeName() : vo.getStoreGradeName());
|
|
}
|
|
}
|
|
|
|
|
|
//获取联系人名称和电话
|
|
//获取联系人名称和电话
|