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