|
|
@ -65,7 +65,7 @@ |
|
|
AND EnterDate >= #{date1} |
|
|
AND EnterDate >= #{date1} |
|
|
</if> |
|
|
</if> |
|
|
<if test=" date2 != null "> |
|
|
<if test=" date2 != null "> |
|
|
AND #{date2} >= EnterDate |
|
|
|
|
|
|
|
|
AND dateadd( DAY, 1, #{date2} ) > EnterDate |
|
|
</if> |
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
@ -167,19 +167,19 @@ |
|
|
AND D.EnterDate >= #{date1} |
|
|
AND D.EnterDate >= #{date1} |
|
|
</if> |
|
|
</if> |
|
|
<if test=" date2 != null "> |
|
|
<if test=" date2 != null "> |
|
|
AND #{date2} >= D.EnterDate |
|
|
|
|
|
|
|
|
AND dateadd( DAY, 1, #{date2} ) > D.EnterDate |
|
|
</if> |
|
|
</if> |
|
|
<if test=" date3 != null "> |
|
|
<if test=" date3 != null "> |
|
|
AND T.PlanStartTime >= #{date3} |
|
|
AND T.PlanStartTime >= #{date3} |
|
|
</if> |
|
|
</if> |
|
|
<if test=" date4 != null "> |
|
|
<if test=" date4 != null "> |
|
|
AND #{date4} >= T.PlanStartTime |
|
|
|
|
|
|
|
|
AND dateadd( DAY, 1, #{date4} ) > T.PlanStartTime |
|
|
</if> |
|
|
</if> |
|
|
<if test=" date5 != null "> |
|
|
<if test=" date5 != null "> |
|
|
AND T.PlanFinishTime>= #{date5} |
|
|
AND T.PlanFinishTime>= #{date5} |
|
|
</if> |
|
|
</if> |
|
|
<if test=" date6 != null "> |
|
|
<if test=" date6 != null "> |
|
|
AND #{date6} >= T.PlanFinishTime |
|
|
|
|
|
|
|
|
AND dateadd( DAY, 1, #{date6} ) > T.PlanFinishTime |
|
|
</if> |
|
|
</if> |
|
|
${sql} |
|
|
${sql} |
|
|
</where> |
|
|
</where> |
|
|
@ -238,13 +238,13 @@ |
|
|
AND T.EnterDate >= #{date1} |
|
|
AND T.EnterDate >= #{date1} |
|
|
</if> |
|
|
</if> |
|
|
<if test=" date2 != null "> |
|
|
<if test=" date2 != null "> |
|
|
AND #{date2} >= T.EnterDate |
|
|
|
|
|
|
|
|
AND dateadd( DAY, 1, #{date2} ) > T.EnterDate |
|
|
</if> |
|
|
</if> |
|
|
<if test=" date3 != null "> |
|
|
<if test=" date3 != null "> |
|
|
AND T.PlanStartTime >= #{date3} |
|
|
AND T.PlanStartTime >= #{date3} |
|
|
</if> |
|
|
</if> |
|
|
<if test=" date4 != null "> |
|
|
<if test=" date4 != null "> |
|
|
AND #{date4} >= T.PlanStartTime |
|
|
|
|
|
|
|
|
AND dateadd( DAY, 1, #{date4} ) > T.PlanStartTime |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
|
|
|
</where> |
|
|
</where> |
|
|
@ -284,13 +284,13 @@ |
|
|
AND T.NeedDate >= #{date1} |
|
|
AND T.NeedDate >= #{date1} |
|
|
</if> |
|
|
</if> |
|
|
<if test=" date2 != null "> |
|
|
<if test=" date2 != null "> |
|
|
AND #{date2} >= T.NeedDate |
|
|
|
|
|
|
|
|
AND dateadd( DAY, 1, #{date2} ) > T.NeedDate |
|
|
</if> |
|
|
</if> |
|
|
<if test=" date3 != null "> |
|
|
<if test=" date3 != null "> |
|
|
AND T.PlanStartDate >= #{date3} |
|
|
AND T.PlanStartDate >= #{date3} |
|
|
</if> |
|
|
</if> |
|
|
<if test=" date4 != null "> |
|
|
<if test=" date4 != null "> |
|
|
AND #{date4} >= T.PlanStartDate |
|
|
|
|
|
|
|
|
AND dateadd( DAY, 1, #{date4} ) > T.PlanStartDate |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
|
|
|
</where> |
|
|
</where> |
|
|
@ -312,6 +312,7 @@ |
|
|
,R.ActionNotes,W.WorkCenterType,dbo.Get_SORoutingAvailResource(R.Site,R.OrderNo,R.WorkCenterNo,R.ItemNo) as AvailResource |
|
|
,R.ActionNotes,W.WorkCenterType,dbo.Get_SORoutingAvailResource(R.Site,R.OrderNo,R.WorkCenterNo,R.ItemNo) as AvailResource |
|
|
from SORouting as R,WorkCenter as W Where R.Site=W.Site and R.WorkCenterNo=W.WorkCenterNo and R.Site=#{site} |
|
|
from SORouting as R,WorkCenter as W Where R.Site=W.Site and R.WorkCenterNo=W.WorkCenterNo and R.Site=#{site} |
|
|
and R.OrderNo=#{orderNo} |
|
|
and R.OrderNo=#{orderNo} |
|
|
|
|
|
order by R.ItemNo |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="getToolInShopOrder" resultType="com.gaotao.modules.shopOrder.entity.ToolInShopOrder"> |
|
|
<select id="getToolInShopOrder" resultType="com.gaotao.modules.shopOrder.entity.ToolInShopOrder"> |
|
|
@ -323,7 +324,7 @@ |
|
|
Where T.Site=P.Site and T.ToolID=P.ToolID |
|
|
Where T.Site=P.Site and T.ToolID=P.ToolID |
|
|
and T.Site=#{site} |
|
|
and T.Site=#{site} |
|
|
and T.OrderNo=#{orderNo} |
|
|
and T.OrderNo=#{orderNo} |
|
|
Order by T.ToolID |
|
|
|
|
|
|
|
|
Order by ItemNo,T.ToolID |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="getProductMixInShopOrder" resultType="com.gaotao.modules.shopOrder.entity.ProductMixInShopOrder"> |
|
|
<select id="getProductMixInShopOrder" resultType="com.gaotao.modules.shopOrder.entity.ProductMixInShopOrder"> |
|
|
|