|
|
|
@ -9,6 +9,8 @@ |
|
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'engineer') engineer, |
|
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'technician') technician, |
|
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'quotationOfficer') quotationOfficer,c.customer_Id |
|
|
|
,a.picture_addess,a.customerPictureChangeRemark,a.productionFileComments,a.bom_type,a.eng_chg_level,a.bom_alternative_no,a.routing_type,a.routing_revision, |
|
|
|
a.routing_alternative_no |
|
|
|
FROM plm_technical_specification_sheet a |
|
|
|
left join plm_project_part b on a.site=b.site and a.project_id=b.project_id and a.test_part_no=b.test_part_no |
|
|
|
left join plm_project_info c on a.site=c.site and a.project_id=c.project_id |
|
|
|
@ -18,6 +20,9 @@ |
|
|
|
</if> |
|
|
|
<if test="query.site != null and query.site != ''"> |
|
|
|
AND a.site = #{query.site} |
|
|
|
</if> |
|
|
|
<if test="query.oriCodeNo != null and query.oriCodeNo != ''"> |
|
|
|
AND a.ori_code_no like #{query.oriCodeNo} |
|
|
|
</if> |
|
|
|
<if test="query.codeNo != null and query.codeNo != ''"> |
|
|
|
AND a.code_no like #{query.codeNo} |
|
|
|
@ -28,6 +33,9 @@ |
|
|
|
<if test="query.testPartNo != null and query.testPartNo != ''"> |
|
|
|
AND a.test_part_no like #{query.testPartNo} |
|
|
|
</if> |
|
|
|
<if test="query.statusDesc != null and query.statusDesc != ''"> |
|
|
|
AND dbo.plm_get_technicalBaseDesc(a.status,'status') like #{query.statusDesc} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
order by a.code_no desc |
|
|
|
</select> |
|
|
|
@ -59,7 +67,8 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getTechnicalCustomerInfoData" resultType="TechnicalCustomerInfoData"> |
|
|
|
select a.id,b.customer_id,c.customer_desc as customerName,c.customer_description as customerDesc ,b.customer_Remark,b.remark |
|
|
|
select a.id,b.customer_id,c.customer_desc as customerName,c.customer_description as customerDesc ,b.customer_Remark,b.remark, |
|
|
|
a.picture_addess,a.customerPictureChangeRemark,a.productionFileComments |
|
|
|
from plm_technical_specification_sheet a |
|
|
|
left join plm_project_info b on a.site=b.site and a.project_id=b.project_id |
|
|
|
left join plm_customer_information c on b.site=c.site and b.customer_id=c.customer_no where a.id=#{id} |
|
|
|
|