|
|
|
@ -132,8 +132,8 @@ public class Ghre_UshioPlanServices : BaseServices<Ghre_UshioPlan, Ghre_UshioPla |
|
|
|
|
{ |
|
|
|
|
if (entity.StaffId != null) |
|
|
|
|
entity.StaffIds = JsonHelper.ObjToJson(entity.StaffId); |
|
|
|
|
|
|
|
|
|
entity.TrainNum = entity.StaffId.Count; |
|
|
|
|
if (entity.TrainNum.IsNotEmptyOrNull()) |
|
|
|
|
entity.TrainNum = entity.StaffId.Count; |
|
|
|
|
if (entity.Months != null) |
|
|
|
|
entity.Month = JsonHelper.ObjToJson(entity.Months); |
|
|
|
|
var result = await base.Add(entity); |
|
|
|
@ -148,7 +148,8 @@ public class Ghre_UshioPlanServices : BaseServices<Ghre_UshioPlan, Ghre_UshioPla |
|
|
|
|
|
|
|
|
|
if (editModel.Months != null) |
|
|
|
|
editModel.Month = JsonHelper.ObjToJson(editModel.Months); |
|
|
|
|
editModel.TrainNum = editModel.StaffId.Count; |
|
|
|
|
if (editModel.TrainNum.IsNotEmptyOrNull()) |
|
|
|
|
editModel.TrainNum = editModel.StaffId.Count; |
|
|
|
|
var result = await base.Update(Id, editModel, null, ["Status"]); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|