|
|
|
@ -1515,12 +1515,11 @@ step_id,reject_flag,reject_step_id,mpOperator,pod |
|
|
|
</if> |
|
|
|
<if test="customerDesc != null and customerDesc != ''"> |
|
|
|
AND ( |
|
|
|
dbo.plm_get_customer_desc(c.site, c.customer_id) like #{customerDesc} or |
|
|
|
dbo.plm_get_dictDataLabel('finalCustomer', c.final_customer_id, c.site) like #{customerDesc} |
|
|
|
) |
|
|
|
dbo.plm_get_customer_desc(c.site, c.customer_id) like #{customerDesc}) |
|
|
|
</if> |
|
|
|
<if test="statusDesc != null and statusDesc != ''"> |
|
|
|
AND dbo.plm_get_technicalBaseDesc(a.status, 'status') like #{statusDesc} |
|
|
|
<!-- AND dbo.plm_get_technicalBaseDesc(a.status, 'status') like #{statusDesc}--> |
|
|
|
and a.status = #{statusDesc} |
|
|
|
</if> |
|
|
|
<if test="buNo == null || buNo == ''"> |
|
|
|
AND b.bu_no in (select bu_No from dbo.Get_Now_BU_chooseAble(#{site}, #{userName})) |
|
|
|
@ -1598,4 +1597,50 @@ step_id,reject_flag,reject_step_id,mpOperator,pod |
|
|
|
resultType="com.spring.modules.sampleManagement.data.PlmTechnicalSpecificationSheetData"> |
|
|
|
EXEC dbo.getTechnicalSpecificationPageWithSql #{sql}, #{page}, #{limit} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryChangeLog" resultType="com.spring.modules.change.vo.ChangeRequestVo"> |
|
|
|
SELECT a.site, |
|
|
|
a.bu_no, |
|
|
|
a.change_no, |
|
|
|
a.applicant_id, |
|
|
|
dbo.get_userDisPlay(a.applicant_id) as applicantName, |
|
|
|
b.department_no as applicationDepartmentId, |
|
|
|
dbo.get_department_name(a.site, b.department_no) as applicationDepartmentName, |
|
|
|
a.apply_date, |
|
|
|
a.ecn_type, |
|
|
|
a.change_impact, |
|
|
|
a.change_impact_desc, |
|
|
|
a.ecn_stage, |
|
|
|
a.change_type, |
|
|
|
a.tp_engineer_id, |
|
|
|
dbo.get_userDisPlay(a.tp_engineer_id) as tpEngineerName, |
|
|
|
a.change_phase_in_date, |
|
|
|
a.df_is_product, |
|
|
|
a.printing, |
|
|
|
a.manufacturing_cost_is_change, |
|
|
|
a.change_request_desc, |
|
|
|
a.is_re_quote, |
|
|
|
a.ul_certification_requirements, |
|
|
|
a.ul_continue_to_meet_demand, |
|
|
|
a.gp_certification_requirements, |
|
|
|
a.gp_continue_to_meet_demand, |
|
|
|
a.create_date, |
|
|
|
a.create_by, |
|
|
|
a.update_date, |
|
|
|
a.update_by, |
|
|
|
a.industrial_engineer_id, |
|
|
|
dbo.get_userDisPlay(a.industrial_engineer_id) as industrialEngineerName, |
|
|
|
a.change_status, |
|
|
|
a.cqc_operator_id, |
|
|
|
dbo.get_userDisPlay(a.cqc_operator_id) as cqcOperatorName, |
|
|
|
a.fai_operator_id, |
|
|
|
dbo.get_userDisPlay(a.fai_operator_id) as faiOperatorName, |
|
|
|
a.step_id, |
|
|
|
a.reject_flag, |
|
|
|
a.reject_step_id |
|
|
|
FROM plm_change_request a |
|
|
|
LEFT JOIN sys_user as b on a.site = b.site and a.applicant_id = b.username |
|
|
|
left join plm_change_request_detail pcrd on a.site = pcrd.site and a.change_no = pcrd.change_no |
|
|
|
where a.site = #{site} and pcrd.code_no = #{codeNo} |
|
|
|
</select> |
|
|
|
</mapper> |