|
@@ -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
|