REM:
1. 修复部分CheckStyle检测警告
This commit is contained in:
HuangXin 2020-10-23 17:51:46 +08:00
parent b71e59ed97
commit c27457ef11
3 changed files with 19 additions and 4 deletions

View File

@ -84,10 +84,16 @@ public class DisposeTaskController {
@Resource
private UserAccountService userAccountService;
/**
* Start dispose task protocol resp dto.
*
* @param mr the mr
* @param headers the headers
* @return the protocol resp dto
*/
@PostMapping("/startDispose")
@ResponseBody
@ApiOperation("启动处置任务")
public ProtocolRespDTO<DisposeTaskStartRsp> startDisposeTask(@Validated(ValidGroups.TaskStartReqValid.class)
@RequestBody ProtocolReqDTO<DisposeTaskStartReq> mr,
@NotNull @RequestHeader HttpHeaders headers) {
@ -321,6 +327,12 @@ public class DisposeTaskController {
return ProtocolRespDTO.result(ErrorCode.ERR_OK, rspList);
}
/**
* Gets all dispose task.
*
* @param mr the mr
* @return the all dispose task
*/
@PostMapping("/taskList")
@ResponseBody
@ApiOperation("获取处置任务")

View File

@ -36,7 +36,7 @@ public class RestfulLog {
/**
* The Object mapper.
*/
private final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
private final ObjectMapper objectMapper = new ObjectMapper();
/**
* Dispose project exception.
@ -58,7 +58,7 @@ public class RestfulLog {
if (attributes != null) {
for (Object obj : jp.getArgs()) {
if (obj instanceof ProtocolReqDTO) {
requestMap.put(attributes.hashCode(), OBJECT_MAPPER.writeValueAsString(obj));
requestMap.put(attributes.hashCode(), objectMapper.writeValueAsString(obj));
break;
}
}
@ -92,7 +92,7 @@ public class RestfulLog {
"+++ Request: {}\n" +
"--- Response: {}",
reqType, reqPath, reqIp, reqToken, requestMap.get(attributes.hashCode()),
OBJECT_MAPPER.writeValueAsString(ret));
objectMapper.writeValueAsString(ret));
}
}
}

View File

@ -28,5 +28,8 @@ public class BaseIdResp extends BaseRespStatus {
*/
private String devId;
/**
* The Task id.
*/
private String taskId;
}