瀏覽代碼

* 新需求

顾绍勇 5 年之前
父節點
當前提交
e865076981

+ 5
- 5
src/main/java/com/huiju/estateagents/service/impl/TaSalesBatchServiceImpl.java 查看文件

149
 
149
 
150
         JSONObject obj = new JSONObject();
150
         JSONObject obj = new JSONObject();
151
         obj.put("preselectionStartTime", salesBatch.getPreselectionStartTime());
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
         obj.put("raiseNumber", raiseNumber == null ? 0 : raiseNumber);
153
         obj.put("raiseNumber", raiseNumber == null ? 0 : raiseNumber);
158
         obj.put("raiseStartTime", taRaise.getRaiseStartTime());
154
         obj.put("raiseStartTime", taRaise.getRaiseStartTime());
159
         obj.put("raiseEndTime", taRaise.getRaiseEndTime());
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
         responseBean.addSuccess(obj);
160
         responseBean.addSuccess(obj);
161
         return responseBean;
161
         return responseBean;
162
     }
162
     }

+ 5
- 6
src/main/resources/mapper/TaRecommendCustomerMapper.xml 查看文件

244
         SELECT
244
         SELECT
245
         b.*,
245
         b.*,
246
         IF
246
         IF
247
-        ( IFNULL( tpp.NAME, '' ) != '', tpp.NAME, tpp.nickname ) AS sharePersonName
247
+        ( IFNULL( b.NAME, '' ) != '', b.NAME, b.nickname ) AS sharePersonName
248
         FROM
248
         FROM
249
         ta_person b
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
         <where>
252
         <where>
254
             b.status > 0
253
             b.status > 0
255
             and b.org_id = #{orgId}
254
             and b.org_id = #{orgId}
280
                 and b.tel like CONCAT('%',#{consultTel}, '%')
279
                 and b.tel like CONCAT('%',#{consultTel}, '%')
281
             </if>
280
             </if>
282
             <if test="buildingId != null and buildingId !=''">
281
             <if test="buildingId != null and buildingId !=''">
283
-                AND r.building_id = #{buildingId}
282
+                AND b.building_id = #{buildingId}
284
             </if>
283
             </if>
285
             and NOT EXISTS ( select * from ta_recommend_customer a where a.org_id = #{orgId} and a.recommend_person = b.person_id)
284
             and NOT EXISTS ( select * from ta_recommend_customer a where a.org_id = #{orgId} and a.recommend_person = b.person_id)
286
             <if test="personBuildingList != null and personBuildingList.size > 0">
285
             <if test="personBuildingList != null and personBuildingList.size > 0">
287
-                AND r.building_id in
286
+                AND b.building_id in
288
                 <foreach collection="personBuildingList" item="personBuilding" open="(" close=")" separator=",">
287
                 <foreach collection="personBuildingList" item="personBuilding" open="(" close=")" separator=",">
289
                     #{personBuilding.buildingId}
288
                     #{personBuilding.buildingId}
290
                 </foreach>
289
                 </foreach>