|
|
@@ -20,6 +20,7 @@ import org.springframework.ui.Model;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
@@ -164,6 +165,7 @@ public class IndexController {
|
|
|
List<JSONObject> carouselList=carouselService.getCarousels(useFor);
|
|
|
//动态获取所有领域分类
|
|
|
List<String> areaList = projectService.allArea();
|
|
|
+
|
|
|
//展示不同的状态列表
|
|
|
if (!Status.ALL.getPhrase().equals(status) && Status.ALL.getPhrase().equals(area)) {
|
|
|
if (Status.LOADING.getPhrase().equals(status)) {
|
|
|
@@ -192,6 +194,7 @@ public class IndexController {
|
|
|
|
|
|
if(!"".equals(search)){
|
|
|
Page<Project> projects=projectService.searchPage(pageable,search);
|
|
|
+ System.out.println("总条数"+projects.getTotalElements());
|
|
|
model.addAttribute("page",projects);
|
|
|
}
|
|
|
|