|
@@ -33,6 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
from g_courtyard_network_management a
|
|
|
left join g_building c on a.building_id = c.id and c.del_flag = '0'
|
|
|
left join g_area d on d.id = c.area_id and d.del_flag = '0'
|
|
|
+ left join g_user u on u.id = a.create_by
|
|
|
<where>
|
|
|
a.del_flag = '0'
|
|
|
<if test="p.findProblem != null and p.findProblem != ''">
|
|
@@ -41,6 +42,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="p.createBy != null and p.createBy != ''">
|
|
|
and a.create_by = #{p.createBy}
|
|
|
</if>
|
|
|
+ <if test="p.ranks != null and p.ranks != ''">
|
|
|
+ and u.ranks = #{p.ranks}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
ORDER BY a.create_time DESC
|
|
|
</select>
|