|
@@ -1532,7 +1532,12 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
if(StringUtils.isNotEmpty(dataJson)){
|
|
if(StringUtils.isNotEmpty(dataJson)){
|
|
JSONArray jsonArray = JSONArray.parseArray(dataJson);
|
|
JSONArray jsonArray = JSONArray.parseArray(dataJson);
|
|
List<Integer> idList = Func.toIntList(myData);
|
|
List<Integer> idList = Func.toIntList(myData);
|
|
- String dataInfo = jsonArray.getJSONObject(idList.get(0)-1).getString("name");
|
|
|
|
|
|
+ int indexx = 0;
|
|
|
|
+ if(idList.get(0)>=1){
|
|
|
|
+ indexx =idList.get(0)-1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ String dataInfo = jsonArray.getJSONObject(indexx).getString("name");
|
|
for(int inx=1 ; inx<idList.size() ; inx++){
|
|
for(int inx=1 ; inx<idList.size() ; inx++){
|
|
int valIndex = idList.get(inx)-1;
|
|
int valIndex = idList.get(inx)-1;
|
|
dataInfo = dataInfo+","+jsonArray.getJSONObject(valIndex).getString("name");
|
|
dataInfo = dataInfo+","+jsonArray.getJSONObject(valIndex).getString("name");
|