Commit 11fe6806 by jianshuqin

优化:组件功能

parent 4571be7d
...@@ -37,6 +37,7 @@ namespace Bailun.DC.Services.Component ...@@ -37,6 +37,7 @@ namespace Bailun.DC.Services.Component
sqlparam.Add("id", id); sqlparam.Add("id", id);
sqlparam.Add("code", code); sqlparam.Add("code", code);
entity = db.QueryFirstOrDefault<dc_component_table>("select * from dc_component_table where is_delete = 0 and (id = @id or code = @code)", sqlparam); entity = db.QueryFirstOrDefault<dc_component_table>("select * from dc_component_table where is_delete = 0 and (id = @id or code = @code)", sqlparam);
db.Close();
} }
if (entity != null) if (entity != null)
{ {
...@@ -318,6 +319,7 @@ namespace Bailun.DC.Services.Component ...@@ -318,6 +319,7 @@ namespace Bailun.DC.Services.Component
{ {
pageList.List.Load(reader.Item2); pageList.List.Load(reader.Item2);
} }
reader.Item2.Close();
} }
break; break;
......
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