|
|
@ -228,15 +228,15 @@ public class Ghre_StudyRuleServices : BaseServices<Ghre_StudyRule, Ghre_StudyRul |
|
|
|
public override async Task<bool> Update(long Id, EditGhre_StudyRuleInput entity) |
|
|
|
public override async Task<bool> Update(long Id, EditGhre_StudyRuleInput entity) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
if (!entity.ZoneIds.IsNull() && entity.ZoneIds.Any()) |
|
|
|
if (!entity.ZoneIds.IsNull()) |
|
|
|
entity.ZoneId = JsonHelper.ObjToJson(entity.ZoneIds); |
|
|
|
entity.ZoneId = JsonHelper.ObjToJson(entity.ZoneIds); |
|
|
|
if (!entity.DeptIds.IsNull() && entity.DeptIds.Any()) |
|
|
|
if (!entity.DeptIds.IsNull()) |
|
|
|
entity.DeptId = JsonHelper.ObjToJson(entity.DeptIds); |
|
|
|
entity.DeptId = JsonHelper.ObjToJson(entity.DeptIds); |
|
|
|
if (!entity.TitleIds.IsNull() && entity.TitleIds.Any()) |
|
|
|
if (!entity.TitleIds.IsNull()) |
|
|
|
entity.TitleId = JsonHelper.ObjToJson(entity.TitleIds); |
|
|
|
entity.TitleId = JsonHelper.ObjToJson(entity.TitleIds); |
|
|
|
if (!entity.GradeIds.IsNull() && entity.GradeIds.Any()) |
|
|
|
if (!entity.GradeIds.IsNull()) |
|
|
|
entity.GradeId = JsonHelper.ObjToJson(entity.GradeIds); |
|
|
|
entity.GradeId = JsonHelper.ObjToJson(entity.GradeIds); |
|
|
|
if (!entity.JobIds.IsNull() && entity.JobIds.Any()) |
|
|
|
if (!entity.JobIds.IsNull()) |
|
|
|
entity.JobId = JsonHelper.ObjToJson(entity.JobIds); |
|
|
|
entity.JobId = JsonHelper.ObjToJson(entity.JobIds); |
|
|
|
|
|
|
|
|
|
|
|
var result = await base.Update(Id, entity); |
|
|
|
var result = await base.Update(Id, entity); |
|
|
|