Commit dc97ae34 authored by solho's avatar solho

fix:動態語句

parent cc80eaa9
...@@ -185,6 +185,7 @@ namespace WebAPI.Controllers ...@@ -185,6 +185,7 @@ namespace WebAPI.Controllers
strsql += " and isClosed=@isClosed "; strsql += " and isClosed=@isClosed ";
cmd.Parameters.AddWithValue("@isClosed", (obj_input["isClosed"].ToString()=="1"?true:false)); cmd.Parameters.AddWithValue("@isClosed", (obj_input["isClosed"].ToString()=="1"?true:false));
} }
strsql = strsql.Replace("@wherecase1", @wherecase1);
cmd.CommandText = strsql; cmd.CommandText = strsql;
DataTable dt = SqlToDt(cmd); DataTable dt = SqlToDt(cmd);
response.Msg = JsonConvert.SerializeObject(dt); response.Msg = JsonConvert.SerializeObject(dt);
......
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