Просмотр исходного кода

修改 BUG 更多推荐屏蔽未上传头图 和 未签署合同的店铺

lutong 1 месяц назад
Родитель
Сommit
37a7756641
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      alien-entity/src/main/java/shop/alien/mapper/StoreInfoMapper.java

+ 1 - 0
alien-entity/src/main/java/shop/alien/mapper/StoreInfoMapper.java

@@ -183,6 +183,7 @@ public interface StoreInfoMapper extends BaseMapper<StoreInfo> {
             "${ew.customSqlSegment} " +
             "and a.store_position is not null and a.store_position != '' " +
             "and a.head_img_status = 1 " +
+            "and exists (select 1 from contract_bundle cb where cb.subject_type = 'store' and cb.subject_id = a.id and cb.status = '已签署') " +
             "order by distance3 asc")
     List<StoreInfoVo> getMoreRecommendedStores(@Param(Constants.WRAPPER) QueryWrapper<StoreInfoVo> queryWrapper, @Param("position") String position);