历史数据查询空指针修改

master
gongzhenkun 2 years ago
parent 1c2682fb98
commit 841fd691c0

@ -166,9 +166,9 @@ public class TRecordServiceImpl implements ITRecordService
recordHistoryDataResp.setDateList(dateList); recordHistoryDataResp.setDateList(dateList);
List<JSONObject> result = records.stream().map(tRecord -> { List<JSONObject> result = records.stream().map(tRecord -> {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
if(StringUtils.isEmpty(tRecord.getUpdateResult2())){ if(StringUtils.isEmpty(tRecord.getUpdateResult())){
jsonObject = JSONObject.parseObject(tRecord.getAiResult()); jsonObject = JSONObject.parseObject(tRecord.getAiResult());
}else if(!StringUtils.isEmpty(tRecord.getUpdateResult2())){ }else if(!StringUtils.isEmpty(tRecord.getUpdateResult())){
jsonObject = JSONObject.parseObject(tRecord.getUpdateResult()); jsonObject = JSONObject.parseObject(tRecord.getUpdateResult());
} }
return jsonObject; return jsonObject;

Loading…
Cancel
Save