牛尾培训计划优化

master
xiaochanghai 4 months ago
parent 36f2ee0a5d
commit 8f1cc97d83
  1. 3
      Tiobon.Core.Services/Ghre/Ghre_UshioPlanServices.cs

@ -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())
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,6 +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())
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;

Loading…
Cancel
Save