diff options
| author | liukai <[email protected]> | 2024-09-02 16:37:21 +0800 |
|---|---|---|
| committer | liukai <[email protected]> | 2024-09-02 16:37:21 +0800 |
| commit | 9cfff8895aab20cb6221134b01e43b915dfd4454 (patch) | |
| tree | bc3781ffe4ecbb8dfab722474c8d425fcdc89fab | |
| parent | e9a584321a90095ddb9f6e163b25308298f9baa9 (diff) | |
处置结果录入
| -rw-r--r-- | src/main/java/com/realtime/protection/server/v1/entity/TCommandTask.java | 14 | ||||
| -rw-r--r-- | src/main/java/com/realtime/protection/server/v1/service/impl/TCommandReportServiceImpl.java | 4 |
2 files changed, 17 insertions, 1 deletions
diff --git a/src/main/java/com/realtime/protection/server/v1/entity/TCommandTask.java b/src/main/java/com/realtime/protection/server/v1/entity/TCommandTask.java index 2168b67..e865434 100644 --- a/src/main/java/com/realtime/protection/server/v1/entity/TCommandTask.java +++ b/src/main/java/com/realtime/protection/server/v1/entity/TCommandTask.java @@ -76,10 +76,22 @@ public class TCommandTask implements Serializable { /** - * 处置任务ID + * 任务ID */ private String taskUuid; + /** + * 处置结果 + */ + private String result; + + public String getResult() { + return result; + } + + public void setResult(String result) { + this.result = result; + } public Long getTaskId() { return taskId; diff --git a/src/main/java/com/realtime/protection/server/v1/service/impl/TCommandReportServiceImpl.java b/src/main/java/com/realtime/protection/server/v1/service/impl/TCommandReportServiceImpl.java index 870b059..0a1672f 100644 --- a/src/main/java/com/realtime/protection/server/v1/service/impl/TCommandReportServiceImpl.java +++ b/src/main/java/com/realtime/protection/server/v1/service/impl/TCommandReportServiceImpl.java @@ -44,6 +44,9 @@ public class TCommandReportServiceImpl implements TCommandReportService { if (task == null) { return 0; } + TCommandTask tCommandTask1 = new TCommandTask(); + tCommandTask1.setId(tCommandReport.getCommandId()); + tCommandTask1.setResult("成功"); tCommandReport.setTaskId(tCommandTask.getTaskId()); tCommandReport.setTaskName(task.getTaskName()); tCommandReport.setUserName(task.getTaskCreateUsername()); @@ -69,6 +72,7 @@ public class TCommandReportServiceImpl implements TCommandReportService { Date date = Date.from(instant); tCommandReport.setTaskEndTime(date); } + tCommandTaskMapper.update(tCommandTask1); return tCommandReportMapper.insert(tCommandReport); } } |
