parent
b71e59ed97
commit
c27457ef11
|
@ -84,10 +84,16 @@ public class DisposeTaskController {
|
||||||
@Resource
|
@Resource
|
||||||
private UserAccountService userAccountService;
|
private UserAccountService userAccountService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Start dispose task protocol resp dto.
|
||||||
|
*
|
||||||
|
* @param mr the mr
|
||||||
|
* @param headers the headers
|
||||||
|
* @return the protocol resp dto
|
||||||
|
*/
|
||||||
@PostMapping("/startDispose")
|
@PostMapping("/startDispose")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@ApiOperation("启动处置任务")
|
@ApiOperation("启动处置任务")
|
||||||
|
|
||||||
public ProtocolRespDTO<DisposeTaskStartRsp> startDisposeTask(@Validated(ValidGroups.TaskStartReqValid.class)
|
public ProtocolRespDTO<DisposeTaskStartRsp> startDisposeTask(@Validated(ValidGroups.TaskStartReqValid.class)
|
||||||
@RequestBody ProtocolReqDTO<DisposeTaskStartReq> mr,
|
@RequestBody ProtocolReqDTO<DisposeTaskStartReq> mr,
|
||||||
@NotNull @RequestHeader HttpHeaders headers) {
|
@NotNull @RequestHeader HttpHeaders headers) {
|
||||||
|
@ -321,6 +327,12 @@ public class DisposeTaskController {
|
||||||
return ProtocolRespDTO.result(ErrorCode.ERR_OK, rspList);
|
return ProtocolRespDTO.result(ErrorCode.ERR_OK, rspList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets all dispose task.
|
||||||
|
*
|
||||||
|
* @param mr the mr
|
||||||
|
* @return the all dispose task
|
||||||
|
*/
|
||||||
@PostMapping("/taskList")
|
@PostMapping("/taskList")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@ApiOperation("获取处置任务")
|
@ApiOperation("获取处置任务")
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class RestfulLog {
|
||||||
/**
|
/**
|
||||||
* The Object mapper.
|
* The Object mapper.
|
||||||
*/
|
*/
|
||||||
private final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
|
private final ObjectMapper objectMapper = new ObjectMapper();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dispose project exception.
|
* Dispose project exception.
|
||||||
|
@ -58,7 +58,7 @@ public class RestfulLog {
|
||||||
if (attributes != null) {
|
if (attributes != null) {
|
||||||
for (Object obj : jp.getArgs()) {
|
for (Object obj : jp.getArgs()) {
|
||||||
if (obj instanceof ProtocolReqDTO) {
|
if (obj instanceof ProtocolReqDTO) {
|
||||||
requestMap.put(attributes.hashCode(), OBJECT_MAPPER.writeValueAsString(obj));
|
requestMap.put(attributes.hashCode(), objectMapper.writeValueAsString(obj));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@ public class RestfulLog {
|
||||||
"+++ Request: {}\n" +
|
"+++ Request: {}\n" +
|
||||||
"--- Response: {}",
|
"--- Response: {}",
|
||||||
reqType, reqPath, reqIp, reqToken, requestMap.get(attributes.hashCode()),
|
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;
|
private String devId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The Task id.
|
||||||
|
*/
|
||||||
private String taskId;
|
private String taskId;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue