运维模块修改审核通过→提交故障上报获取最后用户上报的经纬度作为故障上报的经纬度

This commit is contained in:
jkcdev 2025-04-18 17:14:07 +08:00
parent 04bf3bd199
commit 1ab5f20bb9
2 changed files with 1 additions and 3 deletions

View File

@ -29,8 +29,6 @@ public class EbikeFaultreportReviewController {
@Autowired @Autowired
private EbikeFaultreportReviewService ebikeFaultreportReviewService; private EbikeFaultreportReviewService ebikeFaultreportReviewService;
@Resource
private OrdersFeignClient ebikeUserFaultreportService;
/** /**
* 添加用户上报故障审查 * 添加用户上报故障审查

View File

@ -91,7 +91,7 @@ public class EbikeFaultreportReviewServiceImpl extends ServiceImpl<EbikeFaultrep
// 如果审查属实直接上报 // 如果审查属实直接上报
if ("1".equals(entity.getResult())){ if ("1".equals(entity.getResult())){
// 使用最后一次上报的故障信息上报的经纬度 // 使用最后一次上报的故障信息上报的经纬度
Optional<ResEbikeUserFaultreportDto> last = ebikeFaultreportReview.getFaultReports().stream().max( Optional<ResEbikeUserFaultreportDto> last = ebikeFaultreportReview.getFaultReports().stream().filter(obj->obj.getReportAt()!=null).max(
Comparator.comparing( Comparator.comparing(
ResEbikeUserFaultreportDto::getReportAt, ResEbikeUserFaultreportDto::getReportAt,
Comparator.nullsLast(Comparator.naturalOrder()) Comparator.nullsLast(Comparator.naturalOrder())