final Collection keys = parameters.keySet();
// 组装查询条件
int index = 0;
Object value;
String logic,relation,param;
ParameterObject pObject;
for (Object key : keys) {
value = parameters.get(key);
logic = "and";
relation = "=";
param = new String(key.toString()).replaceAll("\\.","_");
if(value instanceof ParameterObject){
pObject = ((ParameterObject)value);
logic = pObject.getLogicSymbol();
relation = pObject.getRelationSymbol();
key = pObject.getName();
}
if (index == 0 && !hasWhere) {
sqls.append(" where e." + key + ""+relation+":" + param);
} else {
sqls.append(" "+logic+" e." + key + ""+relation+":" + param);