| | |
| | | @Autowired |
| | | private DataConfigService dataConfigService; |
| | | |
| | | @ApiOperation(value = "查询设备详情") |
| | | @GetMapping("/getDeviceById") |
| | | public Result getDeviceById(Integer deviceId){ |
| | | return Result.success(deviceService.getById(deviceId)); |
| | | } |
| | | |
| | | @ApiOperation(value = "查看设备二维码按钮") |
| | | @GetMapping("/showDeviceQrCodeButton") |
| | | public void showDeviceQrCodeButton() { } |
| | | |
| | | //设备工具明细 |
| | | |
| | | @ApiOperation(value = "查询设备详情列表") |
| | | @GetMapping("/selectDeviceParameter") |
| | | public Result selectDeviceParameter(Page page, DeviceDto itemParameter, Boolean laboratoryNameIsNull){ |
| | |
| | | return deviceService.dataAcquisition(request, dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "维护数采配置") |
| | | @PostMapping("/saveDataAcquisitionConfiguration") |
| | | public Result<?> saveDataAcquisitionConfiguration(@RequestBody DataConfigDto dataConfigList) { |
| | | dataConfigService.saveDataAcquisitionConfiguration(dataConfigList.getDeviceId(), dataConfigList); |
| | | @ApiOperation(value = "维护设备文件配置") |
| | | @PostMapping("/saveDeviceFileConfiguration") |
| | | public Result<?> saveDeviceFileConfiguration(@RequestBody DataConfigDto dataConfigList) { |
| | | dataConfigService.saveDeviceFileConfiguration(dataConfigList); |
| | | return Result.success(); |
| | | } |
| | | |
| | |
| | | return dataConfigService.queryDataAcquisitionConfiguration(dataConfig); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询检验项数采配置") |
| | | @GetMapping("/queryProductConfiguration") |
| | | public Result<?> queryProductConfiguration(DataConfig dataConfig) { |
| | | return dataConfigService.queryProductConfiguration(dataConfig); |
| | | } |
| | | |
| | | @ApiOperation(value = "维护数采配置") |
| | | @PostMapping("/saveDataAcquisitionConfiguration") |
| | | public Result<?> saveDataAcquisitionConfiguration(@RequestBody DataConfigDto dataConfigList) { |
| | | dataConfigService.saveDataAcquisitionConfiguration(dataConfigList); |
| | | return Result.success(); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "查询绑定了但是没有配置的检验项") |
| | | @GetMapping("/getNoConfigProduct") |
| | | public Result<?> getNoConfigProduct(Page page, Integer deviceId) { |
| | | return Result.success(dataConfigService.getNoConfigProduct(page, deviceId)); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除数采配置") |
| | | @DeleteMapping("/deleteDataAcquisitionConfiguration") |
| | |
| | | List<String> collect = split.stream().distinct().collect(Collectors.toList()); |
| | | dataConfigService.removeBatchByIds(collect); |
| | | return Result.success(); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "查询绑定了但是没有配置的检验项") |
| | | @GetMapping("/getNoConfigProduct") |
| | | public Result<?> getNoConfigProduct(Integer deviceId) { |
| | | return Result.success(dataConfigService.getNoConfigProduct(deviceId)); |
| | | } |
| | | |
| | | @ApiOperation(value = "左侧设备树形栏") |