S订单排除

main
sunhao 3 months ago
parent ff04004c84
commit 92527368b9

@ -30,9 +30,10 @@ namespace SlabHandle
public class SlabWidThkService_test
{
private static readonly ILog logger = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private static string slab = " AND SLAB_NO in ('2430657804') ";
private static string boi = " boi.ORD_NO || '-' || boi.ORD_ITEM in ('OM824070105-030','OM824070105-035')";
private static string lack_num = ",'4'AS SUB_LACK_NUM,'4'AS LACK_NUM";
private static string slab = " AND SLAB_NO in ('2420957304') ";
private static string boi = " boi.ORD_NO || '-' || boi.ORD_ITEM in ('OM424110002-007')";
private static string lack_num = ",'1'AS SUB_LACK_NUM,'1'AS LACK_NUM";
private static string wgt_max = ",'200' AS WGT_MAX ";
private static string wgt_min = ",'150' AS WGT_MIN ";
#region 获取数据

@ -366,7 +366,7 @@ namespace SlabHandle
strSql.AppendLine(" AND boi.PROD_CD = 'PP' ");
strSql.AppendLine("AND boi.REC_STS = '2' ");
strSql.AppendLine("and boi.ORD_STS IN('E','D') ");
strSql.AppendLine(" AND (boi.ord_knd ='A' OR (boi.ord_knd ='T' AND ((SELECT COUNT(*) FROM NISCO.BP_ODER_XY BOXY WHERE BOXY.ORDER_NO=BOI.ORD_NO AND BOXY.ORDER_ITEM=BOI.ORD_ITEM )>0) or boi.ord_no in('OMH23040079','OMH23040083') or boi.ord_no like 'OM6%' )) ");
strSql.AppendLine(" AND (boi.ord_knd ='A' OR (boi.ord_knd ='T' AND ((SELECT COUNT(*) FROM NISCO.BP_ODER_XY BOXY WHERE BOXY.ORDER_NO=BOI.ORD_NO AND BOXY.ORDER_ITEM=BOI.ORD_ITEM )>0) or boi.ord_no in('OMH23040079','OMH23040083') or (boi.ord_no like 'OM6%' AND boi.ord_knd ='T') )) ");
strSql.AppendLine("AND boi.CFM_MILL_PLT='C2'");
strSql.AppendLine("AND (boi.CUST_DEL_TO_DATE>= to_char(sysdate-183,'YYYYMMDD') OR BOI.ORD_NO LIKE 'OMA%' )");
strSql.AppendLine("AND boi.STDSPEC NOT LIKE '%-KP'");

Loading…
Cancel
Save