魏超 5 年之前
父節點
當前提交
0047df783a

+ 1
- 1
src/main/resources/mapper/TaPersonMapper.xml 查看文件

@@ -524,7 +524,7 @@ FROM
524 524
         LEFT JOIN ta_recommend_customer rc ON p.person_id = rc.person_id
525 525
         <where>
526 526
         <if test="name !=null and name !=''">
527
-            and rc.name like CONCAT('%',#{name}, '%')
527
+            and (p.name like CONCAT('%',#{name}, '%') or p.nickname like CONCAT('%',#{name}, '%'))
528 528
         </if>
529 529
         <if test="phone !=null and phone !=''">
530 530
             and rc.phone like CONCAT('%',#{phone}, '%')

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

@@ -490,7 +490,7 @@ FROM
490 490
 
491 491
     <select id="getIndependentAgentsExport" resultType="com.huiju.estateagents.excel.AgentsRecommendCustomer">
492 492
         SELECT
493
-        ifnull(a.nickname, a.name) as nickname,
493
+        ifnull( a.name, a.nickname) as nickname,
494 494
         a.phone as phone,
495 495
         if(a.gender = '1', '男', if(a.gender = '2', '女', '未知')) as gender,
496 496
         '专业经纪人' as personType,