Commit 6b16059f authored by 吴春's avatar 吴春

提交代码

parent 951a9cf3
...@@ -61,12 +61,16 @@ namespace Edu.WebApi.Controllers.EduTask ...@@ -61,12 +61,16 @@ namespace Edu.WebApi.Controllers.EduTask
} }
else else
{ {
string takeEffectTime = base.ParmJObj.GetStringValue("TakeEffectTime"); if (model.ChangeType != 1)
if (string.IsNullOrWhiteSpace(takeEffectTime))
{ {
return ApiResult.Failed("请选择生效日期"); string takeEffectTime = base.ParmJObj.GetStringValue("TakeEffectTime");
if (string.IsNullOrWhiteSpace(takeEffectTime))
{
return ApiResult.Failed("请选择生效日期");
}
model.TakeEffectTime = Convert.ToDateTime(takeEffectTime);
} }
model.TakeEffectTime = Convert.ToDateTime(takeEffectTime);
model.AllChangePlanModel = Common.Plugin.JsonHelper.DeserializeObject<AllChangePlanItem>(base.ParmJObj.GetStringValue("AllChangePlanItem")); model.AllChangePlanModel = Common.Plugin.JsonHelper.DeserializeObject<AllChangePlanItem>(base.ParmJObj.GetStringValue("AllChangePlanItem"));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment