Commit a0b90a6b authored by solho's avatar solho

feat:新增request_customer_id

parent ce2f36e8
......@@ -79,8 +79,8 @@ namespace WebAPI.Controllers
{
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
left join (select customer_id from [essen_customer] a1 where a1.customer_id=@customer_id) b on a.customer_id=b.customer_id
CommandText = @"select a.customer_name,a.customer_id,case when isnull(b.customer_id,'')!='' then 1 else 0 end isSelect,request_customer_id from c_customer a
left join (select customer_id,request_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 "
};
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