|
|
@ -98,8 +98,8 @@ |
|
|
|
<if test='null != agencyId and agencyId != "" '> |
|
|
|
AND CONCAT(PIDS,':',AGENCY_ID) LIKE CONCAT('%',#{agencyId},'%') |
|
|
|
</if> |
|
|
|
<if test='null != code and code != "" '> |
|
|
|
AND SOURCE_ADDRESS_PATH_CODE LIKE CONCAT('%',#{code},'%') |
|
|
|
<if test='null != name and name != "" '> |
|
|
|
AND SOURCE_ADDRESS LIKE CONCAT('%',#{name},'%') |
|
|
|
</if> |
|
|
|
<choose> |
|
|
|
<when test='null != dangerLevel and dangerLevel != "" '> |
|
|
@ -120,8 +120,8 @@ |
|
|
|
FROM ic_trip_report_record |
|
|
|
WHERE DEL_FLAG = '0' |
|
|
|
AND CONCAT(PIDS,':',AGENCY_ID) LIKE CONCAT('%',#{agencyId},'%') |
|
|
|
<if test='null != code and code != "" '> |
|
|
|
AND SOURCE_ADDRESS_PATH_CODE LIKE CONCAT('%',#{code},'%') |
|
|
|
<if test='null != name and name != "" '> |
|
|
|
AND SOURCE_ADDRESS LIKE CONCAT('%',#{name},'%') |
|
|
|
</if> |
|
|
|
AND sojourn_history != '3' |
|
|
|
group by dangerLevel |
|
|
|