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