|
@@ -255,6 +255,7 @@ namespace Hotline.Api.Controllers
|
|
|
circular.SourceOrgId = dto.SourceOrgId;
|
|
|
circular.SourceOrgName = dto.SourceOrgName;
|
|
|
circular.NeedReadNum = dto.CircularReadGroups.Count;
|
|
|
+ circular.LostEfficacyTime = DateTime.Now.AddYears(50);
|
|
|
await _circularRepository.UpdateAsync(circular, HttpContext.RequestAborted);
|
|
|
//移除子表重新添加
|
|
|
await _circularReadGroupRepository.RemoveAsync(x => x.CircularId == dto.Id, false, HttpContext.RequestAborted);
|
|
@@ -302,6 +303,7 @@ namespace Hotline.Api.Controllers
|
|
|
model.CircularState = ECircularState.Draft;
|
|
|
model.ReadedNum = 0;
|
|
|
model.NeedReadNum = model.CircularReadGroups.Count;
|
|
|
+ model.LostEfficacyTime = DateTime.Now.AddYears(50);
|
|
|
var id = await _circularRepository.AddAsync(model, HttpContext.RequestAborted);
|
|
|
//子表
|
|
|
var list = dto.CircularReadGroups;
|
|
@@ -542,7 +544,7 @@ namespace Hotline.Api.Controllers
|
|
|
bulletin.Content = dto.Content;
|
|
|
bulletin.BulletinTypeId = dto.BulletinTypeId;
|
|
|
bulletin.BulletinTypeName = dto.BulletinTypeName;
|
|
|
- bulletin.LoseEfficacyTime = dto.LoseEfficacyTime;
|
|
|
+ bulletin.LoseEfficacyTime = DateTime.Now.AddYears(50);
|
|
|
bulletin.PushRanges = dto.PushRanges;
|
|
|
bulletin.DisplayLocation = dto.DisplayLocation;
|
|
|
bulletin.SourceOrgId = dto.SourceOrgId;
|
|
@@ -581,6 +583,7 @@ namespace Hotline.Api.Controllers
|
|
|
model.BulletinState = Share.Enums.Article.EBulletinState.Draft;
|
|
|
model.ReadedNum = 0;
|
|
|
model.IsArrive = false;
|
|
|
+ model.LoseEfficacyTime = DateTime.Now.AddYears(50);
|
|
|
await _bulletinRepository.AddAsync(model, HttpContext.RequestAborted);
|
|
|
}
|
|
|
|