|
@@ -632,7 +632,7 @@ public interface StandardlyMapper {
|
|
|
Object valueObj = entry.getValue();
|
|
|
List<String> types = ((List<String>) valueObj);
|
|
|
/** {@link com.boman.web.core.utils.ColumnUtils.packColCondition} 这里是拼参数的地方 **/
|
|
|
- String value = types.get(0);
|
|
|
+ Object value = types.get(0);
|
|
|
String queryType = types.get(1);
|
|
|
String columnType = types.get(2);
|
|
|
conditionSql.append(key).append(covert(queryType, columnType, key, value)).append(" and ");
|
|
@@ -656,24 +656,24 @@ public interface StandardlyMapper {
|
|
|
Object value;
|
|
|
switch (queryType) {
|
|
|
case EQ:
|
|
|
- value = needEscape ? escapeStr((String) valueObj) : valueObj;
|
|
|
+ value = needEscape ? escapeStr(String.valueOf(valueObj)) : valueObj;
|
|
|
return " = " + value;
|
|
|
case LIKE:
|
|
|
return " like concat('%', #{condition." + key + "}, '%')";
|
|
|
case NE:
|
|
|
- value = needEscape ? escapeStr((String) valueObj) : valueObj;
|
|
|
+ value = needEscape ? escapeStr(String.valueOf(valueObj)) : valueObj;
|
|
|
return " != " + value;
|
|
|
case GT:
|
|
|
- value = needEscape ? escapeStr((String) valueObj) : valueObj;
|
|
|
+ value = needEscape ? escapeStr(String.valueOf(valueObj)) : valueObj;
|
|
|
return " > " + value;
|
|
|
case GTE:
|
|
|
- value = needEscape ? escapeStr((String) valueObj) : valueObj;
|
|
|
+ value = needEscape ? escapeStr(String.valueOf(valueObj)) : valueObj;
|
|
|
return " >= " + value;
|
|
|
case LT:
|
|
|
- value = needEscape ? escapeStr((String) valueObj) : valueObj;
|
|
|
+ value = needEscape ? escapeStr(String.valueOf(valueObj)) : valueObj;
|
|
|
return " < " + value;
|
|
|
case LTE:
|
|
|
- value = needEscape ? escapeStr((String) valueObj) : valueObj;
|
|
|
+ value = needEscape ? escapeStr(String.valueOf(valueObj)) : valueObj;
|
|
|
return " <= " + value;
|
|
|
default:
|
|
|
// in
|