Commit 800e8f3e authored by yanzg's avatar yanzg

1.3版本修改,增加删除功能

parent f31e322c
...@@ -176,9 +176,19 @@ public class SqlData { ...@@ -176,9 +176,19 @@ public class SqlData {
*/ */
public SqlDataField getField(SqlCond sqlCond) { public SqlDataField getField(SqlCond sqlCond) {
for (SqlDataField sqlDataField : this.sqlDataFields) { for (SqlDataField sqlDataField : this.sqlDataFields) {
if (sqlDataField.getCond().equals(sqlCond)) { SqlCond fieldCond = sqlDataField.getCond();
if (fieldCond.equals(sqlCond)) {
return sqlDataField; return sqlDataField;
} }
List<String> fromFields = fieldCond.getFields();
List<String> toFields = sqlCond.getFields();
for (String fromField : fromFields) {
for (String toField : toFields) {
if (fromField.equals(toField)) {
return sqlDataField;
}
}
}
} }
return null; return null;
} }
......
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