|
|
@ -243,7 +243,9 @@ |
|
|
<select id="getSfdcList" resultType="com.jianteng.modules.Schedule.entity.SfdcCancel"> |
|
|
<select id="getSfdcList" resultType="com.jianteng.modules.Schedule.entity.SfdcCancel"> |
|
|
select a.site,a.OrderNo,a.ItemNo ,a.SeqNo,a.WorkCenterNo,a.ReportDate,a.OperatorID,a.ReportQty,a.ApproveQty,a.ReportedManfTime,a.StatisticDate, |
|
|
select a.site,a.OrderNo,a.ItemNo ,a.SeqNo,a.WorkCenterNo,a.ReportDate,a.OperatorID,a.ReportQty,a.ApproveQty,a.ReportedManfTime,a.StatisticDate, |
|
|
a.AssJobSeqNo,a.Scheduled_ResourceId ResourceID,b.S_ShiftNo ShiftNo,b.partNo,dbo.Get_ItemDesc(a.site,a.OrderNo,a.ItemNo) operation_desc,c.OperatorName,b.S_ShiftNo ShiftDesc,e.ResourceDesc,Reverseflag |
|
|
a.AssJobSeqNo,a.Scheduled_ResourceId ResourceID,b.S_ShiftNo ShiftNo,b.partNo,dbo.Get_ItemDesc(a.site,a.OrderNo,a.ItemNo) operation_desc,c.OperatorName,b.S_ShiftNo ShiftDesc,e.ResourceDesc,Reverseflag |
|
|
,dbo.Get_Part_Spec(a.site,b.partNo) partSpec,dbo.Get_PartDesc(a.site,b.partNo) PartDesc |
|
|
|
|
|
|
|
|
,dbo.Get_Part_Spec(a.site,b.partNo) partSpec,dbo.Get_PartDesc(a.site,b.partNo) PartDesc,dbo.Get_ProductionLineDesc(a.Site,dbo.Get_WorkCenter_ProLineNo(a.site,a.WorkCenterNo)) lineName |
|
|
|
|
|
,Round(b.TimeRequired*a.ApproveQty/b.QtyRequired,3) as planTime |
|
|
|
|
|
|
|
|
from sfdc a LEFT JOIN SOScheduledRouting b on a.Site=b.Site and a.AssJobSeqNo=b.SeqNo |
|
|
from sfdc a LEFT JOIN SOScheduledRouting b on a.Site=b.Site and a.AssJobSeqNo=b.SeqNo |
|
|
left join Operator c on a.site=c.site and a.OperatorID=c.OperatorID |
|
|
left join Operator c on a.site=c.site and a.OperatorID=c.OperatorID |
|
|
left join WorkCenterResource e on a.Site=e.Site and a.Scheduled_ResourceId =e.ResourceID and a.WorkCenterNo=e.WorkCenterNo |
|
|
left join WorkCenterResource e on a.Site=e.Site and a.Scheduled_ResourceId =e.ResourceID and a.WorkCenterNo=e.WorkCenterNo |
|
|
@ -252,6 +254,9 @@ |
|
|
and a.AssJobSeqNo is not null |
|
|
and a.AssJobSeqNo is not null |
|
|
<if test="orderNo != null and orderNo != ''"> |
|
|
<if test="orderNo != null and orderNo != ''"> |
|
|
and a.OrderNo like #{orderNo} |
|
|
and a.OrderNo like #{orderNo} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="lineName != null and lineName != ''"> |
|
|
|
|
|
and dbo.Get_ProductionLineDesc(a.Site,dbo.Get_WorkCenter_ProLineNo(a.site,a.WorkCenterNo)) like #{lineName} |
|
|
</if> |
|
|
</if> |
|
|
<if test="workCenterNo != null and workCenterNo != ''"> |
|
|
<if test="workCenterNo != null and workCenterNo != ''"> |
|
|
and a.WorkCenterNo like #{workCenterNo} |
|
|
and a.WorkCenterNo like #{workCenterNo} |
|
|
@ -454,7 +459,7 @@ Freezeflag,QtyTmp,ManufactureDate,ExpiredDate,QtytoIssue,DemandPartnerType,Deman |
|
|
Select InspectionType_DB,DefectCode,InspectionType,DefectDesc,Active,Site,GroupInfo from InspectionDefectCode |
|
|
Select InspectionType_DB,DefectCode,InspectionType,DefectDesc,Active,Site,GroupInfo from InspectionDefectCode |
|
|
Where Site=#{site} |
|
|
Where Site=#{site} |
|
|
and InspectionType_DB='PQ' |
|
|
and InspectionType_DB='PQ' |
|
|
and (GroupInfo='*' or GroupInfo=#{workCenterNo}) |
|
|
|
|
|
|
|
|
and (GroupInfo='*' or GroupInfo like '%' + #{workCenterNo}+'%') |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="saveSFDCDefectHist" > |
|
|
<select id="saveSFDCDefectHist" > |
|
|
|