Commit 9a4a19ab by leejoker

fix bug

1 parent 0378a139
......@@ -39,6 +39,7 @@ import java.io.IOException;
import java.text.ParseException;
import java.util.Date;
import java.util.List;
import java.util.Objects;
/**
......@@ -268,7 +269,7 @@ public class WeTaskFissionController extends BaseController {
if (weTaskFission != null) {
List<WeCustomer> customers = weTaskFissionService.getCustomerListById(null, String.valueOf(id));
if (CollectionUtils.isNotEmpty(customers)) {
customers.forEach(customer -> {
customers.stream().filter(Objects::nonNull).forEach(customer -> {
WeTaskFissionTotalProgressVO vo = new WeTaskFissionTotalProgressVO();
vo.setCustomer(customer);
vo.setProgress(weTaskFissionService.getCustomerTaskProgress(weTaskFission, customer.getUnionid()));
......
......@@ -289,7 +289,8 @@ public class WeTaskFissionServiceImpl implements IWeTaskFissionService {
List<WeTaskFissionRecord> weTaskFissionRecords = weTaskFissionRecordService
.list(new LambdaQueryWrapper<WeTaskFissionRecord>().eq(WeTaskFissionRecord::getTaskFissionId, fissionId));
return Optional.ofNullable(weTaskFissionRecords).orElseGet(ArrayList::new).stream()
.map(record -> weCustomerService.selectWeCustomerById(record.getCustomerId())).collect(Collectors.toList());
.map(record -> weCustomerService.selectWeCustomerById(record.getCustomerId()))
.filter(Objects::nonNull).collect(Collectors.toList());
} else {
WeCustomer weCustomer = weCustomerService.getOne(new LambdaQueryWrapper<WeCustomer>().eq(WeCustomer::getUnionid, unionId));
String externalUseriId = Optional.ofNullable(weCustomer).map(WeCustomer::getExternalUserid)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!