Commit a412b85c by 泽锋 李

fix

parent 5d60c3a7
...@@ -717,12 +717,16 @@ and not exists ( select * from dc_auto_shortage_push_not_config where dc_auto_sh ...@@ -717,12 +717,16 @@ and not exists ( select * from dc_auto_shortage_push_not_config where dc_auto_sh
public static void removeShortagePush(IEnumerable<int> datas) public static void removeShortagePush(IEnumerable<int> datas)
{ {
if(datas!=null && datas.Count() >= 1)
{
var conn = _connection; var conn = _connection;
//foreach (var item in datas) //foreach (var item in datas)
//{ //{
// conn.Delete<dc_auto_shortage_push>(item); // conn.Delete<dc_auto_shortage_push>(item);
//} //}
conn.Execute(" update dc_auto_shortage_push set has_return_goods=1 where id in @ids ", new {ids = datas }); conn.Execute(" update dc_auto_shortage_push set has_return_goods=1 where id in @ids ", new { ids = datas });
}
} }
......
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