解决 db_plat 数据携带&时的bug
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
const db = {
|
const db = {
|
||||||
catalogList({dbAccount, dbPlatId}) { // database列表
|
catalogList({dbAccount, dbPlatId}) { // database列表
|
||||||
console.log(dbAccount)
|
console.log(JSON.stringify(dbAccount))
|
||||||
return red.postX('/_db/catalog_list', {dbAccount: JSON.stringify(dbAccount), dbPlatId})
|
return red.postX('/_db/catalog_list', {dbAccount: escape(JSON.stringify(dbAccount)), dbPlatId})
|
||||||
},
|
},
|
||||||
tableList({dbPlatId, catalog}) { // 数据库表列表
|
tableList({dbPlatId, catalog}) { // 数据库表列表
|
||||||
return red.postX('/_db/table_list', {dbPlatId, catalog})
|
return red.postX('/_db/table_list', {dbPlatId, catalog})
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ const plat = {
|
|||||||
return red.getX('/plat/db_list', params)
|
return red.getX('/plat/db_list', params)
|
||||||
},
|
},
|
||||||
dbSave({plat}) {
|
dbSave({plat}) {
|
||||||
return red.postX('/plat/db_save', {plat:JSON.stringify(plat)})
|
plat["url"] = escape(plat["url"])
|
||||||
|
return red.postX('/plat/db_save', {plat: JSON.stringify(plat)})
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
package net.tccn.base;
|
package net.tccn.base;
|
||||||
|
|
||||||
import org.apache.poi.poifs.filesystem.OfficeXmlFileException;
|
import org.apache.poi.poifs.filesystem.OfficeXmlFileException;
|
||||||
import org.apache.poi.ss.formula.functions.T;
|
|
||||||
import org.apache.poi.ss.usermodel.*;
|
import org.apache.poi.ss.usermodel.*;
|
||||||
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
|
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
|
||||||
|
|
||||||
@@ -75,7 +74,7 @@ public class ExcelKit {
|
|||||||
* @author LiangXianYou
|
* @author LiangXianYou
|
||||||
* @date 2015-3-13 上午11:00:30
|
* @date 2015-3-13 上午11:00:30
|
||||||
*/
|
*/
|
||||||
public static Workbook exportExcel(List<T> list, LinkedHashMap<String, String> headMap) throws Exception {
|
public static <T> Workbook exportExcel(List<T> list, LinkedHashMap<String, String> headMap) throws Exception {
|
||||||
String[] hdNames = new String[headMap.size()]; //
|
String[] hdNames = new String[headMap.size()]; //
|
||||||
String[] hds = new String[headMap.size()];
|
String[] hds = new String[headMap.size()];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user