|
@@ -20,9 +20,12 @@
|
|
|
left join ms_suspected mss on mss.report_id=msr.report_id
|
|
|
left join ms_trip tr on mss.suspected_id=trip_id
|
|
|
<where>
|
|
|
- <if test="unitId!=null and uptownId!='' and unitId!= '0'.toString()">
|
|
|
+ <if test="unitId!=null and unitId!='' and unitId!= '0'.toString()">
|
|
|
and suu.unit_id=#{unitId}
|
|
|
</if>
|
|
|
+ <if test="uptownId!=null and uptownId!='' and uptownId!= '0'.toString()">
|
|
|
+ and suu.uptown_id=#{uptownId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
order by suu.unit_id asc,suho.linkman
|
|
|
</select>
|