浏览代码

修改接口数据符合区块链的要求

insomniaLee 5 年之前
父节点
当前提交
7df9dc66b5
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/main/java/com/mooctest/service/BlockchainService.java

+ 3 - 3
src/main/java/com/mooctest/service/BlockchainService.java

@@ -46,9 +46,9 @@ public class BlockchainService {
         JSONArray array = new JSONArray();
         for(FinalReportDTO finalReportDTO : data){
             JSONObject obj = new JSONObject();
-            //Bug bug = bugReportService.getSourceBugById(finalReport.getSourceId());
-            obj.fluentPut("bugId",finalReportDTO.getId());
-            obj.fluentPut("bugName",finalReportDTO.getDescription());
+            Bug bug = bugReportService.getSourceBugById(finalReportDTO.getSourceId());
+            obj.fluentPut("bugId",bug.getId());
+            obj.fluentPut("bugName",bug.getDescription());
             array.add(obj);
         }
         JSONObject wordObj = new JSONObject();