Commit 77c119b3 authored by solho's avatar solho

fix:客戶列表欄位名更改

parent 2b45bb71
...@@ -80,7 +80,7 @@ namespace WebAPI.Controllers ...@@ -80,7 +80,7 @@ namespace WebAPI.Controllers
SqlCommand cmd = new SqlCommand("", Conn) SqlCommand cmd = new SqlCommand("", Conn)
{ {
CommandText = @"select a.customer_name,a.customer_id,case when isnull(b.customer_id,'')!='' then 1 else 0 end isSelect from c_customer a CommandText = @"select a.customer_name,a.customer_id,case when isnull(b.customer_id,'')!='' then 1 else 0 end isSelect from c_customer a
left join (select [request_customer_id] as customer_id from [essen_customer] a1 where a1.customer_id=@customer_id) b on a.customer_id=b.customer_id left join (select customer_id from [essen_customer] a1 where a1.customer_id=@customer_id) b on a.customer_id=b.customer_id
where a.is_enabled=1 " where a.is_enabled=1 "
}; };
cmd.Parameters.AddWithValue("@customer_id", obj_input["customer_id"] == null ? "" : obj_input["customer_id"].ToString()); cmd.Parameters.AddWithValue("@customer_id", obj_input["customer_id"] == null ? "" : obj_input["customer_id"].ToString());
......
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