master:系统调优;

pull/1121/head
liujiang 2025-10-11 16:07:40 +08:00
parent c2e2eedcf7
commit 446f2ca274
2 changed files with 3 additions and 2 deletions

View File

@ -547,6 +547,9 @@ public class GtAndFhbBizController extends BaseController {
final List<String> storeProdIdList = storeProdList.stream().map(StoreProduct::getId).map(String::valueOf).collect(Collectors.toList());
// 获取所有的商品的第一张主图
List<StoreProdFileResDTO> mainPicList = this.storeProdFileMapper.selectMainPic(storeProdIdList);
if (CollectionUtils.isEmpty(mainPicList)) {
throw new ServiceException("档口没有商品主图!" + storeId, HttpStatus.ERROR);
}
// 所有的商品主图map
Map<Long, List<String>> mainPicMap = mainPicList.stream().filter(x -> Objects.equals(x.getFileType(), FileType.MAIN_PIC.getValue()))
.collect(Collectors.groupingBy(StoreProdFileResDTO::getStoreProdId, Collectors.mapping(StoreProdFileResDTO::getFileUrl, Collectors.toList())));

View File

@ -142,8 +142,6 @@ public class SecurityConfig
.antMatchers("/rest/v1/prods/status/cate/num/**").permitAll()
// PC 商品详情
.antMatchers("/rest/v1/prods/pc/detail/**").permitAll()
// PC 搜索商品
.antMatchers("/rest/v1/prods/fuzzy/**").permitAll()