|
|
|
@ -45,7 +45,7 @@ namespace Mesnac.Action.ChemicalWeighing.Report.ProductionReport
|
|
|
|
|
// case when IsRetransmission=0 then '是' when IsRetransmission=1 then '否' when IsRetransmission is null then '否' end as IsRetransmission,
|
|
|
|
|
//(CASE WHEN p.End_Date IS NULL THEN GETDATE() ELSE p.End_Date END) End_Date
|
|
|
|
|
// from xl_plan p left join xl_recipe r on p.Recipe_ID=r.ID Left Join Pmt_ShifTime B On(p.Shift_Id = B.Shift_ID)) t WHERE 1=1");
|
|
|
|
|
sb.AppendLine(@" select * from (select p.Plan_Id,p.Recipe_ID,p.Recipe_Name,p.Version,p.Plan_StateText,p.Plan_Num,p.Real_Num,p.Start_Date,p.Weight_Man,r.Total_Weight,Plan_TotalWeight,Total_Error,Plan_TotalError,
|
|
|
|
|
sb.AppendLine(@" select * from (select p.Batch,p.ProductName, p.Plan_Id,p.Recipe_ID,p.Recipe_Name,p.Version,p.Plan_StateText,p.Plan_Num,p.Real_Num,p.Start_Date,p.Weight_Man,r.Total_Weight,Plan_TotalWeight,Total_Error,Plan_TotalError,
|
|
|
|
|
case when IsRetransmission=0 then '是' when IsRetransmission=1 then '否' when IsRetransmission is null then '否' end as IsRetransmission,
|
|
|
|
|
(CASE WHEN p.End_Date IS NULL THEN GETDATE() ELSE p.End_Date END) End_Date
|
|
|
|
|
from xl_plan p left join xl_recipe r on p.Recipe_ID=r.ID) t WHERE 1=1");
|
|
|
|
|