| | |
| | | if (xpPoint == null) { |
| | | throw new ServiceException("系统异常", I18nKeyConstant.SYSTEM_EXCEPTION); |
| | | } |
| | | pointAddDto.setStationSortNo(xpPoint.getStationSortNo()); |
| | | xpPointService.validatePointNameUnique(pointAddDto.getPointName(), pointAddDto.getId()); |
| | | BeanUtils.copyProperties(pointAddDto, xpPoint); |
| | | if (Integer.valueOf(2).equals(pointAddDto.getOperationStatus()) && Integer.valueOf(5).equals(pointAddDto.getVerificationStatus())) { |
| | |
| | | } |
| | | xpPoint.setFpElectronicAreaId(null); |
| | | |
| | | Integer stationSortNo = xpPoint.getStationSortNo(); //点位在场站内排序 |
| | | Long stationId = pointAddDto.getStationId(); |
| | | Integer stationSortNo = pointAddDto.getStationSortNo(); //点位在场站内排序 |
| | | if(stationId != null && stationId > 0){ |
| | | if(stationSortNo == null){ |
| | | stationSortNo = 0; |
| | | } |
| | | stationSortNo = 0; |
| | | } |
| | | |
| | | // 使用 lambdaUpdate 确保 pointPictures 为 null 时也能将数据库字段清空 |