|
|
@ -615,4 +615,16 @@
|
|
|
|
AND OPERATION = #{operation}
|
|
|
|
AND OPERATION = #{operation}
|
|
|
|
AND CURRENT_REVISION = 'true'
|
|
|
|
AND CURRENT_REVISION = 'true'
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectOperationStep" resultMap="BaseResultMap">
|
|
|
|
|
|
|
|
SELECT DISTINCT O.OPERATION,RS.STEP_ID,OT.DESCRIPTION
|
|
|
|
|
|
|
|
FROM OPERATION O
|
|
|
|
|
|
|
|
LEFT JOIN OPERATION_T OT ON O.HANDLE = OT.OPERATION_BO AND OT.LOCALE = #{locale}
|
|
|
|
|
|
|
|
INNER JOIN ROUTER_OPERATION RO ON (RO.OPERATION_BO = O.HANDLE or 'OperationBO:'|| O.SITE ||','|| O.OPERATION||',#'=RO.OPERATION_BO )
|
|
|
|
|
|
|
|
INNER JOIN ROUTER_STEP RS ON rs.HANDLE = RO.ROUTER_STEP_BO
|
|
|
|
|
|
|
|
where O.SITE = #{ew.entity.site}
|
|
|
|
|
|
|
|
<if test="ew.entity.operation!=null and ew.entity.operation!='' " >
|
|
|
|
|
|
|
|
AND (O.OPERATION LIKE '%${ew.entity.operation}%' OR O.REVISION LIKE '%${ew.entity.operation}%' OR OT.DESCRIPTION LIKE '%${ew.entity.operation}%')
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
ORDER BY RS.STEP_ID
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|