//----------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
{
///
/// Service
///
public partial class SysJobLogService : BaseServices, ISysJobLogService
{
IBaseRepository dal;
public SysJobLogService(IBaseRepository dal)
{
this.dal = dal;
BaseDal = dal;
}
///
/// 清空日志
///
///
public async Task Clear()
{
var sql = "truncate table [SysJobLog]";
return await dal.ExecSqlAsync(sql) >= 0;
}
}
}
//----------SysJobLog结束----------