解决 db_plat 数据携带&时的bug

This commit is contained in:
2019-05-19 18:31:21 +08:00
parent 319890ea69
commit 7fd694fc69
3 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
const db = {
catalogList({dbAccount, dbPlatId}) { // database列表
console.log(dbAccount)
return red.postX('/_db/catalog_list', {dbAccount: JSON.stringify(dbAccount), dbPlatId})
console.log(JSON.stringify(dbAccount))
return red.postX('/_db/catalog_list', {dbAccount: escape(JSON.stringify(dbAccount)), dbPlatId})
},
tableList({dbPlatId, catalog}) { // 数据库表列表
return red.postX('/_db/table_list', {dbPlatId, catalog})

View File

@@ -13,7 +13,8 @@ const plat = {
return red.getX('/plat/db_list', params)
},
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)})
},
}

View File

@@ -1,7 +1,6 @@
package net.tccn.base;
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.xssf.streaming.SXSSFWorkbook;
@@ -75,7 +74,7 @@ public class ExcelKit {
* @author LiangXianYou
* @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[] hds = new String[headMap.size()];