|
|
|
@ -338,6 +338,12 @@ |
|
|
|
<if test="query.documentDefinitionListId != null and query.documentDefinitionListId != ''"> |
|
|
|
AND documentDefinitionListId = #{query.documentDefinitionListId} |
|
|
|
</if> |
|
|
|
<if test="query.documentTypeId != null and query.documentTypeId != ''"> |
|
|
|
AND document_type_id = #{query.documentTypeId} |
|
|
|
</if> |
|
|
|
<if test="query.documentType != null and query.documentType != ''"> |
|
|
|
AND document_type like '%' + #{query.documentType} + '%' |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
order by project_id |
|
|
|
</select> |
|
|
|
@ -462,6 +468,16 @@ |
|
|
|
AND #{query.endDate} >= build_date |
|
|
|
]]> |
|
|
|
</if> |
|
|
|
<if test="query.documentTypeId != null and query.documentTypeId != ''"> |
|
|
|
<![CDATA[ |
|
|
|
AND document_type_id = #{query.documentTypeId} |
|
|
|
]]> |
|
|
|
</if> |
|
|
|
<if test="query.documentType != null and query.documentType != ''"> |
|
|
|
<![CDATA[ |
|
|
|
AND document_type like '%' + #{query.documentType} + '%' |
|
|
|
]]> |
|
|
|
</if> |
|
|
|
<![CDATA[ |
|
|
|
ORDER BY project_id |
|
|
|
]]> |
|
|
|
@ -544,6 +560,12 @@ |
|
|
|
<if test="query.endDate != null "> |
|
|
|
AND #{query.endDate} >= build_date |
|
|
|
</if> |
|
|
|
<if test="query.documentTypeId != null and query.documentTypeId != ''"> |
|
|
|
AND document_type_id = #{query.documentTypeId} |
|
|
|
</if> |
|
|
|
<if test="query.documentType != null and query.documentType != ''"> |
|
|
|
AND document_type like '%' + #{query.documentType} + '%' |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
order by project_id |
|
|
|
</select> |
|
|
|
|