You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

123 lines
3.1 KiB

  1. using Learun.Util;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace Learun.Application.Extention.TaskScheduling
  5. {
  6. /// <summary>
  7. /// 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架
  8. /// Copyright (c) 2013-2018 上海力软信息技术有限公司
  9. /// 创 建:超级管理员
  10. /// 日 期:2019-01-09 16:07
  11. /// 描 述:任务执行日志
  12. /// </summary>
  13. public class TSLogBLL : TSLogIBLL
  14. {
  15. private TSLogService logService = new TSLogService();
  16. #region 获取数据
  17. /// <summary>
  18. /// 获取页面显示列表数据
  19. /// <summary>
  20. /// <param name="queryJson">查询参数</param>
  21. /// <returns></returns>
  22. public IEnumerable<TSLogEntity> GetPageList(Pagination pagination, string queryJson)
  23. {
  24. try
  25. {
  26. return logService.GetPageList(pagination, queryJson);
  27. }
  28. catch (Exception ex)
  29. {
  30. if (ex is ExceptionEx)
  31. {
  32. throw;
  33. }
  34. else
  35. {
  36. throw ExceptionEx.ThrowBusinessException(ex);
  37. }
  38. }
  39. }
  40. /// <summary>
  41. /// 获取LR_TS_Log表实体数据
  42. /// <param name="keyValue">主键</param>
  43. /// <summary>
  44. /// <returns></returns>
  45. public TSLogEntity GetLogEntity(string keyValue)
  46. {
  47. try
  48. {
  49. return logService.GetLogEntity(keyValue);
  50. }
  51. catch (Exception ex)
  52. {
  53. if (ex is ExceptionEx)
  54. {
  55. throw;
  56. }
  57. else
  58. {
  59. throw ExceptionEx.ThrowBusinessException(ex);
  60. }
  61. }
  62. }
  63. #endregion
  64. #region 提交数据
  65. /// <summary>
  66. /// 删除实体数据
  67. /// <param name="keyValue">主键</param>
  68. /// <summary>
  69. /// <returns></returns>
  70. public void DeleteEntity(string keyValue)
  71. {
  72. try
  73. {
  74. logService.DeleteEntity(keyValue);
  75. }
  76. catch (Exception ex)
  77. {
  78. if (ex is ExceptionEx)
  79. {
  80. throw;
  81. }
  82. else
  83. {
  84. throw ExceptionEx.ThrowBusinessException(ex);
  85. }
  86. }
  87. }
  88. /// <summary>
  89. /// 保存实体数据(新增、修改)
  90. /// <param name="keyValue">主键</param>
  91. /// <summary>
  92. /// <returns></returns>
  93. public void SaveEntity(string keyValue, TSLogEntity entity)
  94. {
  95. try
  96. {
  97. logService.SaveEntity(keyValue, entity);
  98. }
  99. catch (Exception ex)
  100. {
  101. if (ex is ExceptionEx)
  102. {
  103. throw;
  104. }
  105. else
  106. {
  107. throw ExceptionEx.ThrowBusinessException(ex);
  108. }
  109. }
  110. }
  111. #endregion
  112. }
  113. }