张延森 5 年之前
父節點
當前提交
9229bc86ec
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      src/main/resources/mapper/TsConsultantKpiMapper.xml

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

362
             AND e.target_type = 'share'
362
             AND e.target_type = 'share'
363
             AND e.target_id = 'index'
363
             AND e.target_id = 'index'
364
         </if>
364
         </if>
365
+        <if test="targetName != null and targetName !=''">
366
+            AND e.target_name like concat('%', #{targetName} ,'%')
367
+        </if>
365
 
368
 
366
             AND e.create_date BETWEEN #{startDate} and #{endDate}
369
             AND e.create_date BETWEEN #{startDate} and #{endDate}
367
             <!-- building_id 字段数据不全
370
             <!-- building_id 字段数据不全
374
             AND t.person_id = #{personId}
377
             AND t.person_id = #{personId}
375
         </if>
378
         </if>
376
         <if test="userName != null and userName !=''">
379
         <if test="userName != null and userName !=''">
377
-            AND t.nickname like concat('%', #{userName} ,'%')
380
+            AND IFNULL(t.name, t.nickname) like concat('%', #{userName} ,'%')
378
         </if>
381
         </if>
379
             <!--            AND t.`status` = 1-->
382
             <!--            AND t.`status` = 1-->
380
         ORDER BY e.create_date DESC
383
         ORDER BY e.create_date DESC