顾绍勇 hace 5 años
padre
commit
e865076981

+ 5
- 5
src/main/java/com/huiju/estateagents/service/impl/TaSalesBatchServiceImpl.java Ver fichero

@@ -149,14 +149,14 @@ public class TaSalesBatchServiceImpl extends ServiceImpl<TaSalesBatchMapper, TaS
149 149
 
150 150
         JSONObject obj = new JSONObject();
151 151
         obj.put("preselectionStartTime", salesBatch.getPreselectionStartTime());
152
-        obj.put("preselectionEndTime", salesBatch.getPreselectionEndTime());
153
-        obj.put("salesNumber", totalHouses == null ? 0 : totalHouses);
154
-        obj.put("preselectionNumber", totalRealHeat == null ? 0 : totalRealHeat);
155
-        obj.put("heatNumber", totalHeat == null ? 0 : totalHeat);
156
-        obj.put("raiseRealNumber", raiseRealNumber == null ? 0 : raiseRealNumber);
152
+        obj.put("preselectionEndTime", salesBatch.getPreselectionEndTime());        obj.put("raiseRealNumber", raiseRealNumber == null ? 0 : raiseRealNumber);
157 153
         obj.put("raiseNumber", raiseNumber == null ? 0 : raiseNumber);
158 154
         obj.put("raiseStartTime", taRaise.getRaiseStartTime());
159 155
         obj.put("raiseEndTime", taRaise.getRaiseEndTime());
156
+        obj.put("salesNumber", totalHouses == null ? 0 : totalHouses);
157
+        obj.put("preselectionNumber", totalRealHeat == null ? 0 : totalRealHeat);
158
+        obj.put("heatNumber", totalHeat == null ? 0 : totalHeat);
159
+
160 160
         responseBean.addSuccess(obj);
161 161
         return responseBean;
162 162
     }

+ 5
- 6
src/main/resources/mapper/TaRecommendCustomerMapper.xml Ver fichero

@@ -244,12 +244,11 @@ FROM
244 244
         SELECT
245 245
         b.*,
246 246
         IF
247
-        ( IFNULL( tpp.NAME, '' ) != '', tpp.NAME, tpp.nickname ) AS sharePersonName
247
+        ( IFNULL( b.NAME, '' ) != '', b.NAME, b.nickname ) AS sharePersonName
248 248
         FROM
249 249
         ta_person b
250
-        LEFT JOIN ta_person_from_record r ON b.person_id = r.person_id AND r.is_first_time = 1 and r.org_id = #{orgId}
251
-        LEFT JOIN ta_person tpp ON r.share_person_id = tpp.person_id
252
-        left join td_wx_dict d on r.scene_id = d.scene_id
250
+        LEFT JOIN ta_person_from_record r ON r.share_person_id = b.person_id
251
+        LEFT JOIN td_wx_dict d ON r.scene_id = d.scene_id
253 252
         <where>
254 253
             b.status > 0
255 254
             and b.org_id = #{orgId}
@@ -280,11 +279,11 @@ FROM
280 279
                 and b.tel like CONCAT('%',#{consultTel}, '%')
281 280
             </if>
282 281
             <if test="buildingId != null and buildingId !=''">
283
-                AND r.building_id = #{buildingId}
282
+                AND b.building_id = #{buildingId}
284 283
             </if>
285 284
             and NOT EXISTS ( select * from ta_recommend_customer a where a.org_id = #{orgId} and a.recommend_person = b.person_id)
286 285
             <if test="personBuildingList != null and personBuildingList.size > 0">
287
-                AND r.building_id in
286
+                AND b.building_id in
288 287
                 <foreach collection="personBuildingList" item="personBuilding" open="(" close=")" separator=",">
289 288
                     #{personBuilding.buildingId}
290 289
                 </foreach>