Procházet zdrojové kódy

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

insomniaLee před 5 roky
rodič
revize
7df9dc66b5

+ 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();