|
|
@ -69,6 +69,7 @@ public class ExlTableDataController { |
|
|
|
// columns
|
|
|
|
LambdaQueryWrapper<ExlColumnConf> columnLqw = new LambdaQueryWrapper<>(); |
|
|
|
columnLqw.eq(ExlColumnConf::getTableConfId,tableConfigId); |
|
|
|
columnLqw.orderByAsc(ExlColumnConf::getSort); |
|
|
|
List<ExlColumnConf> columnList = exlColumnConfService.list(columnLqw); |
|
|
|
// query
|
|
|
|
Map<String, Object> queryMap = buildQueryMap(map, columnList); |
|
|
@ -146,6 +147,7 @@ public class ExlTableDataController { |
|
|
|
// columns
|
|
|
|
LambdaQueryWrapper<ExlColumnConf> columnLqw = new LambdaQueryWrapper<>(); |
|
|
|
columnLqw.eq(ExlColumnConf::getTableConfId,tableConfigId); |
|
|
|
columnLqw.orderByAsc(ExlColumnConf::getSort); |
|
|
|
List<ExlColumnConf> columnList = exlColumnConfService.list(columnLqw); |
|
|
|
// query
|
|
|
|
Map<String, Object> queryMap = buildQueryMap(map, columnList); |
|
|
@ -169,6 +171,7 @@ public class ExlTableDataController { |
|
|
|
// columns
|
|
|
|
LambdaQueryWrapper<ExlColumnConf> columnLqw = new LambdaQueryWrapper<>(); |
|
|
|
columnLqw.eq(ExlColumnConf::getTableConfId,tableConfigId); |
|
|
|
columnLqw.orderByAsc(ExlColumnConf::getSort); |
|
|
|
List<ExlColumnConf> columnList = exlColumnConfService.list(columnLqw); |
|
|
|
|
|
|
|
String targetTableName = ExlConst.TABLE_NAME_PRE + tableConf.getTableName(); |
|
|
@ -230,7 +233,9 @@ public class ExlTableDataController { |
|
|
|
for (String field : objectMap.keySet()) { |
|
|
|
Object value = objectMap.get(field); |
|
|
|
if(value!=null&&value.getClass().getName().equals("java.sql.Timestamp")){ |
|
|
|
objectMap.put(field,value.toString().split(".")[0]); |
|
|
|
if(value.toString().contains(".")){ |
|
|
|
objectMap.put(field,value.toString().split("\\.")[0]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|