|
@@ -74,10 +74,22 @@ public class XmlUtil {
|
|
|
}
|
|
|
|
|
|
|
|
|
- public static Map<String, Object> customMadeListxmlToMap(List<String> xmlList, boolean isTwoDimensionalization, Object noDiKaList, Map<String, String> translateName) {
|
|
|
+ public static Map<String, Object> customMadeListxmlToMap(List<String> xmlList, Object isTwoDimensionalizationObj, Object noDiKaList, Map<String, String> translateName) {
|
|
|
if (Objects.isNull(xmlList) || xmlList.size() == 0) {
|
|
|
return MapTools.processSuccess(null);
|
|
|
}
|
|
|
+ boolean isTwoDimensionalization;
|
|
|
+ if(isTwoDimensionalizationObj instanceof String s){
|
|
|
+ if("1".equalsIgnoreCase(s) || "true".equalsIgnoreCase(s)){
|
|
|
+ isTwoDimensionalization = true;
|
|
|
+ } else {
|
|
|
+ isTwoDimensionalization = false;
|
|
|
+ }
|
|
|
+ }else if(isTwoDimensionalizationObj instanceof Boolean b){
|
|
|
+ isTwoDimensionalization = b;
|
|
|
+ } else {
|
|
|
+ isTwoDimensionalization = false;
|
|
|
+ }
|
|
|
if (xmlList.size() == 1) {
|
|
|
return customMadexmlToMap(xmlList.get(0), isTwoDimensionalization, noDiKaList, translateName);
|
|
|
}
|