LgHmpSql001.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Core.LgMes.Client.lgServiceMgt.LgSqlCollection.LgRes.LgHmpSql
  6. {
  7. public class LgHmpSql001
  8. {
  9. /// <summary>
  10. /// 返回脱硫实绩Sql
  11. /// </summary>
  12. /// <param name="sqlWhere"></param>
  13. /// <returns></returns>
  14. public static string returnSqlOfStl_Hmp_Optinfo(string sqlWhere)
  15. {
  16. string sqlStr = "";
  17. sqlStr = "select * from stl_hmp_optinfo a where 1 = 1{0}";
  18. sqlStr += " union all select * from j#stl_hmp_optinfo a where 1 = 1 {0}";
  19. sqlStr = string.Format(sqlStr, sqlWhere);
  20. return sqlStr;
  21. }
  22. /// <summary>
  23. /// 返回脱硫操作表中数据
  24. /// </summary>
  25. /// <param name="sqlWhere"></param>
  26. /// <returns></returns>
  27. public static string returnSqlOfStl_Hmp_Optinfo_Working(string sqlWhere)
  28. {
  29. string sqlStr = "";
  30. sqlStr = "select * from stl_hmp_optinfo a where 1 = 1 {0} ";
  31. sqlStr = string.Format(sqlStr, sqlWhere);
  32. return sqlStr;
  33. }
  34. }
  35. }