张延森 il y a 5 ans
Parent
révision
9229bc86ec
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4
    1
      src/main/resources/mapper/TsConsultantKpiMapper.xml

+ 4
- 1
src/main/resources/mapper/TsConsultantKpiMapper.xml Voir le fichier

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