|
|
@ -280,11 +280,8 @@ |
|
|
and trd.trans_no like #{query.typeFlag} + '%' |
|
|
and trd.trans_no like #{query.typeFlag} + '%' |
|
|
</otherwise> |
|
|
</otherwise> |
|
|
</choose> |
|
|
</choose> |
|
|
<if test = "query.toolId != null and query.toolId != ''"> |
|
|
|
|
|
AND td.tool_id LIKE '%' + #{query.toolId}+'%' |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test = "query.toolInstanceId != null and query.toolInstanceId != ''"> |
|
|
<if test = "query.toolInstanceId != null and query.toolInstanceId != ''"> |
|
|
AND trd.tool_instance_id LIKE '%' + #{query.toolInstanceId}+'%' |
|
|
|
|
|
|
|
|
AND trd.tool_instance_id = #{query.toolInstanceId} |
|
|
</if> |
|
|
</if> |
|
|
<if test = "query.locationId != null and query.locationId != ''"> |
|
|
<if test = "query.locationId != null and query.locationId != ''"> |
|
|
AND trd.location_id LIKE '%' + #{query.locationId}+'%' |
|
|
AND trd.location_id LIKE '%' + #{query.locationId}+'%' |
|
|
@ -325,11 +322,8 @@ |
|
|
and trd.trans_no like #{query.typeFlag} + '%' |
|
|
and trd.trans_no like #{query.typeFlag} + '%' |
|
|
</otherwise> |
|
|
</otherwise> |
|
|
</choose> |
|
|
</choose> |
|
|
<if test = "query.toolId != null and query.toolId != ''"> |
|
|
|
|
|
AND td.tool_id LIKE '%' + #{query.toolId}+'%' |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test = "query.toolInstanceId != null and query.toolInstanceId != ''"> |
|
|
<if test = "query.toolInstanceId != null and query.toolInstanceId != ''"> |
|
|
AND trd.tool_instance_id LIKE '%' + #{query.toolInstanceId}+'%' |
|
|
|
|
|
|
|
|
AND trd.tool_instance_id = #{query.toolInstanceId} |
|
|
</if> |
|
|
</if> |
|
|
<if test = "query.locationId != null and query.locationId != ''"> |
|
|
<if test = "query.locationId != null and query.locationId != ''"> |
|
|
AND trd.locationId LIKE '%' + #{query.locationId}+'%' |
|
|
AND trd.locationId LIKE '%' + #{query.locationId}+'%' |
|
|
@ -369,11 +363,8 @@ |
|
|
and trd.trans_no like #{query.typeFlag} + '%' |
|
|
and trd.trans_no like #{query.typeFlag} + '%' |
|
|
</otherwise> |
|
|
</otherwise> |
|
|
</choose> |
|
|
</choose> |
|
|
<if test = "query.toolId != null and query.toolId != ''"> |
|
|
|
|
|
AND td.tool_id LIKE '%' + #{query.toolId}+'%' |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test = "query.toolInstanceId != null and query.toolInstanceId != ''"> |
|
|
<if test = "query.toolInstanceId != null and query.toolInstanceId != ''"> |
|
|
AND trd.tool_instance_id LIKE '%' + #{query.toolInstanceId}+'%' |
|
|
|
|
|
|
|
|
AND trd.tool_instance_id = #{query.toolInstanceId} |
|
|
</if> |
|
|
</if> |
|
|
<if test = "query.locationId != null and query.locationId != ''"> |
|
|
<if test = "query.locationId != null and query.locationId != ''"> |
|
|
AND trd.locationId LIKE '%' + #{query.locationId}+'%' |
|
|
AND trd.locationId LIKE '%' + #{query.locationId}+'%' |
|
|
@ -414,11 +405,8 @@ |
|
|
and trd.trans_no like #{query.typeFlag} + '%' |
|
|
and trd.trans_no like #{query.typeFlag} + '%' |
|
|
</otherwise> |
|
|
</otherwise> |
|
|
</choose> |
|
|
</choose> |
|
|
<if test = "query.toolId != null and query.toolId != ''"> |
|
|
|
|
|
AND td.tool_id LIKE '%' + #{query.toolId}+'%' |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test = "query.toolInstanceId != null and query.toolInstanceId != ''"> |
|
|
<if test = "query.toolInstanceId != null and query.toolInstanceId != ''"> |
|
|
AND trd.tool_instance_id LIKE '%' + #{query.toolInstanceId}+'%' |
|
|
|
|
|
|
|
|
AND trd.tool_instance_id = #{query.toolInstanceId} |
|
|
</if> |
|
|
</if> |
|
|
<if test = "query.locationId != null and query.locationId != ''"> |
|
|
<if test = "query.locationId != null and query.locationId != ''"> |
|
|
AND trd.locationId LIKE '%' + #{query.locationId}+'%' |
|
|
AND trd.locationId LIKE '%' + #{query.locationId}+'%' |
|
|
@ -459,11 +447,8 @@ |
|
|
and trd.trans_no like #{query.typeFlag} + '%' |
|
|
and trd.trans_no like #{query.typeFlag} + '%' |
|
|
</otherwise> |
|
|
</otherwise> |
|
|
</choose> |
|
|
</choose> |
|
|
<if test = "query.toolId != null and query.toolId != ''"> |
|
|
|
|
|
AND td.tool_id LIKE '%' + #{query.toolId}+'%' |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test = "query.toolInstanceId != null and query.toolInstanceId != ''"> |
|
|
<if test = "query.toolInstanceId != null and query.toolInstanceId != ''"> |
|
|
AND trd.tool_instance_id LIKE '%' + #{query.toolInstanceId}+'%' |
|
|
|
|
|
|
|
|
AND trd.tool_instance_id = #{query.toolInstanceId} |
|
|
</if> |
|
|
</if> |
|
|
<if test = "query.locationId != null and query.locationId != ''"> |
|
|
<if test = "query.locationId != null and query.locationId != ''"> |
|
|
AND trd.location_id LIKE '%' + #{query.locationId}+'%' |
|
|
AND trd.location_id LIKE '%' + #{query.locationId}+'%' |
|
|
|