/**
*时间戳转换为date类型
*/
public date convert(object val) {
if ( val instanceof timestamp ) {
try {
timestamp ts = (timestamp)val;
return ts.datevalue();
} catch (sqlexception e) {
}
} else {
return this.convert(val);
}
return null;
}