傅行帆 5 lat temu
rodzic
commit
dd3145976b

+ 1
- 1
src/main/java/com/huiju/estateagents/mapper/TaRecommendCustomerMapper.java Wyświetl plik

@@ -48,7 +48,7 @@ public interface TaRecommendCustomerMapper extends BaseMapper<TaRecommendCustome
48 48
      * @param personBuildingList
49 49
      * @return
50 50
      */
51
-    IPage<TaPerson> getPublicCustomerList(IPage<TaPerson> page, @Param("name") String name, @Param("tel") String tel, @Param("entryType") String entryType, @Param("verifyStatus") String verifyStatus, @Param("sex") Integer sex, @Param("orgId") Integer orgId, @Param("consultTel") String consultTel, @Param("sceneType") String sceneType,@Param("personBuildingList") List<TaPersonBuilding> personBuildingList);
51
+    IPage<TaPerson> getPublicCustomerList(IPage<TaPerson> page, @Param("name") String name, @Param("tel") String tel, @Param("entryType") String entryType, @Param("verifyStatus") String verifyStatus, @Param("sex") Integer sex, @Param("orgId") Integer orgId, @Param("consultTel") String consultTel, @Param("sceneType") String sceneType,@Param("personBuildingList") List<TaPersonBuilding> personBuildingList,@Param("buildingId") String buildingId);
52 52
 
53 53
     /**
54 54
      * 导出数据 获取推荐用户数据

+ 1
- 1
src/main/java/com/huiju/estateagents/service/impl/TaRecommendCustomerServiceImpl.java Wyświetl plik

@@ -492,7 +492,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
492 492
             // 公客
493 493
             IPage<TaPerson>page = new Page<>(pageNumber,pageSize);
494 494
             // 公客就不用 buildingId 进行查询
495
-            return taRecommendCustomerMapper.getPublicCustomerList(page,name, tel,  entryType, verifyStatus, sex, orgId,consultTel,sceneType, taPersonBuildingList);
495
+            return taRecommendCustomerMapper.getPublicCustomerList(page,name, tel,  entryType, verifyStatus, sex, orgId,consultTel,sceneType, taPersonBuildingList,building);
496 496
         } else {
497 497
             // 私客
498 498
             IPage<TaRecommendCustomer>page = new Page<>(pageNumber,pageSize);

+ 3
- 0
src/main/resources/mapper/TaRecommendCustomerMapper.xml Wyświetl plik

@@ -267,6 +267,9 @@ FROM
267 267
             <if test="consultTel != null and consultTel !=''">
268 268
                 and b.tel like CONCAT('%',#{consultTel}, '%')
269 269
             </if>
270
+            <if test="buildingId != null and buildingId !=''">
271
+                AND r.building_id = #{buildingId}
272
+            </if>
270 273
             and NOT EXISTS ( select * from ta_recommend_customer a where a.org_id = #{orgId} and a.recommend_person = b.person_id)
271 274
             <if test="personBuildingList != null and personBuildingList.size > 0">
272 275
                 AND r.building_id in