|
|
@ -106,8 +106,19 @@ |
|
|
<select id="searchToolApplyDetail" resultType="PlmProjectToolApplyDetailData"> |
|
|
<select id="searchToolApplyDetail" resultType="PlmProjectToolApplyDetailData"> |
|
|
select a.site,a.apply_no,a.seqNo,a.tool_id,a.standard_cost,a.applyQty,a.remark,a.orderRef1,a.orderRef2,a.orderRef3,a.orderRef4, |
|
|
select a.site,a.apply_no,a.seqNo,a.tool_id,a.standard_cost,a.applyQty,a.remark,a.orderRef1,a.orderRef2,a.orderRef3,a.orderRef4, |
|
|
a.orderRef5,dbo.plm_get_toolDesc(a.site,a.tool_id) toolDesc,a.orderRef6,b.operation_no,b.operation_name |
|
|
a.orderRef5,dbo.plm_get_toolDesc(a.site,a.tool_id) toolDesc,a.orderRef6,b.operation_no,b.operation_name |
|
|
from plm_project_tool_applyDetail a left join plm_routing_component b on a.orderRef1=b.site and a.orderRef6=convert(varchar(20),b.operation_id) |
|
|
|
|
|
where a.site=#{site} and a.apply_no=#{applyNo} order by seqNo |
|
|
|
|
|
|
|
|
from plm_project_tool_applyDetail a left join plm_routing_component b on a.site=b.site and a.orderRef6=convert(varchar(20),b.operation_id) |
|
|
|
|
|
<where> |
|
|
|
|
|
<if test="site != null and site != ''"> |
|
|
|
|
|
AND a.site = #{site} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="applyNo != null and applyNo != ''"> |
|
|
|
|
|
AND a.apply_no = #{applyNo} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="orderRef1 != null and orderRef1 != ''"> |
|
|
|
|
|
AND a.orderRef1 = #{orderRef1} |
|
|
|
|
|
</if> |
|
|
|
|
|
</where> |
|
|
|
|
|
order by a.apply_no, a.seqNo |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="checkToolApplyHeaderData" resultType="PlmProjectToolApplyHeaderData"> |
|
|
<select id="checkToolApplyHeaderData" resultType="PlmProjectToolApplyHeaderData"> |
|
|
|