|
|
@@ -1,5 +1,7 @@
|
|
|
package com.usoftchina.bi.server.service.chart;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONArray;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.usoftchina.bi.core.base.*;
|
|
|
import com.usoftchina.bi.core.exception.MyException;
|
|
|
import com.usoftchina.bi.core.utils.GetTokenDataUtil;
|
|
|
@@ -89,6 +91,10 @@ public class ChartsConfigService {
|
|
|
if (chartConfig.getStyle() == null){
|
|
|
chartConfig.setStyle("");
|
|
|
}
|
|
|
+ JSONArray jsonArray = JSONObject.parseArray("["+chartConfig.getFetchConfig()+"]");
|
|
|
+ int sid = Integer.parseInt(jsonArray.getJSONObject(0).get("id").toString());
|
|
|
+ String thumbnail = chartsConfigMapper.getOneThumbnail(sid).getThumbnail();
|
|
|
+ chartConfig.setThumbnail(thumbnail);
|
|
|
chartsConfigMapper.insertCharts(chartConfig);
|
|
|
int id = chartConfig.getChartId();
|
|
|
|