You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
856 B
C#
42 lines
856 B
C#
1 year ago
|
|
||
|
|
||
|
//----------SysJobLog开始----------
|
||
|
|
||
|
|
||
|
|
||
|
using System;
|
||
|
using System.Threading.Tasks;
|
||
|
using Admin.Core.IRepository;
|
||
|
using Admin.Core.IService.ISys;
|
||
|
using Admin.Core.Model.Sys;
|
||
|
|
||
|
namespace Admin.Core.Service.Sys
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Service
|
||
|
/// </summary>
|
||
|
public partial class SysJobLogService : BaseServices<SysJobLog>, ISysJobLogService
|
||
|
{
|
||
|
IBaseRepository<SysJobLog> dal;
|
||
|
public SysJobLogService(IBaseRepository<SysJobLog> dal)
|
||
|
{
|
||
|
this.dal = dal;
|
||
|
BaseDal = dal;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 清空日志
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
public async Task<bool> Clear()
|
||
|
{
|
||
|
var sql = "truncate table [SysJobLog]";
|
||
|
return await dal.ExecSqlAsync(sql) >= 0;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//----------SysJobLog结束----------
|
||
|
|