Commit 794ba232 authored by yanzg's avatar yanzg

消除成功接收处理

parent 19a49505
......@@ -3,6 +3,7 @@ package com.yanzuoguang.db.Impl;
import com.yanzuoguang.dao.DaoConst;
import com.yanzuoguang.extend.ConfigDb;
import com.yanzuoguang.util.base.ObjectHelper;
import com.yanzuoguang.util.helper.DateHelper;
import com.yanzuoguang.util.helper.StringHelper;
import com.yanzuoguang.util.log.Log;
import com.yanzuoguang.util.vo.MapRow;
......@@ -19,6 +20,8 @@ import java.lang.reflect.Modifier;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
......@@ -179,6 +182,9 @@ public class AllBeanRowMapper<T> implements RowMapper<T> {
String underscoredName = underscoreName(column);
if (this.isMapping) {
Object value = JdbcUtils.getResultSetValue(rs, index);
if (value instanceof Date) {
value = DateHelper.getDateTimeString((Date) value);
}
((Map) mappedObject).put(getCamelCase(column), value);
} else if (!this.mappedIsFields.containsKey(underscoredName)) {
continue;
......
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