|
|
|
@ -480,6 +480,20 @@ public class Ghre_OpenClassServices : BaseServices<Ghre_OpenClass, Ghre_OpenClas |
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case "CancelPublished": |
|
|
|
|
|
|
|
|
|
await Db.Deleteable<Ghre_StudyRecord>() |
|
|
|
|
.Where(it => it.OpenClassId != null && ids.Contains(it.OpenClassId.Value)) |
|
|
|
|
.ExecuteCommandAsync(); |
|
|
|
|
|
|
|
|
|
await Db.Updateable<Ghre_OpenClass>() |
|
|
|
|
.SetColumns(it => new Ghre_OpenClass() { Status = status }) |
|
|
|
|
.Where(it => ids.Contains(it.Id)) |
|
|
|
|
.ExecuteCommandAsync(); |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
default: |
|
|
|
|
await Db.Updateable<Ghre_OpenClass>() |
|
|
|
|
.SetColumns(it => new Ghre_OpenClass() { Status = status }) |
|
|
|
@ -803,7 +817,7 @@ WHERE A.OpenClassId = '{Id}' AND A.IsEnable = 1"; |
|
|
|
|
public async Task<ServiceResult<Ghre_SurveyStatistic>> QueryStatistic(long id) |
|
|
|
|
{ |
|
|
|
|
var data = new Ghre_SurveyStatistic(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ServiceResult<Ghre_SurveyStatistic>.OprateSuccess("查询成功!", data); |
|
|
|
|
} |
|
|
|
|
#endregion |
|
|
|
|