Quellcode durchsuchen

Merge branch 'v3.5' of http://git.ycjcjy.com/zhiyuxing/estateagents into v3.5

胡轶钦 vor 5 Jahren
Ursprung
Commit
2315ed3c9b

+ 1
- 1
src/main/java/com/huiju/estateagents/mapper/TaRecommendCustomerMapper.java Datei anzeigen

@@ -44,7 +44,7 @@ public interface TaRecommendCustomerMapper extends BaseMapper<TaRecommendCustome
44 44
      * @param sex
45 45
      * @return
46 46
      */
47
-    IPage<TaPerson> getPublicCustomerList(IPage<TaPerson> page, @Param("buildingId") String buildingId, @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);
47
+    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);
48 48
 
49 49
     /**
50 50
      * 导出数据 获取推荐用户数据

+ 2
- 0
src/main/java/com/huiju/estateagents/service/impl/TaBuildingDynamicServiceImpl.java Datei anzeigen

@@ -398,6 +398,8 @@ public class TaBuildingDynamicServiceImpl extends ServiceImpl<TaBuildingDynamicM
398 398
                 taBuildingDynamic.setPosters(taPosterService.getPostersForTarget(taBuildingDynamic.getDynamicId(), CommConstant.POSTER_CONTENT_TYPE_ACTIVITY));
399 399
                 taBuildingDynamic.setShareContents(taShareContentService.getPostersForTarget(taBuildingDynamic.getDynamicId(), CommConstant.POSTER_CONTENT_TYPE_ACTIVITY));
400 400
 
401
+                //更改状态为已参与
402
+                taBuildingDynamic.setActivityStatus(CommConstant.ACTIVITY_STATUS_PARTNER);
401 403
 
402 404
             }
403 405
             return result;

+ 2
- 1
src/main/java/com/huiju/estateagents/service/impl/TaRecommendCustomerServiceImpl.java Datei anzeigen

@@ -399,7 +399,8 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
399 399
 
400 400
             // 公客
401 401
             IPage<TaPerson>page = new Page<>(pageNumber,pageSize);
402
-            return taRecommendCustomerMapper.getPublicCustomerList(page, building,name, tel,  entryType, verifyStatus, sex, orgId,consultTel);
402
+            // 公客就不用 buildingId 进行查询
403
+            return taRecommendCustomerMapper.getPublicCustomerList(page,name, tel,  entryType, verifyStatus, sex, orgId,consultTel);
403 404
         } else {
404 405
             // 私客
405 406
             IPage<TaRecommendCustomer>page = new Page<>(pageNumber,pageSize);

+ 11
- 3
src/main/resources/mapper/HelpActivityMapper.xml Datei anzeigen

@@ -62,9 +62,13 @@
62 62
 			FROM
63 63
 				ta_help_activity a
64 64
 				WHERE
65
-                  a.org_id =#{orgId}
65
+                    a.org_id =#{orgId}
66
+                <if test="buildingId  == null ">
66 67
                   and  a.is_main = 1
67
-                  and  a.city_id = #{cityID}
68
+                </if>
69
+                <if test="cityID != null and cityID != ''">
70
+                      and  a.city_id = #{cityID}
71
+                </if>
68 72
                 <if test="buildingId != null and buildingId != ''">
69 73
                   and a.building_id = #{buildingId}
70 74
                 </if>
@@ -79,9 +83,13 @@
79 83
 				FROM
80 84
 					ta_share_activity s
81 85
 					WHERE
82
-                        s.org_id =#{orgId}
86
+                    s.org_id =#{orgId}
87
+                <if test="buildingId  == null ">
83 88
                     and  s.sort = 1
89
+                </if>
90
+                <if test="cityID != null and cityID != ''">
84 91
                     and  s.city_id = #{cityID}
92
+                </if>
85 93
                 <if test="buildingId != null and buildingId != ''">
86 94
                     and s.building_id = #{buildingId}
87 95
                 </if>

+ 3
- 2
src/main/resources/mapper/TaRecommendCustomerMapper.xml Datei anzeigen

@@ -154,7 +154,7 @@ FROM
154 154
         b.tel as consultTel,
155 155
         c.nickname as recommendName,
156 156
         c.tel as recommendTel,
157
-        (select tpp.name from ta_share_person_from tspf left join ta_person tpp on  tspf.share_person = tpp.person_id where tspf.building_id = #{building} and tspf.is_first_time = 1 and a.person_id = tspf.person_id) as sharePersonName
157
+        (select if(ifnull(tpp.name, '') != '',tpp.name, tpp.nickname) from ta_share_person_from tspf left join ta_person tpp on  tspf.share_person = tpp.person_id where tspf.is_first_time = 1 and a.person_id = tspf.person_id) as sharePersonName
158 158
         FROM
159 159
         ta_recommend_customer a
160 160
         LEFT JOIN ta_person b ON a.realty_consultant = b.person_id
@@ -207,7 +207,8 @@ FROM
207 207
 
208 208
     <select id="getPublicCustomerList" resultType="com.huiju.estateagents.entity.TaPerson">
209 209
         SELECT
210
-                b.*
210
+                b.*,
211
+                (select if(ifnull(tpp.name, '') != '',tpp.name, tpp.nickname) from ta_share_person_from tspf left join ta_person tpp on  tspf.share_person = tpp.person_id where tspf.is_first_time = 1 and b.person_id = tspf.person_id) as sharePersonName
211 212
                 FROM
212 213
                 ta_person b
213 214
                <where>