| | |
| | | entity.setInsureExpiredTime(parseInsuranceDate(item.getInsuranceInfo())); |
| | | entity.setAreaCode(extractAreaCode(item.getRegionCode())); |
| | | entity.setIsWithDock(item.getIsWithDock()); |
| | | entity.setCreateDept(item.getDeptId()); |
| | | entity.setDevicePayload( |
| | | Optional.ofNullable(item.getLoadList()) |
| | | .orElse(Collections.emptyList()) |
| | |
| | | .filter(Objects::nonNull) |
| | | .map(load -> load.getName()) |
| | | .filter(Objects::nonNull) |
| | | .distinct() // 添加去重逻辑 |
| | | .collect(Collectors.joining(",")) |
| | | ); |
| | | |
| | |
| | | entity.setInsureExpiredTime(parseInsuranceDate(item.getInsuranceInfo())); |
| | | entity.setAreaCode(extractAreaCode(item.getRegionCode())); |
| | | entity.setHeight(item.getHeight()); |
| | | entity.setCreateDept(item.getDeptId()); |
| | | return entity; |
| | | } |
| | | |