소스 검색

修改取值条件字段

章政 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;