gamma保存configure配置后刷新页面bUpdateCal数据
This commit is contained in:
parent
170081ea08
commit
e3b251ee2d
|
@ -478,7 +478,7 @@ public class GammaController {
|
|||
|
||||
@GetMapping("saveTxt")
|
||||
public Result saveTxt(String fileName, HttpServletRequest request) {
|
||||
return null;
|
||||
return gammaService.saveTxt(fileName, request);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -882,6 +882,7 @@ public class GammaServiceImpl implements IGammaService {
|
|||
@Override
|
||||
public Result configureSave(ConfigureData configureData, HttpServletRequest request) {
|
||||
Result result = new Result();
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
String userName = JwtUtil.getUserNameByToken(request);
|
||||
String fileName = configureData.getFileName();
|
||||
Cache<String, PHDFile> phdCache = localCache.getPHDCache();
|
||||
|
@ -904,7 +905,9 @@ public class GammaServiceImpl implements IGammaService {
|
|||
phdSetting.setKeepCalPeakSearchPeaks(configureData.isKeepCalPeakSearchPeaks());
|
||||
phdSetting.setRefTime_act(configureData.getRefTime_act());
|
||||
phdSetting.setRefTime_conc(configureData.getRefTime_conc());
|
||||
map.put("checkBox_updateCal", phd.getSetting().isBUpdateCal());
|
||||
result.success("保存成功");
|
||||
result.setResult(map);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -1554,6 +1557,7 @@ public class GammaServiceImpl implements IGammaService {
|
|||
result.setResult(map);
|
||||
return result;
|
||||
}
|
||||
|
||||
public List<String> InitList(double energy, double tolerance, List<String> nuclides) {
|
||||
if(nuclides.size() < 1){
|
||||
return new LinkedList<>();
|
||||
|
@ -1776,13 +1780,8 @@ public class GammaServiceImpl implements IGammaService {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void exportZeroTimeAnalyse(String nuclide1, String nuclide2,
|
||||
Double product1, Double product2,
|
||||
String target, String energyTFH,
|
||||
String date, String time,
|
||||
HttpServletResponse response) {
|
||||
Result<Map<String, Object>> result = ZeroTimeAnalyse(nuclide1, nuclide2,
|
||||
product1, product2, target, energyTFH, date, time);
|
||||
public void exportZeroTimeAnalyse(String nuclide1, String nuclide2, Double product1, Double product2, String target, String energyTFH, String date, String time, HttpServletResponse response) {
|
||||
Result<Map<String, Object>> result = ZeroTimeAnalyse(nuclide1, nuclide2, product1, product2, target, energyTFH, date, time);
|
||||
Map<String, Object> annlyse = result.getResult();
|
||||
annlyse.put("nuclide1", nuclide1);
|
||||
annlyse.put("nuclide2", nuclide2);
|
||||
|
|
Loading…
Reference in New Issue
Block a user