| | |
| | | return; |
| | | } |
| | | for (DutyReportEntity dutyReportEntity : list) { |
| | | if (dataMap1.get(dutyReportEntity.getCdeIndex()) != null) { |
| | | if (dataMap1.get(dutyReportEntity.getCdeIndex()) != null && StringUtils.isNotBlank(dutyReportEntity.getPointNo1())) { |
| | | ApiPointValueWriteDTO writeDTO = new ApiPointValueWriteDTO(); |
| | | writeDTO.setPointNo(dutyReportEntity.getPointNo1()); |
| | | writeDTO.setValue(dataMap1.get(dutyReportEntity.getCdeIndex())); |
| | | dataPointApi.writePointRealValue(writeDTO); |
| | | } |
| | | if (dataMap2.get(dutyReportEntity.getCdeIndex()) != null) { |
| | | if (dataMap2.get(dutyReportEntity.getCdeIndex()) != null && StringUtils.isNotBlank(dutyReportEntity.getPointNo2())) { |
| | | ApiPointValueWriteDTO writeDTO = new ApiPointValueWriteDTO(); |
| | | writeDTO.setPointNo(dutyReportEntity.getPointNo2()); |
| | | writeDTO.setValue(dataMap2.get(dutyReportEntity.getCdeIndex())); |