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
public static void removeShortagePush(IEnumerable<int> datas)
{
var conn = _connection;
//foreach (var item in datas)
//{
// 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 });
if(datas!=null && datas.Count() >= 1)
{
var conn = _connection;
//foreach (var item in datas)
//{
// 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 });
}
}
......
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