|
|
|
@ -80,7 +80,7 @@ |
|
|
|
SELECT top 1 a.id,a.site,a.code_no,a.project_id,a.test_part_no,a.status,a.rev_no,a.work_center_no,a.ECN_flag,a.ECN_no,c.bu_no, |
|
|
|
a.ECN_address,a.remark,a.create_date,a.create_by,a.update_date,a.update_by,b.final_part_no,dbo.plm_get_projectBaseDesc(b.part_type,'part_type') partTypeDesc, |
|
|
|
b.part_type,b.part_name,b.part_desc,b.part_spec,dbo.plm_get_technicalBaseDesc(a.status,'status') statusDesc,a.proofing_no, |
|
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'engineer') engineer,stage,process,remarkPage, |
|
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'engineer') engineer,stage,dbo.plm_get_dictDataLabel('bm_process',process,a.site) process,remarkPage, |
|
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'quotationOfficer') quotationOfficer,c.customer_Id,a.ori_code_no, |
|
|
|
a.cqcOperator, a.faiOperator,dbo.get_userDisPlay(a.cqcOperator) cqcOperatorName,dbo.get_userDisPlay(a.faiOperator) faiOperatorName |
|
|
|
,a.overPrintOperator, a.printOperator,dbo.get_userDisPlay(a.overPrintOperator) overPrintOperatorName,dbo.get_userDisPlay(a.printOperator) printOperatorName |
|
|
|
@ -143,6 +143,15 @@ |
|
|
|
AND a.project_id in ( select project_id from AccessProject where site=#{site} and username=#{username} and searchFlag='Y' ) |
|
|
|
<if test="proofingNo!= null and proofingNo != ''"> |
|
|
|
AND a.proofing_no like #{proofingNo} |
|
|
|
</if> |
|
|
|
<if test="projectId!= null and projectId != ''"> |
|
|
|
AND a.project_id like #{projectId} |
|
|
|
</if> |
|
|
|
<if test="customerId!= null and customerId != ''"> |
|
|
|
AND b.customer_id like #{customerId} |
|
|
|
</if> |
|
|
|
<if test="finalCustomerId!= null and finalCustomerId != ''"> |
|
|
|
AND b.final_customer_id like #{finalCustomerId} |
|
|
|
</if> |
|
|
|
and c.status = 'Y' |
|
|
|
</where> |
|
|
|
|