| | |
| | | private final IFwDeviceService fwDeviceService; |
| | | |
| | | @Override |
| | | public FwDeviceScrapVO getFwDeviceScrapById(Long id) { |
| | | return baseMapper.getFwDeviceScrapById(id); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public boolean saveFwDeviceScrap(FwDeviceScrapDTO dto) { |
| | | boolean isSuccess = super.save(FwDeviceScrapWrapper.build().entityDTO(dto)); |
| | |
| | | FwDeviceEntity fwDevice = new FwDeviceEntity(); |
| | | fwDevice.setId(dto.getDeviceId()); |
| | | fwDevice.setStatus(3); |
| | | fwDevice.setIsDeleted(1); |
| | | isSuccess = fwDeviceService.updateById(fwDevice); |
| | | } |
| | | return isSuccess; |