修改查询的错误

This commit is contained in:
admin
2021-01-19 14:14:29 +08:00
parent b23844a9f5
commit 10c02c8807
2 changed files with 3 additions and 3 deletions

View File

@@ -211,11 +211,11 @@ namespace U8AppMain
purchase.purchaseapp.body.Add(body); purchase.purchaseapp.body.Add(body);
} }
} }
catch (Exception) catch (Exception err)
{ {
this.richTextBox1.SelectionColor = Color.Red; this.richTextBox1.SelectionColor = Color.Red;
this.richTextBox1.AppendText("读取数据出错\r\n"); this.richTextBox1.AppendText("读取数据出错\r\n"+err.Message);
return; return;
} }

View File

@@ -281,7 +281,7 @@ namespace NX.ERP.U8
public IEnumerable<Materiel> GetList(IEnumerable<string> codes) public IEnumerable<Materiel> GetList(IEnumerable<string> codes)
{ {
return this.GetList(" cInvCode=@codes ", codes); return this.GetList(" cInvCode in @codes ",new { codes });
} }