Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csprojVoir le fichier
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Email/EmailSend/EmailSendService.csVoir le fichier
public IEnumerable<EmailSendEntity> GetTodayList(string emailAddr)
{
try
{
string sql = $@"SELECT * FROM LR_EmailSend t WHERE t.F_DeleteMark = 0 AND t.F_EnabledMark = 0 and DATEDIFF(DD,F_CreatorTime,Getdate())=0 and cast(F_To as nvarchar)='{emailAddr}' and F_Description='授权到期提醒'";
var model = this.BaseRepository("CollegeMIS").FindList<ShowAuthorizeEntity>().FirstOrDefault();
var model = this.BaseRepository().FindList<ShowAuthorizeEntity>().FirstOrDefault();
if (model != null)
{
entity.Modify(model.Id);
this.BaseRepository("CollegeMIS").Update(entity);
this.BaseRepository().Update(entity);
}
else
{
entity.Create();
this.BaseRepository("CollegeMIS").Insert(entity);
this.BaseRepository().Insert(entity);
}
}
catch (Exception ex)
+ 0- 4
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csprojVoir le fichier