|
@@ -52,6 +52,9 @@ public class SopWarnMonitorServiceImpl extends ServiceImpl<SopWarnMonitorMapper,
|
|
|
List<SopWarnMonitorDetailResult> detailList = entry.getValue();
|
|
|
|
|
|
if (type.equals(CrmProgressMonitorEnum.BY_LEAD)) {
|
|
|
+ if (leadList.get(0) == null || leadList.get(1) == null) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
result.setLeadId(Long.parseLong(leadList.get(0).toString()));
|
|
|
result.setLeadName(leadList.get(1).toString());
|
|
|
} else if (type.equals(CrmProgressMonitorEnum.BY_SUPPLIER)) {
|
|
@@ -72,9 +75,9 @@ public class SopWarnMonitorServiceImpl extends ServiceImpl<SopWarnMonitorMapper,
|
|
|
for (SopWarnMonitorResult result : resultList) {
|
|
|
List<SopWarnMonitorDetailResult> filterWarnList = new ArrayList<>();
|
|
|
|
|
|
- if (type.equals(CrmProgressMonitorEnum.BY_LEAD)) {
|
|
|
+ if (type.equals(CrmProgressMonitorEnum.BY_LEAD) && result.getLeadId() != null) {
|
|
|
filterWarnList = warnDetailList.stream()
|
|
|
- .filter(item -> item.getLeadId().equals(result.getLeadId()))
|
|
|
+ .filter(item -> item.getLeadId() != null && item.getLeadId().equals(result.getLeadId()))
|
|
|
.collect(Collectors.toList());
|
|
|
} else if (type.equals(CrmProgressMonitorEnum.BY_SUPPLIER)) {
|
|
|
filterWarnList = warnDetailList.stream()
|