This commit is contained in:
2024-01-16 22:17:23 +08:00
parent 2f9cde6ce4
commit 68e5dda2b8
4 changed files with 24 additions and 119 deletions

View File

@@ -1,5 +1,6 @@
package net.tccn.base.dbq;
import net.tccn.base.Kv;
import net.tccn.base.MetaKit;
import net.tccn.base.PageBean;
import net.tccn.base.dbq.fbean.FBean;
@@ -35,18 +36,22 @@ public class DbExecutors {
List<Map> rows = listFuture.get();
Integer total = countFuture.get();
/*rows.forEach(x -> {
x.forEach((k,v) -> {
if ("[B".equals(v.getClass().getName())) {
rows.forEach(m -> {
m.forEach((k,v) -> {
/*if ("[B".equals(v.getClass().getName())) {
try {
//System.out.println(k + " : " + new String((byte[]) v, "UTF-8"));
x.put(k, new String((byte[]) v, "UTF-8"));
m.put(k, new String((byte[]) v, "UTF-8"));
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
}
}*/
// 避免前端 解析丢失精度
if (v instanceof Long && (Long)v > 9007199254740991L) {
m.put(k, Kv.toAs(v, String.class));
}
});
});*/
});
return PageBean.by(rows, total);
}