Przeglądaj źródła

refactor(AlienJobApplication): 更新组件扫描配置

- 添加 shop.alien.store.* 到组件扫描路径
- 保持原有的 shop.alien.job.* 和 shop.alien.util.* 扫描路径
- 维持 Redis 和数据库配置的组件扫描
- 确保 MyBatis 映射器扫描正常工作
- 保留 Feign 客户端的启用配置
lutong 1 miesiąc temu
rodzic
commit
83d5f25a11

+ 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);
 

+ 1 - 1
alien-job/src/main/java/shop/alien/job/AlienJobApplication.java

@@ -7,7 +7,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
 import org.springframework.context.annotation.ComponentScan;
 
 @SpringBootApplication
-@ComponentScan({"shop.alien.job.*", "shop.alien.util.*","shop.alien.config.redis", "shop.alien.config.databases",})
+@ComponentScan({"shop.alien.job.*", "shop.alien.store.*", "shop.alien.util.*","shop.alien.config.redis", "shop.alien.config.databases",})
 @MapperScan({"shop.alien.mapper"})
 @EnableFeignClients(basePackages = {"shop.alien.job.feign"})
 public class AlienJobApplication {