|
@@ -2731,7 +2731,23 @@ public class ExcelTabController extends BladeController {
|
|
|
}
|
|
|
} else if (tabVal.indexOf("_^_") >= 0) {
|
|
|
String[] tabData = tabVal.split("_\\^_");
|
|
|
- reData.put(key + "__" + tabData[1], tabData[0]);
|
|
|
+ if (StringUtils.isNotEmpty(tabData[0])) {
|
|
|
+ if (tabVal.contains("[") && tabVal.contains("年")) {
|
|
|
+ String[] strings = StringUtils.strip(tabData[0], "[]").split(",");
|
|
|
+ reData.put(key + "__" + tabData[1], strings);
|
|
|
+ }
|
|
|
+ if (tabVal.contains("[") && tabVal.contains("]") && tabVal.indexOf(",") >= 0) {
|
|
|
+ String[] strings = StringUtils.strip(tabData[0], "[]").split(",");
|
|
|
+ reData.put(key + "__" + tabData[1], strings);
|
|
|
+ }
|
|
|
+ if(tabVal.contains("[")&&tabVal.contains("]")&&tabVal.indexOf(",")==-1){
|
|
|
+ String[]strings= new String[]{StringUtils.strip(tabData[0],"[]")};
|
|
|
+ reData.put(key+"__"+tabData[1],strings);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ reData.put(key + "__" + tabData[1], tabData[0]);
|
|
|
+ }
|
|
|
+ }
|
|
|
} else {
|
|
|
reData.put(key, tabVal);
|
|
|
}
|