浏览代码

add avatarurl

胡轶钦 5 年前
父节点
当前提交
04cb04f336

+ 3
- 0
src/main/java/com/huiju/estateagents/entity/TaRecommendCustomer.java 查看文件

@@ -195,4 +195,7 @@ public class TaRecommendCustomer implements Serializable {
195 195
 
196 196
     @TableField(exist = false)
197 197
     private Map<String,String> geoInfo;
198
+
199
+    @TableField(exist = false)
200
+    private String avatarurl;
198 201
 }

+ 2
- 0
src/main/java/com/huiju/estateagents/mapper/TaRecommendCustomerMapper.java 查看文件

@@ -187,4 +187,6 @@ public interface TaRecommendCustomerMapper extends BaseMapper<TaRecommendCustome
187 187
     TaRecommendCustomer getMyCustDetailById(String customerId);
188 188
 
189 189
     List<PersonIntention> getCustomerIntentions(@Param("personId")String personId);
190
+
191
+    IPage<TaRecommendCustomer>getCustomersIRecommended(IPage<TaRecommendCustomer> page,@Param("customerId")String customerId,@Param("status")Integer status,@Param("orgId") Integer orgId);
190 192
 }

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

@@ -512,12 +512,12 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
512 512
         QueryWrapper<TaRecommendCustomer>queryWrapper = new QueryWrapper<>();
513 513
         // todo
514 514
         // 此处可能不是 person_id 而是 recommend_person
515
-        queryWrapper.eq("recommend_person",customerId);
516
-//        queryWrapper.eq("building_id",building);
517
-        queryWrapper.eq("status", CommConstant.VERIFY_AGREE);
518
-        queryWrapper.eq("org_id", orgId);
519 515
         IPage<TaRecommendCustomer>page = new Page<>(pageNumber,pageSize);
520
-        return taRecommendCustomerMapper.selectPage(page,queryWrapper);
516
+//        queryWrapper.eq("recommend_person",customerId);
517
+////        queryWrapper.eq("building_id",building);
518
+//        queryWrapper.eq("status", CommConstant.VERIFY_AGREE);
519
+//        queryWrapper.eq("org_id", orgId);
520
+        return taRecommendCustomerMapper.getCustomersIRecommended(page,customerId,CommConstant.STATUS_NORMAL,orgId);
521 521
     }
522 522
 
523 523
     @Override

+ 7
- 0
src/main/resources/mapper/TaRecommendCustomerMapper.xml 查看文件

@@ -683,4 +683,11 @@ FROM
683 683
             intention DESC
684 684
     </select>
685 685
 
686
+    <select id="getCustomersIRecommended" resultType="com.huiju.estateagents.entity.TaRecommendCustomer">
687
+        select a.*,b.avatarurl from ta_recommend_customer left join ta_person b on a.person_id = b.person_id
688
+        where a.recommend_person = #{customerId}
689
+        and a.status = #{status}
690
+        and a.org_id = #{orgId}
691
+    </select>
692
+
686 693
 </mapper>