parent
b71e59ed97
commit
c27457ef11
|
@ -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("获取处置任务")
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,5 +28,8 @@ public class BaseIdResp extends BaseRespStatus {
|
|||
*/
|
||||
private String devId;
|
||||
|
||||
/**
|
||||
* The Task id.
|
||||
*/
|
||||
private String taskId;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue