beta,gamma向redis缓存数据时,映射方式得到的实体类缓存数据报错问题修改

This commit is contained in:
qiaoqinzheng 2023-12-07 15:31:37 +08:00
parent c90e913701
commit e89fca372b
2 changed files with 6 additions and 10 deletions

View File

@ -140,6 +140,8 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
private IGardsQcCheckSpectrumService qcCheckSpectrumService;
@Autowired
private IGardsAnalySettingSpectrumService analySettingSpectrumService;
@Autowired
private RedisStreamUtil redisStreamUtil;
@Override
public Result initValue(Integer sampleId, String dbName, String analyst, String samfileName, HttpServletRequest request) {
@ -4617,13 +4619,9 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
nuclides.put(middleData.nucl_ided_Nuclidename.get(i), middleData.nucl_ided_Concentration.get(i));
}
info.setNuclides(nuclides);
RedisStreamUtil.class.newInstance().pushAnalysis(info);
redisStreamUtil.pushAnalysis(info);
} catch (ParseException e) {
throw new RuntimeException(e);
} catch (InstantiationException e) {
throw new RuntimeException(e);
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
}

View File

@ -112,6 +112,8 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
private IGardsSpectrumSpectrumService spectrumService;
@Autowired
private IGardsHistogramSpectrumService histogramService;
@Autowired
private RedisStreamUtil redisStreamUtil;
@Override
@ -3905,13 +3907,9 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
}
}
info.setNuclides(nuclides);
RedisStreamUtil.class.newInstance().pushAnalysis(info);
redisStreamUtil.pushAnalysis(info);
} catch (ParseException e) {
throw new RuntimeException(e);
} catch (InstantiationException e) {
throw new RuntimeException(e);
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
}