|
|
@@ -9,6 +9,7 @@ import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -87,6 +88,7 @@ public class AppController {
|
|
|
public ModelMap returnActivities(@RequestParam(value="status",defaultValue = "全部")String status,
|
|
|
@RequestParam(value = "keyWork",defaultValue = "")String keyWork){
|
|
|
ModelMap modelMap=new ModelMap();
|
|
|
+ Date before = new Date();
|
|
|
if("全部".equals(status)){
|
|
|
List<Activity> activityList=activityService.findAll();
|
|
|
modelMap.put("activityList",activityList);
|
|
|
@@ -98,6 +100,10 @@ public class AppController {
|
|
|
List<Activity> activityList=activityService.search(keyWork);
|
|
|
modelMap.put("activityList",activityList);
|
|
|
}
|
|
|
+ Date after = new Date();
|
|
|
+ System.out.println("before " + before.getTime());
|
|
|
+ System.out.println("after " + after.getTime());
|
|
|
+ System.out.println("after-before: " + (after.getTime() - before.getTime()));
|
|
|
return modelMap;
|
|
|
}
|
|
|
|