|
|
|
@ -91,7 +91,7 @@ public class DeviceRepairApplyAddParam {
|
|
|
|
|
public List<DeviceRepairApplyDetailEntity> getDetailEntityList(Long applyId, DeviceInfoService deviceInfoService, AuthAdmin user) {
|
|
|
|
|
List<DeviceInfoVo> list = deviceInfoService.listVoByCodes(details.stream().map(ApplyDetail::getDeviceCode).collect(Collectors.toList()), user.getLocDeptCode(), DeviceStatusEnum.NORMAL);
|
|
|
|
|
if (list.size() != details.size()) {
|
|
|
|
|
throw new JsonException("设备信息不匹配,疑似非法操作");
|
|
|
|
|
throw new JsonException("设备状态异常或信息不符,请确认");
|
|
|
|
|
}
|
|
|
|
|
Map<String, List<DeviceInfoEntity>> deviceMap = list.stream().collect(Collectors.groupingBy(DeviceInfoEntity::getDeviceCode));
|
|
|
|
|
return details.stream().map(d -> {
|
|
|
|
|