Commit 1afaf461 authored by solho's avatar solho

feat:回傳日期改 "YYYY-MM"

parent 6f49f14e
...@@ -242,7 +242,7 @@ namespace WebAPI.Controllers ...@@ -242,7 +242,7 @@ namespace WebAPI.Controllers
,StepType_id =(select id from esn_todos_Flow_StepType a where a.Map_Class='HR') output INSERTED.id INTO @TempTable where esn_todos_sn =@SN{0}; ,StepType_id =(select id from esn_todos_Flow_StepType a where a.Map_Class='HR') output INSERTED.id INTO @TempTable where esn_todos_sn =@SN{0};
select @FlowId=id from @TempTable; select @FlowId=id from @TempTable;
insert into esn_todos_Flow_his(Flow_id,ConfirmTime,FromType_id,ToType_id,ConfirmUserId,ConfirmUserClass,ConfirmMethod,Description,Create_User_id,Create_time) insert into esn_todos_Flow_his(Flow_id,ConfirmTime,FromType_id,ToType_id,ConfirmUserId,ConfirmUserClass,ConfirmMethod,Description,Create_User_id,Create_time)
select id as Flow_id,GETDATE(),a.StepType_id_Previous,StepType_id,@gWadeID,'HR','SL','結算日期:' + @value,@gWadeID,GETDATE() from esn_todos_Flow a where a.id=@FlowId; select id as Flow_id,GETDATE(),a.StepType_id_Previous,StepType_id,@gWadeID,'HR','SL','結算日期:' + @valueText,@gWadeID,GETDATE() from esn_todos_Flow a where a.id=@FlowId;
", i); ", i);
return_sn.Add(dr["SN"].ToString()); return_sn.Add(dr["SN"].ToString());
...@@ -254,6 +254,7 @@ namespace WebAPI.Controllers ...@@ -254,6 +254,7 @@ namespace WebAPI.Controllers
} }
cmd.Parameters.AddWithValue("@value", value); cmd.Parameters.AddWithValue("@value", value);
cmd.Parameters.AddWithValue("@valueText", DateTime.Parse(value).ToString("yyyy-MM"));
cmd.Parameters.AddWithValue("@gWadeID", obj_input["gWadeID"].ToString()); cmd.Parameters.AddWithValue("@gWadeID", obj_input["gWadeID"].ToString());
string JSONString = string.Empty; string JSONString = string.Empty;
......
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