@ -235,8 +235,8 @@
update SOScheduledRouting set FirstWorkDate=GetDate() where SeqNo =#{seqNo} and FirstWorkDate is null
update SOScheduledRouting set FirstWorkDate=GetDate() where SeqNo =#{seqNo} and FirstWorkDate is null
</update>
</update>
<select id= "searchDefectHistByReport" resultType= "com.jianteng.modules.base.entity.SfdcDefectHistData" >
<select id= "searchDefectHistByReport" resultType= "com.jianteng.modules.base.entity.SfdcDefectHistData" >
select a.Site,a.OrderNo,a.ItemNo,a.SeqNo,a.HistSeqNo,a.ReportDate,a.Reportedby,a. DefectCode,a.DefectQty,a.Remark,a.RollNo ,b.DefectDesc
from SFDC_DefectHist a left join InspectionDefectCode b on a.DefectCode=b.DefectCode and b.InspectionType_DB='PQ' and a.site=b.site where a.Site=#{site} and a.OrderNo=#{orderNo} and a.ItemNo=#{itemNo} and a.SeqNo=#{seqNo}
select a.Site,a.OrderNo,a.ItemNo,a.SeqNo,a.DefectCode,a.DefectQty,b.DefectDesc
from SFDC_Defect a left join InspectionDefectCode b on a.DefectCode=b.DefectCode and b.InspectionType_DB='PQ' and a.site=b.site where a.Site=#{site} and a.OrderNo=#{orderNo} and a.ItemNo=#{itemNo} and a.SeqNo=#{seqNo}
</select>
</select>
<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,
@ -456,10 +456,10 @@ Freezeflag,QtyTmp,ManufactureDate,ExpiredDate,QtytoIssue,DemandPartnerType,Deman
</select>
</select>
<select id= "saveSFDCDefectHist" >
<select id= "saveSFDCDefectHist" >
Insert into SFDC_DefectHist
(Site,OrderNo,ItemNo,SeqNo,HistSeqNo,ReportDate,Reportedby, DefectCode,DefectQty,Remark,RollNo )
Insert into SFDC_Defect
(Site,OrderNo,ItemNo,SeqNo,DefectCode,DefectQty)
values
values
(#{site},#{orderNo},#{itemNo},#{seqNo},#{histSeqNo},GetDate(),#{reportedby},#{ defectCode},#{defectQty},#{remark},#{rollNo })
(#{site},#{orderNo},#{itemNo},#{seqNo},#{defectCode},#{defectQty})
</select>
</select>
<select id= "getdefectList" resultType= "com.jianteng.modules.base.entity.DefectData" >
<select id= "getdefectList" resultType= "com.jianteng.modules.base.entity.DefectData" >