| | |
| | | DepotConf depotConf = coreCommonService.getCacheDepotConf( |
| | | param.getCompanyId(), param.getDepotId()); |
| | | |
| | | // 获取分机信息 |
| | | DeviceSer deviceSer = coreSerService.getCacheSer(param.getCompanyId(), |
| | | depotConf.getGasSer()); |
| | | // 默认获取粮情分机信息 |
| | | DeviceSer deviceSer = coreSerService.getCacheSer(param.getCompanyId(), depotConf.getGrainSer()); |
| | | // 若气体分机配置不为空,则获取气体的分机 |
| | | if(StringUtils.isEmpty(depotConf.getGasSer())){ |
| | | deviceSer = coreSerService.getCacheSer(param.getCompanyId(), depotConf.getGasSer()); |
| | | } |
| | | |
| | | CheckGasRequest request = new CheckGasRequest(); |
| | | request.setDepotId(param.getDepotId()); |
| | |
| | | DepotConf depotConf = coreCommonService.getCacheDepotConf( |
| | | param.getCompanyId(), param.getDepotId()); |
| | | |
| | | // 获取分机信息 |
| | | DeviceSer deviceSer = coreSerService.getCacheSer(param.getCompanyId(), |
| | | depotConf.getGasSer()); |
| | | // 默认获取粮情分机信息 |
| | | DeviceSer deviceSer = coreSerService.getCacheSer(param.getCompanyId(), depotConf.getGrainSer()); |
| | | // 若气体分机配置不为空,则获取气体的分机 |
| | | if(StringUtils.isEmpty(depotConf.getGasSer())){ |
| | | deviceSer = coreSerService.getCacheSer(param.getCompanyId(), depotConf.getGasSer()); |
| | | } |
| | | |
| | | CheckGasRequest request = new CheckGasRequest(); |
| | | request.setDepotId(param.getDepotId()); |