【Java】修复"com.alibaba.fastjson.JSONObject cannot be cast to"报错问题
报错如下:
java.lang.ClassCastException: com.alibaba.fastjson.JSONObject cannot be cast to com.coding.lable.dto.HealthFilterNodeDto
at com.coding.lable.service.impl.ReptLabelsServiceImpl.filterFormulaCompute(ReptLabelsServiceImpl.java:240)
at com.coding.lable.service.impl.ReptLabelsServiceImpl.lambda$labelUserRept$1(ReptLabelsServiceImpl.java:187)
at java.util.ArrayList.forEach(ArrayList.java:1257)
at com.coding.lable.service.impl.ReptLabelsServiceImpl.labelUserRept