Ver Fonte

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

lutong há 1 mês atrás
pai
commit
37a7756641

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

@@ -183,6 +183,7 @@ public interface StoreInfoMapper extends BaseMapper<StoreInfo> {
             "${ew.customSqlSegment} " +
             "${ew.customSqlSegment} " +
             "and a.store_position is not null and a.store_position != '' " +
             "and a.store_position is not null and a.store_position != '' " +
             "and a.head_img_status = 1 " +
             "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")
             "order by distance3 asc")
     List<StoreInfoVo> getMoreRecommendedStores(@Param(Constants.WRAPPER) QueryWrapper<StoreInfoVo> queryWrapper, @Param("position") String position);
     List<StoreInfoVo> getMoreRecommendedStores(@Param(Constants.WRAPPER) QueryWrapper<StoreInfoVo> queryWrapper, @Param("position") String position);