xujiawei 5 anni fa
parent
commit
52926e2379

+ 2 - 2
src/main/java/edu/nju/controller/RecommendController.java

@@ -132,8 +132,8 @@ public class RecommendController {
 			List<Float> scores = new ArrayList<Float>();
 			Set<BugMirror> mirror2 = new HashSet<BugMirror>();
 			Map<BugMirror, Float> map;
-			System.out.println(type);
-			System.out.println(content);
+//			System.out.println(type);
+//			System.out.println(content);
 			if(type.equals("title") || type.equals("description")) {
 				if(type.equals("title")) {map = recservice.recommandByTitle(content, session);}
 				else {map = recservice.recommandByDes(content, session);}

+ 2 - 2
src/main/java/edu/nju/service/ReviewAnalyzeService.java

@@ -145,7 +145,7 @@ public class ReviewAnalyzeService {
                 cTemp.setCellValue("r.getNamewhile i = " + it);
                 rIndex = temp+1;
             }
-            fileOut = new FileOutputStream("/Users/insomniaLee/Desktop/temp/13.xls");
+            fileOut = new FileOutputStream("/Users/xujiawei/Desktop/temp/13.xls");
             wb.write(fileOut);
             return true;
         }catch (Exception e){
@@ -225,7 +225,7 @@ public class ReviewAnalyzeService {
                     }
                 }
                 temp = rIndex + tempRI-1;
-                if(temp!=rIndex){
+                if(temp>rIndex){
                     sheet1.addMergedRegion(new CellRangeAddress(rIndex,temp,0,0));
                 }
                 rTemp = sheet1.getRow(rIndex);