|
|
|
@ -52,14 +52,14 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getScheduleListData" resultType="com.letian.modules.base.entity.ScheduleListBoardData"> |
|
|
|
SELECT SR.S_ResourceID as resourceId,WR.ResourceDesc,SO.PartNo,dbo.Get_PartDesc(SR.site,SO.partNo) as partDesc, |
|
|
|
Round(SUM(SR.QtyRequired),0) as QtyRequired,Round(SUM(SR.QtyApprove),0) as QtyApprove,Round(SUM(SR.QtyReported),0) as QtyReported |
|
|
|
FROM SOScheduledRouting SR |
|
|
|
LEFT JOIN WorkCenterResource WR on SR.Site=WR.Site and WR.ResourceID=SR.S_ResourceID |
|
|
|
LEFT JOIN ShopOrder SO on SR.OrderNo=SO.OrderNo and SR.Site=SO.Site |
|
|
|
where SR.S_ScheduledDate=#{date} |
|
|
|
GROUP BY SR.S_ResourceID,SO.PartNo,dbo.Get_PartDesc(SR.site,SO.partNo),WR.ResourceDesc |
|
|
|
ORDER BY SR.S_ResourceID |
|
|
|
SELECT SR.S_ResourceID as resourceId,WR.ResourceDesc,SO.PartNo,dbo.Get_PartDesc(SR.site,SO.partNo) as partDesc, |
|
|
|
Round(SUM(SR.QtyRequired),0) as QtyRequired,Round(SUM(SR.QtyApprove),0) as QtyApprove,Round(SUM(SR.QtyReported),0) as QtyReported |
|
|
|
FROM SOScheduledRouting SR |
|
|
|
LEFT JOIN WorkCenterResource WR on SR.Site=WR.Site and WR.ResourceID=SR.S_ResourceID |
|
|
|
LEFT JOIN ShopOrder SO on SR.OrderNo=SO.OrderNo and SR.Site=SO.Site |
|
|
|
where SR.S_ScheduledDate=#{date} |
|
|
|
GROUP BY SR.S_ResourceID,SO.PartNo,dbo.Get_PartDesc(SR.site,SO.partNo),WR.ResourceDesc |
|
|
|
ORDER BY SR.S_ResourceID |
|
|
|
|
|
|
|
</select> |
|
|
|
</mapper> |