forked from github/dataease
fix(视图): 存量视图却少动态辅助线参数报错
This commit is contained in:
parent
9554e06767
commit
3f7a5d3bfd
@ -1658,10 +1658,14 @@ public class ChartViewService {
|
|||||||
String senior = view.getSenior();
|
String senior = view.getSenior();
|
||||||
JSONObject jsonObject = JSONObject.parseObject(senior);
|
JSONObject jsonObject = JSONObject.parseObject(senior);
|
||||||
JSONArray assistLine = jsonObject.getJSONArray("assistLine");
|
JSONArray assistLine = jsonObject.getJSONArray("assistLine");
|
||||||
|
List<ChartSeniorAssistDTO> list = new ArrayList<>();
|
||||||
|
if (ObjectUtils.isEmpty(assistLine) || StringUtils.isBlank(assistLine.toJSONString())) {
|
||||||
|
return list;
|
||||||
|
}
|
||||||
List<ChartSeniorAssistDTO> assistLines = gson.fromJson(assistLine.toJSONString(), new TypeToken<List<ChartSeniorAssistDTO>>() {
|
List<ChartSeniorAssistDTO> assistLines = gson.fromJson(assistLine.toJSONString(), new TypeToken<List<ChartSeniorAssistDTO>>() {
|
||||||
}.getType());
|
}.getType());
|
||||||
|
|
||||||
List<ChartSeniorAssistDTO> list = new ArrayList<>();
|
|
||||||
for (ChartSeniorAssistDTO dto : assistLines) {
|
for (ChartSeniorAssistDTO dto : assistLines) {
|
||||||
if (StringUtils.equalsIgnoreCase(dto.getField(), "0")) {
|
if (StringUtils.equalsIgnoreCase(dto.getField(), "0")) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user