Commit 91d711d6 authored by yanzg's avatar yanzg

修改日志打印功能,打印更加详细的日志

parent e4e873b2
......@@ -660,9 +660,8 @@ public abstract class BaseDaoImpl extends BaseDaoSql implements BaseDao {
}
String md5Field = this.table.getTable().getMD5KeyName();
String md5From = StringHelper.isEmpty(md5Field) ? StringHelper.EMPTY : ObjectHelper.getString(model, md5Field);
// 获取前台分组的MD5标识
String md5 = md5From;
String md5 = StringHelper.isEmpty(md5Field) ? StringHelper.EMPTY : ObjectHelper.getString(model, md5Field);;
if (StringHelper.isEmpty(md5)) {
md5 = this.getMd5(DaoConst.GROUP_QUERY, model);
}
......
......@@ -460,18 +460,14 @@ public class TableStruct {
TableFieldVo key = this.getKey();
// 第一个增加的字段,不需要增加 ","
String flag = StringHelper.EMPTY;
if (this.getKeyType() == String.class) {
sql.addParaConst(key.inputName, CODE_FIELD, key.name,
CODE_VALUES, CODE_PARA
);
flag = CODE_SPLIT;
}
sql.addParaConst(key.inputName, CODE_FIELD, key.name,
CODE_VALUES, CODE_PARA
);
for (TableFieldVo field : this.getFields()) {
sql.addParaConst(field.inputName, CODE_FIELD, flag + field.name,
CODE_VALUES, flag + CODE_PARA
sql.addParaConst(field.inputName,
CODE_FIELD, CODE_SPLIT + field.name,
CODE_VALUES, CODE_SPLIT + CODE_PARA
);
flag = CODE_SPLIT;
}
return sql;
}
......
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