Commit f6b07fc2 authored by shiyu's avatar shiyu

参数详情

parent b2e3ed7e
......@@ -188,7 +188,11 @@ public class CategoryVo implements Serializable {
if (coinExtraInfoEnum.getKey().equals("caTableImage") && StringUtils.isEmpty(this.caTableImage)) {
continue;
}
extraInfoMap.put(coinExtraInfoEnum.getName(), extractExtra(extraData, coinExtraInfoEnum.getKey()));
if (coinExtraInfoEnum.getKey().equals("desc")) {
extraInfoMap.put(coinExtraInfoEnum.getName(), category.getDesc());
} else {
extraInfoMap.put(coinExtraInfoEnum.getName(), extractExtra(extraData, coinExtraInfoEnum.getKey()));
}
extraInfoList.add(extraInfoMap);
}
} else {
......@@ -197,13 +201,14 @@ public class CategoryVo implements Serializable {
if (coinExtraInfoEnum.getKey().equals("caTableImage")) {
continue;
}
extraInfoMap.put(coinExtraInfoEnum.getName(), null);
if (coinExtraInfoEnum.getKey().equals("desc")) {
extraInfoMap.put(coinExtraInfoEnum.getName(), category.getDesc());
} else {
extraInfoMap.put(coinExtraInfoEnum.getName(), null);
}
extraInfoList.add(extraInfoMap);
}
}
Map<String, Object> extraInfoMap = new HashMap<>();
extraInfoMap.put("desc", category.getDesc());
extraInfoList.add(extraInfoMap);
}
public static CategoryVo of(Category category) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment