Compare commits
2 Commits
06a25b01a1
...
ebe74f333d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ebe74f333d | ||
|
|
73bdd5193a |
@ -264,6 +264,10 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
/// 课件 考试按这个为 下一题 依据
|
/// 课件 考试按这个为 下一题 依据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<string> listPath { get; set; }
|
public List<string> listPath { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 培训记录状态
|
||||||
|
/// </summary>
|
||||||
|
public SETrainRecordStatus STATUS_RECORD { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost, Route("GetUserPapers")]
|
[HttpPost, Route("GetUserPapers")]
|
||||||
@ -273,17 +277,29 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
var config = GetEntity<T_SE_SECONFIG>(t => true);
|
var config = GetEntity<T_SE_SECONFIG>(t => true);
|
||||||
var ret = new JsonActionResult<TrainUserPaperModel>();
|
var ret = new JsonActionResult<TrainUserPaperModel>();
|
||||||
List<string> listPath = new List<string>();
|
List<string> listPath = new List<string>();
|
||||||
if (papers != null && papers.Any() && !string.IsNullOrEmpty(filter.Keyword))
|
SETrainRecordStatus STATUS = SETrainRecordStatus.草稿;
|
||||||
|
if (papers != null && papers.Any())
|
||||||
{
|
{
|
||||||
listPath = papers.Select(e => e.FILE_PATH).Distinct().ToList();
|
if (!string.IsNullOrEmpty(filter.Keyword))
|
||||||
if (listPath != null && listPath.Any() && listPath.Count() > 1)
|
{
|
||||||
papers = papers.OrderBy(e => e.FILE_PATH).ToList();
|
listPath = papers.Select(e => e.FILE_PATH).Distinct().ToList();
|
||||||
|
if (listPath != null && listPath.Any() && listPath.Count() > 1)
|
||||||
|
papers = papers.OrderBy(e => e.FILE_PATH).ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
var record = GetEntity<T_SE_TRAIN_RECORD>(papers[0].RECORD_ID);
|
||||||
|
if (record!=null)
|
||||||
|
{
|
||||||
|
STATUS=record.STATUS;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ret.Data = new TrainUserPaperModel
|
ret.Data = new TrainUserPaperModel
|
||||||
{
|
{
|
||||||
Nav_Papers = papers,
|
Nav_Papers = papers,
|
||||||
Nav_Config = config,
|
Nav_Config = config,
|
||||||
listPath = listPath
|
listPath = listPath,
|
||||||
|
STATUS_RECORD = STATUS
|
||||||
};
|
};
|
||||||
ret.IsSuccessful = true;
|
ret.IsSuccessful = true;
|
||||||
ret.TotalCount = 1;
|
ret.TotalCount = 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user