java110
2020-07-15 38d7bffeb4d445f7719b0dc76bb17f3c8a99560d
java110-db/src/main/java/com/java110/db/Java110MybatisInterceptor.java
@@ -216,6 +216,14 @@
                Date date = new Date(((Timestamp) value).getTime());
                String tmpValue = DateUtil.getFormatTimeString(date, DateUtil.DATE_FORMATE_STRING_A);
                map.put(key, "'" + tmpValue + "'");
            } else if(value instanceof Double){
                map.put(key, "'" + map.get(key) + "'");
            }else {
                if (value != null) {
                    map.put(key, "'" + value.toString() + "'");
                } else {
                    map.put(key, "''");
                }
            }
        }
    }