|
|
@ -148,6 +148,14 @@ |
|
|
<if test="params.applicant != null and params.applicant != ''"> |
|
|
<if test="params.applicant != null and params.applicant != ''"> |
|
|
and a.applicant like #{params.applicant} |
|
|
and a.applicant like #{params.applicant} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="params.applicationStartDate != null and params.applicationStartDate != ''"> |
|
|
|
|
|
and a.application_date is not null |
|
|
|
|
|
and cast(a.application_date as date) <![CDATA[ >= ]]> cast(#{params.applicationStartDate} as date) |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="params.applicationEndDate != null and params.applicationEndDate != ''"> |
|
|
|
|
|
and a.application_date is not null |
|
|
|
|
|
and cast(a.application_date as date) <![CDATA[ <= ]]> cast(#{params.applicationEndDate} as date) |
|
|
|
|
|
</if> |
|
|
<if test="params.testerLike != null and params.testerLike != ''"> |
|
|
<if test="params.testerLike != null and params.testerLike != ''"> |
|
|
and (';' + isnull(replace(a.tester, ',', ';'), '') + ';') like ('%;' + #{params.testerLike} + ';%') |
|
|
and (';' + isnull(replace(a.tester, ',', ';'), '') + ';') like ('%;' + #{params.testerLike} + ';%') |
|
|
</if> |
|
|
</if> |
|
|
@ -194,6 +202,14 @@ |
|
|
<if test="params.applicant != null and params.applicant != ''"> |
|
|
<if test="params.applicant != null and params.applicant != ''"> |
|
|
and a.applicant like #{params.applicant} |
|
|
and a.applicant like #{params.applicant} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="params.applicationStartDate != null and params.applicationStartDate != ''"> |
|
|
|
|
|
and a.application_date is not null |
|
|
|
|
|
and cast(a.application_date as date) <![CDATA[ >= ]]> cast(#{params.applicationStartDate} as date) |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="params.applicationEndDate != null and params.applicationEndDate != ''"> |
|
|
|
|
|
and a.application_date is not null |
|
|
|
|
|
and cast(a.application_date as date) <![CDATA[ <= ]]> cast(#{params.applicationEndDate} as date) |
|
|
|
|
|
</if> |
|
|
<if test="params.testerLike != null and params.testerLike != ''"> |
|
|
<if test="params.testerLike != null and params.testerLike != ''"> |
|
|
and (';' + isnull(replace(a.tester, ',', ';'), '') + ';') like ('%;' + #{params.testerLike} + ';%') |
|
|
and (';' + isnull(replace(a.tester, ',', ';'), '') + ';') like ('%;' + #{params.testerLike} + ';%') |
|
|
</if> |
|
|
</if> |
|
|
@ -282,6 +298,14 @@ |
|
|
<if test="params.applicant != null and params.applicant != ''"> |
|
|
<if test="params.applicant != null and params.applicant != ''"> |
|
|
and a.applicant like #{params.applicant} |
|
|
and a.applicant like #{params.applicant} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="params.applicationStartDate != null and params.applicationStartDate != ''"> |
|
|
|
|
|
and a.application_date is not null |
|
|
|
|
|
and cast(a.application_date as date) <![CDATA[ >= ]]> cast(#{params.applicationStartDate} as date) |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="params.applicationEndDate != null and params.applicationEndDate != ''"> |
|
|
|
|
|
and a.application_date is not null |
|
|
|
|
|
and cast(a.application_date as date) <![CDATA[ <= ]]> cast(#{params.applicationEndDate} as date) |
|
|
|
|
|
</if> |
|
|
<if test="params.testerLike != null and params.testerLike != ''"> |
|
|
<if test="params.testerLike != null and params.testerLike != ''"> |
|
|
and (';' + isnull(replace(a.tester, ',', ';'), '') + ';') like ('%;' + #{params.testerLike} + ';%') |
|
|
and (';' + isnull(replace(a.tester, ',', ';'), '') + ';') like ('%;' + #{params.testerLike} + ';%') |
|
|
</if> |
|
|
</if> |
|
|
|