gamma重新分析增加参数processKey用于区分判断

This commit is contained in:
qiaoqinzheng 2023-11-15 19:04:47 +08:00
parent 27d22a8173
commit 1edb06857d
3 changed files with 5 additions and 7 deletions

View File

@ -77,8 +77,8 @@ public class GammaController {
@PostMapping("Reprocessing")
@ApiOperation(value = "analyze菜单下Reprocessing页面数据", notes = "analyze菜单下Reprocessing页面数据")
public Result Reprocessing(String fileName, HttpServletRequest request) {
return gammaService.Reprocessing(fileName, request);
public Result Reprocessing(String fileName, String processKey, HttpServletRequest request) {
return gammaService.Reprocessing(fileName, processKey, request);
}
@GetMapping("InteractiveTool")

View File

@ -30,7 +30,7 @@ public interface IGammaService{
Result configureSave(ConfigureData configureData, HttpServletRequest request);
Result Reprocessing(String fileName, HttpServletRequest request);
Result Reprocessing(String fileName, String processKey, HttpServletRequest request);
Result InteractiveTool(Integer sampleId, String fileName, HttpServletRequest request);

View File

@ -1024,7 +1024,7 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
}
@Override
public Result Reprocessing(String fileName, HttpServletRequest request) {
public Result Reprocessing(String fileName, String processKey, HttpServletRequest request) {
Result result = new Result();
String userName = JwtUtil.getUserNameByToken(request);
Cache<String, PHDFile> phdCache = localCache.getPHDCache();
@ -1033,9 +1033,7 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
result.error500("Please select the parse file first");
return result;
}
// 获取当前用户信息
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
phd.setUserId(sysUser.getId());
phd.setUserId(processKey);
// 赋值xml文件存放路径
phd.setXmlFilePath(parameterProperties.getFilePath());
// 获取当前角色的颜色配置