|
|
|
@ -44,10 +44,10 @@ |
|
|
|
<where> |
|
|
|
AND order_no = #{orderNo} |
|
|
|
|
|
|
|
</where> |
|
|
|
<if test="site != null and site != ''"> |
|
|
|
and site=#{site} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</update> |
|
|
|
<select id="getInspectBoard" resultType="com.heai.modules.production.entity.SOOPInspectData"> |
|
|
|
select a.site,a.TransNo,a.TransDate,B.OrderNo,b.PartNo,b.TransQty,b.seqNo,dbo.Get_Part_SpecDesc(a.site,b.PartNo) partDescSpec,a.ToTypeFlag,isnull(c.S_ShiftNo,'白班') shiftNo |
|
|
|
@ -176,4 +176,42 @@ |
|
|
|
select InspectionType_DB,Site,DefectCode,InspectionType,DefectDesc,Active,WorkCenterNo,InspectQty |
|
|
|
from InspectionDefectCode where InspectionType_DB='PQ' |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getOrderView" resultType="OrderViewData"> |
|
|
|
SELECT a.OrderNo,dbo.Get_Part_Spec(a.site,a.PartNo) partSpec, |
|
|
|
Round(isnull(dbo.Get_orderView_liuhuaReport(a.site,a.OrderNo),0),3) as liuhuaReport , |
|
|
|
Round(isnull(dbo.Get_orderView_liuhuaFinish(a.site,a.OrderNo),0),3) as liuhuaFinish , |
|
|
|
Round(isnull(dbo.Get_orderView_routeReport(a.site,a.OrderNo,'修边'),0),3) as xiubianReport, |
|
|
|
Round(isnull(dbo.Get_orderView_routeReport(a.site,a.OrderNo,'烘烤'),0),3) as hongkaoReport, |
|
|
|
Round(isnull(dbo.Get_orderView_routeReport(a.site,a.OrderNo,'检验'),0),3) as jianyanReport, |
|
|
|
Round(isnull(dbo.Get_orderView_routeReport(a.site,a.OrderNo,'包装'),0),3) as baozhuangReport, |
|
|
|
Round(FinishedQty,3) FinishedQty , |
|
|
|
LotSize |
|
|
|
FROM ShopOrder a |
|
|
|
<where> |
|
|
|
AND a.PartNo like 'FP%' |
|
|
|
AND a.status != '已取消' and a.status != '已计划' |
|
|
|
<if test="partNo != null and partNo != ''"> |
|
|
|
and a.partNo like #{partNo} |
|
|
|
</if> |
|
|
|
<if test="site != null and site != ''"> |
|
|
|
and site=#{site} |
|
|
|
</if> |
|
|
|
<if test="orderNo != null and orderNo != ''"> |
|
|
|
and a.orderNo=#{orderNo} |
|
|
|
</if> |
|
|
|
<if test="closedFlag != null and closedFlag != ''"> |
|
|
|
and a.status != '已关闭' |
|
|
|
</if> |
|
|
|
<if test="partSpec != null and partSpec != ''"> |
|
|
|
and dbo.Get_Part_Spec(a.site,a.PartNo) like #{partSpec} |
|
|
|
</if> |
|
|
|
<if test="startDate != null "> |
|
|
|
AND a.EnterDate >= #{startDate} |
|
|
|
</if> |
|
|
|
<if test="endDate != null "> |
|
|
|
AND #{endDate} >= DATEADD(dd, -1, a.EnterDate) |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
</mapper> |