|
|
@ -879,8 +879,8 @@ namespace QMAPP.FJC.DAL.ProductionPlan |
|
|
|
sql.AppendFormat(" LEFT JOIN [T_PP_ORDERPLAN] AS P "); |
|
|
|
sql.AppendFormat(" ON P.[PID]=W.[ORDERPLANID] "); |
|
|
|
sql.AppendFormat(" LEFT JOIN [T_MD_MATERIAL] AS M "); |
|
|
|
sql.AppendFormat(" ON W.[MATERIAL_CODE]=M.[MATERIAL_CODE] "); |
|
|
|
sql.AppendFormat(" WHERE W.[PID]=@orderplan_pid "); |
|
|
|
sql.AppendFormat(" ON W.[MATERIAL_CODE]=M.[MATERIAL_CODE] WHERE 1 = 1"); |
|
|
|
sql.AppendFormat(" and W.[PID]=@orderplan_pid "); |
|
|
|
|
|
|
|
sql.AppendLine(" AND W.[STATE]<>'4' "); |
|
|
|
sql.AppendFormat(" ORDER BY W.[PRI],W.[PLAN_DATE],P.PLAN_SEQ,W.[SEQ],W.[MATERIAL_CODE] "); |
|
|
|