fyw 2 years ago
parent
commit
2babfb1a7b
  1. 9
      NFine.Application/SRM/WatchPanelApp.cs

9
NFine.Application/SRM/WatchPanelApp.cs

@ -1208,7 +1208,9 @@ ORDER BY 销售车号,物料编码,报工人
where moth = CONVERT(CHAR(10),DATEADD(month,0,DATEADD(dd,-DAY(GETDATE())+1,GETDATE())),120) )a
left join (
select isnull(realsaleout,0) from ICSZXBoardSaleout
where id = '1') b on 1=1";
where id = '1') b on 1=1
left join ( select isnull(realsaleout,0) from ICSZXBoardSaleout
where id = '2') on 1=1 ";
DataTable dt = Repository().GetDataTableBySql_Other(SqlText, "MESconnstr", null);
return dt;
}
@ -1314,9 +1316,12 @@ ORDER BY 销售车号,物料编码,报工人
select count(*) from #tempNum t where t.wipnum = t.monum and t.EndTime between
CONVERT(CHAR(10),DATEADD(month,-2,DATEADD(dd,-DAY(GETDATE())+1,GETDATE())),120)
and CONVERT(CHAR(10),DATEADD(month,-1,DATEADD(dd,-DAY(GETDATE())+1,GETDATE())),120)) d on 1=1
left join (
select count(*) from #tempNum t where t.wipnum = t.monum and t.EndTime >=
CONVERT(CHAR(10),DATEADD(month,-MONTH(GETDATE())+1,DATEADD(dd,-DAY(GETDATE())+1,GETDATE())),120)) e on 1=1
select isnull(,'0') , isnull(,'0') ,
isnull(,'0') , isnull(,'0') ,
isnull(,'0') , isnull(,'0') ,isnull(,'0') ,
--case when isnull(,0) = 0 then 0 else
--convert(decimal(10,2),isnull(,0))*1.0/isnull(convert(decimal(10,2),case when = 0 then 1 else end),1) end ,
--case when isnull(,0) = 0 then 0 else

Loading…
Cancel
Save