瀏覽代碼

修改取值条件字段

章政 8 年之前
父節點
當前提交
ae55badfc0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      UAS-MES/CustomControl/TextBoxWithIcon/SearchTextBox.cs

+ 1 - 1
UAS-MES/CustomControl/TextBoxWithIcon/SearchTextBox.cs

@@ -323,7 +323,7 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
                         fields.Add(field[i]);
                 }
                 //将查询到的结果返回界面
-                string sql = "select " + BaseUtil.AddField(fields.ToArray()) + " from " + tableName + " where " + Tag + "='" + TextBox.Text + "'";
+                string sql = "select " + BaseUtil.AddField(fields.ToArray()) + " from " + tableName + " where " + Name + "='" + TextBox.Text + "'";
                 if (condition != null)
                 {
                     sql += " and " + condition;