|
@@ -11,7 +11,6 @@ import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartRequest;
|
|
import org.springframework.web.multipart.MultipartRequest;
|
|
|
import shop.alien.entity.result.R;
|
|
import shop.alien.entity.result.R;
|
|
|
-import shop.alien.entity.second.SecondGoodsCategory;
|
|
|
|
|
import shop.alien.entity.store.*;
|
|
import shop.alien.entity.store.*;
|
|
|
import shop.alien.entity.store.dto.StoreInfoDto;
|
|
import shop.alien.entity.store.dto.StoreInfoDto;
|
|
|
import shop.alien.entity.store.vo.*;
|
|
import shop.alien.entity.store.vo.*;
|
|
@@ -824,7 +823,11 @@ public class StoreInfoController {
|
|
|
})
|
|
})
|
|
|
public R<List<StoreCommentSummaryInterest>> getStoreInterestInfo(int storeId) {
|
|
public R<List<StoreCommentSummaryInterest>> getStoreInterestInfo(int storeId) {
|
|
|
log.info("StoreInfoController.getStoreInterestInfo?storeId={}", storeId);
|
|
log.info("StoreInfoController.getStoreInterestInfo?storeId={}", storeId);
|
|
|
- List<StoreCommentSummaryInterest> list = storeCommentSummaryInterestMapper.selectList(new LambdaQueryWrapper<StoreCommentSummaryInterest>().eq(StoreCommentSummaryInterest :: getStoreId, storeId));
|
|
|
|
|
|
|
+ List<StoreCommentSummaryInterest> list = storeCommentSummaryInterestMapper.selectList(
|
|
|
|
|
+ new LambdaQueryWrapper<StoreCommentSummaryInterest>()
|
|
|
|
|
+ .eq(StoreCommentSummaryInterest::getStoreId, storeId)
|
|
|
|
|
+ .last("ORDER BY RAND() LIMIT 1") // 随机排序并只取第一条
|
|
|
|
|
+ );
|
|
|
return R.data(list);
|
|
return R.data(list);
|
|
|
}
|
|
}
|
|
|
|
|
|