修改graph_manage modal
This commit is contained in:
parent
4149aab542
commit
51f6b553f7
@ -140,9 +140,9 @@ namespace FrontendWebApi.ApiControllers
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var sqlString = @$"UPDATE graph_manage SET deleted = 1 WHERE code = @code AND sub_system_tag = @sub_system_tag AND main_system_tag = @main_system_tag";
|
var sqlString = @$"UPDATE graph_manage SET deleted = 1, updated_at = @time, updated_by = @user WHERE code = @code AND sub_system_tag = @sub_system_tag AND main_system_tag = @main_system_tag";
|
||||||
|
|
||||||
var param = new { @code = gi.code, @sub_system_tag = gi.sub_system_tag, @main_system_tag = gi.main_system_tag };
|
var param = new { @code = gi.code, @sub_system_tag = gi.sub_system_tag, @main_system_tag = gi.main_system_tag, @time = DateTime.Now, @user = myUser.userinfo_guid };
|
||||||
|
|
||||||
await backendRepository.ExecuteSql(sqlString, param);
|
await backendRepository.ExecuteSql(sqlString, param);
|
||||||
apiResult.Code = "0000";
|
apiResult.Code = "0000";
|
||||||
@ -229,6 +229,8 @@ namespace FrontendWebApi.ApiControllers
|
|||||||
graph_manage.Add("@name", gii.name);
|
graph_manage.Add("@name", gii.name);
|
||||||
graph_manage.Add("@main_system_tag", gii.main_system_tag);
|
graph_manage.Add("@main_system_tag", gii.main_system_tag);
|
||||||
graph_manage.Add("@sub_system_tag", gii.sub_system_tag);
|
graph_manage.Add("@sub_system_tag", gii.sub_system_tag);
|
||||||
|
graph_manage.Add("@updated_at", DateTime.Now);
|
||||||
|
graph_manage.Add("@updated_by", myUser.userinfo_guid);
|
||||||
//graph_manage.Add("@priority", gii.priority);
|
//graph_manage.Add("@priority", gii.priority);
|
||||||
|
|
||||||
await backendRepository.UpdateOneByCustomTable(graph_manage, "graph_manage", "code='" + gm.code + "'" + " and sub_system_tag ='" + gm.sub_system_tag + "' and main_system_tag = '" + gm.main_system_tag + "'");
|
await backendRepository.UpdateOneByCustomTable(graph_manage, "graph_manage", "code='" + gm.code + "'" + " and sub_system_tag ='" + gm.sub_system_tag + "' and main_system_tag = '" + gm.main_system_tag + "'");
|
||||||
@ -313,6 +315,8 @@ namespace FrontendWebApi.ApiControllers
|
|||||||
graph_manage.Add("@name", gii.name);
|
graph_manage.Add("@name", gii.name);
|
||||||
graph_manage.Add("@deleted", 0);
|
graph_manage.Add("@deleted", 0);
|
||||||
graph_manage.Add("@priority", newPriority + 1);
|
graph_manage.Add("@priority", newPriority + 1);
|
||||||
|
graph_manage.Add("@created_by", myUser.userinfo_guid );
|
||||||
|
graph_manage.Add("@created_at", DateTime.Now);
|
||||||
|
|
||||||
await backendRepository.AddOneByCustomTable(graph_manage, "graph_manage");
|
await backendRepository.AddOneByCustomTable(graph_manage, "graph_manage");
|
||||||
apiResult.Code = "0000";
|
apiResult.Code = "0000";
|
||||||
|
@ -33,7 +33,7 @@ namespace FrontendWebApi.Models
|
|||||||
public IFormFile donFile { get; set; }
|
public IFormFile donFile { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class GraphInfo
|
public class GraphInfo: Actor
|
||||||
{
|
{
|
||||||
public string code { get; set; }
|
public string code { get; set; }
|
||||||
public string main_system_tag { get; set; }
|
public string main_system_tag { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user