| | |
| | | import org.sxkj.fw.device.dto.FwDeviceDTO; |
| | | import org.sxkj.fw.device.entity.FwDeviceEntity; |
| | | import org.sxkj.fw.device.service.IFwDeviceService; |
| | | import org.sxkj.fw.device.vo.CockpitFwDeviceVO; |
| | | import org.sxkj.fw.record.dto.FwDroneAlarmRecordDTO; |
| | | import org.sxkj.fw.record.entity.FwDroneAlarmRecordEntity; |
| | | import org.sxkj.fw.record.service.IFwDroneAlarmRecordService; |
| | | import org.sxkj.fw.record.vo.FwDroneAlarmRecordVO; |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public IPage<FwDeviceEntity> selectFwDevicePage(IPage<FwDeviceEntity> page, FwDeviceDTO fwDevice) { |
| | | return fwDeviceService.selectFwDevicePage(page, fwDevice); |
| | | public IPage<CockpitFwDeviceVO> selectCockpitDevicePage(IPage<CockpitFwDeviceVO> page, FwDeviceDTO fwDevice) { |
| | | return fwDeviceService.selectCockpitDevicePage(page, fwDevice); |
| | | } |
| | | |
| | | @Override |
| | |
| | | |
| | | @Override |
| | | public boolean saveOrUpdate(FwEffectEvalEntity fwEffectEvalEntity) { |
| | | FwDroneAlarmRecordEntity alarmRecordEntity = fwDroneAlarmRecordService.getById(fwEffectEvalEntity.getAlarmRecordId()); |
| | | FwDeviceEntity device = fwDeviceService.getById(alarmRecordEntity.getDeviceId()); |
| | | fwEffectEvalEntity.setDeviceId(alarmRecordEntity.getDeviceId()); |
| | | fwEffectEvalEntity.setCounterEffect("1"); |
| | | return fwEffectEvalService.saveOrUpdate(fwEffectEvalEntity); |
| | | } |
| | | |