Browse Source

在关注功能上新增项目关注功能,与我的关注内增加我关注的项目

anderx 8 years ago
parent
commit
9f131cfd8d

+ 10 - 0
src/main/java/com/goafanti/app/bo/ProjectBo.java

@@ -10,6 +10,8 @@ public class ProjectBo {
 	private String introduce;
 	
 	private String interestCount;
+	
+	private String boutique;
 
 	public String getId() {
 		return id;
@@ -50,4 +52,12 @@ public class ProjectBo {
 	public void setInterestCount(String interestCount) {
 		this.interestCount = interestCount;
 	}
+
+	public String getBoutique() {
+		return boutique;
+	}
+
+	public void setBoutique(String boutique) {
+		this.boutique = boutique;
+	}
 }

+ 1 - 1
src/main/java/com/goafanti/app/controller/AppServiceController.java

@@ -16,7 +16,7 @@ import com.goafanti.user.service.UserIdentityService;
 
 
 @RestController
-@RequestMapping(path = "/app/service", method = RequestMethod.GET)
+@RequestMapping(path = "/open/app/service", method = RequestMethod.GET)
 public class AppServiceController extends BaseApiController {
 	@Resource
 	private BusinessVarietiesService	adminVarietiesService;

+ 2 - 1
src/main/java/com/goafanti/common/mapper/BusinessProjectMapper.xml

@@ -738,12 +738,13 @@
   
   
   <select id="findRecommendProjectListByPage" resultType="com.goafanti.app.bo.ProjectBo">
- 		select b.id,b.bname as name,b.min_logo as minLogoUrl,b.introduce,ifnull(t.interestCount,0) as interestCount
+ 		select b.id,b.bname as name,b.min_logo as minLogoUrl,b.introduce,b.boutique,ifnull(t.interestCount,0) as interestCount
   		from business_project b
   		left join (select count(0)  as interestCount ,project_id from project_interest 
 				group by project_id) t on b.id=t.project_id
   		where b.delete_sign=0 
   		and b.status=0
+  		order by b.boutique desc
   		<if test="page_sql!=null">
 			${page_sql}
 		</if>