Commit 5d97d264 by huluobin

update

parent 025cfa1b
...@@ -21,6 +21,7 @@ import org.springframework.stereotype.Service; ...@@ -21,6 +21,7 @@ import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.List; import java.util.List;
import java.util.Set;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
...@@ -81,14 +82,14 @@ public class ComplaintMainServiceImpl extends ServiceImpl<ComplaintMainMapper, C ...@@ -81,14 +82,14 @@ public class ComplaintMainServiceImpl extends ServiceImpl<ComplaintMainMapper, C
complaintDetailedService.saveBatch(complaintDetailedList); complaintDetailedService.saveBatch(complaintDetailedList);
List<Integer> orderTechnicianIds = orderServeMapper.selectList( Set<Integer> orderTechnicianIds = orderServeMapper.selectList(
new LambdaQueryWrapper<OrderServe>().eq(OrderServe::getOrderId, complaintMain.getOrderId())) new LambdaQueryWrapper<OrderServe>().eq(OrderServe::getOrderId, complaintMain.getOrderId()))
.stream() .stream()
.map(OrderServe::getTechnicianId) .map(OrderServe::getTechnicianId)
.map(technicianIds -> Lists.newArrayList(technicianIds.split(","))) .map(technicianIds -> Lists.newArrayList(technicianIds.split(",")))
.flatMap(List::stream) .flatMap(List::stream)
.map(Integer::valueOf) .map(Integer::valueOf)
.collect(Collectors.toList()); .collect(Collectors.toSet());
List<ComplaintDetailedTechnician> complaintDetailedTechnicianList = complaintDetailedList List<ComplaintDetailedTechnician> complaintDetailedTechnicianList = complaintDetailedList
.stream() .stream()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment