Browse Source

专家列表显示BUG修复

anderx 8 years ago
parent
commit
f50fa22482

+ 5 - 2
src/main/java/com/goafanti/app/bo/HomeImages.java

@@ -10,12 +10,15 @@ public class HomeImages {
 	
 	public String img3="/customer_sys_file/1/GG3.jpg";
 	
+	public String img4="/customer_sys_file/1/GG4.jpg";
+	
 	private List<HomeImgBo> imagers=new ArrayList<>();
 	
 	public  List<HomeImgBo> getImagers() {
 		imagers.add(new HomeImgBo("065de736-9b40-4678-93bc-e95f5e8c529b",img1,"成果"));
-		imagers.add(new HomeImgBo("739aed36-6ee6-406f-b03e-97d719b484b9",img1,"需求"));
-		imagers.add(new HomeImgBo("af430be8-7752-43ac-ad82-27f02be317e6",img1,"专家"));
+		imagers.add(new HomeImgBo("739aed36-6ee6-406f-b03e-97d719b484b9",img2,"需求"));
+		imagers.add(new HomeImgBo("af430be8-7752-43ac-ad82-27f02be317e6",img3,"专家"));
+		imagers.add(new HomeImgBo(null,img4,null));
 		return imagers;
 	}
 	

+ 0 - 2
src/main/java/com/goafanti/app/controller/OpenAppHomeController.java

@@ -22,8 +22,6 @@ public class OpenAppHomeController extends BaseApiController{
 	@RequestMapping(value = "/getHomePageData", method = RequestMethod.GET)
 	public Result getHomePageData(HttpServletRequest  request){
 		Result res = new Result();
-		String basePath = request.getServerName();
-		System.out.println("basePath:-------------------"+basePath);
 		res.setData(appHomePageService.getAppHomePage());
 		return res;
 	}

+ 4 - 1
src/main/java/com/goafanti/user/bo/UserIdentityBo.java

@@ -101,7 +101,10 @@ public class UserIdentityBo extends UserIdentity {
 	}
 
 	public String getCountInterest() {
-		return String.valueOf(Integer.valueOf(countInterest)+20);
+		if(countInterest!=null){
+			return String.valueOf(Integer.valueOf(countInterest)+20);
+		}
+		return "20";
 	}
 
 	public void setCountInterest(String countInterest) {

+ 1 - 4
src/main/java/com/goafanti/user/service/impl/UserIdentityServiceImpl.java

@@ -350,10 +350,7 @@ public class UserIdentityServiceImpl extends BaseMybatisDao<UserIdentityMapper>
 		
 		Pagination<UserIdentityBo> p= (Pagination<UserIdentityBo>) findPage("findUserIdentityListByPage",
 				"findUserIdentityCount", params, pNo, pSize);
-		List<UserIdentityBo> l=(List<UserIdentityBo>) p.getList();
-		for (UserIdentityBo u : l) {
-			System.out.println(u.toString());
-		}
+		
 		return p;
 		}