Commit 35f792bc by zhiwj

指标说明

parent 4070391c
......@@ -62,7 +62,7 @@ public class IndexController {
}
@RequestMapping("/update-index")
public RestResponse updateIndex(IndexDTO indexDTO, Integer updateType, String reason) {
public RestResponse updateIndex(IndexDTO indexDTO, String relModuleIds, Integer updateType, String reason) {
if (indexDTO.getIndexId() == null || updateType == null) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg());
}
......@@ -70,6 +70,9 @@ public class IndexController {
String realName = UserUtils.getUser().getRealName();
indexDTO.setOptUserId(id);
indexDTO.setOptUserName(realName);
if (StringUtils.isNotBlank(relModuleIds)) {
indexDTO.setRelModuleIdList(Lists.newArrayList(relModuleIds.split(",")));
}
ServiceResponse<Void> serviceResponse = indexApiService.updateIndex(indexDTO, updateType, reason);
return ResultControllerUtils.commonResult(serviceResponse);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment