Browse Source

首页增加字段

anderx 8 years ago
parent
commit
7441dc7408

+ 8 - 0
src/main/java/com/goafanti/achievement/bo/AchievementRecommended.java

@@ -13,6 +13,8 @@ public class AchievementRecommended {
 	private String fieldA;
 	/**应用领域2*/
 	private String fieldB;
+	/**是否精品*/
+	private String boutique;
 	public String getId() {
 		return id;
 	}
@@ -50,5 +52,11 @@ public class AchievementRecommended {
 	public void setTechnicalPictureUrl(String technicalPictureUrl) {
 		this.technicalPictureUrl = technicalPictureUrl;
 	}
+	public String getBoutique() {
+		return boutique;
+	}
+	public void setBoutique(String boutique) {
+		this.boutique = boutique;
+	}
 	
 }

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

@@ -2145,7 +2145,7 @@
   </select>
  <select id="getAppHomeRecommended" resultType="com.goafanti.achievement.bo.AchievementRecommended">
  	select ap.achievement_id as id,a.name,a.introduction,a.technical_picture_url as technicalpictureUrl,
-	a.field_a,a.field_b,f1.name as fieldA,f2.name as fieldB
+	a.field_a,a.field_b,f1.name as fieldA,f2.name as fieldB,a.boutique
 	from achievement_publish ap 
 	left join achievement a on ap.achievement_id = a.id
 	left join field_glossory f1 on a.field_a=f1.id

+ 5 - 2
src/main/java/com/goafanti/common/mapper/DemandMapper.xml

@@ -2086,10 +2086,13 @@
 	</if>
   </select>
   <select id="getAppHomeRecommended" resultType="com.goafanti.demand.bo.DemandRecommended">
-	  		select dp.demand_id as id,d.name,d.problem_des as introduction,d.picture_url as pictureUrl,
-		d.urgent_days as urgentDays,d.urgent_money as urgentMoney
+	  	select dp.demand_id as id,d.name,d.problem_des as introduction,d.picture_url as pictureUrl,
+		d.urgent_days as urgentDays,d.urgent_money as urgentMoney,d.industry_category_a as industryCategoryA,
+		d.industry_category_b as industryCategoryB,f1.name as fieldA,f2.name as fieldB,d.boutique
 		from demand_publish dp 
 		left join demand d on dp.demand_id = d.id
+		left join field_glossory f1 on d.industry_category_a=f1.id
+		left join field_glossory f2 on d.industry_category_b=f2.id
 	where
 		dp.publish_client = '1'
 		and dp.publish_page = 'W01'

+ 5 - 2
src/main/java/com/goafanti/common/mapper/UserIdentityMapper.xml

@@ -1105,12 +1105,15 @@
   	and t.uid = #{uid,jdbcType=VARCHAR}
   </select>
   <select id="getAppHomeRecommended" resultType="com.goafanti.user.bo.UserIdentityRecommended">
-  select
+  	 select
 	ep.expert_id as id, u.identify_name as name, ui.work_unit as workUnit, u.introduction as introduction,
-	u.head_portrait_url as headPortraitUrl
+	u.head_portrait_url as headPortraitUrl,ifnull(o.x,0) as reservationCount
 from expert_publish ep
 	left join user_identity ui on ep.expert_id = ui.uid
 	left join user u on ep.expert_id = u.id
+	left join (select count(0) as x,seller_id from t_order
+				where order_status != 4
+				group by  seller_id ) o on ep.expert_id=o.seller_id
 where
 	ep.publish_client = '1'
 	and ep.publish_page = 'W01'

+ 25 - 0
src/main/java/com/goafanti/demand/bo/DemandRecommended.java

@@ -13,6 +13,13 @@ public class DemandRecommended {
 	private String urgentMoney;
 	/**加急天数*/
 	private String urgentDays;
+	/**应用领域1*/
+	private String fieldA;
+	/**应用领域2*/
+	private String fieldB;
+	/**是否精品*/
+	private String boutique;
+	
 	
 	public String getId() {
 		return id;
@@ -50,5 +57,23 @@ public class DemandRecommended {
 	public void setPictureUrl(String pictureUrl) {
 		this.pictureUrl = pictureUrl;
 	}
+	public String getFieldA() {
+		return fieldA;
+	}
+	public void setFieldA(String fieldA) {
+		this.fieldA = fieldA;
+	}
+	public String getFieldB() {
+		return fieldB;
+	}
+	public void setFieldB(String fieldB) {
+		this.fieldB = fieldB;
+	}
+	public String getBoutique() {
+		return boutique;
+	}
+	public void setBoutique(String boutique) {
+		this.boutique = boutique;
+	}
 	
 }

+ 8 - 0
src/main/java/com/goafanti/user/bo/UserIdentityRecommended.java

@@ -11,6 +11,8 @@ public class UserIdentityRecommended {
 	private String introduction;
 	/**专家图片*/
 	private String headPortraitUrl;
+	/**预约次数*/
+	private String reservationCount;
 	public String getId() {
 		return id;
 	}
@@ -41,6 +43,12 @@ public class UserIdentityRecommended {
 	public void setHeadPortraitUrl(String headPortraitUrl) {
 		this.headPortraitUrl = headPortraitUrl;
 	}
+	public String getReservationCount() {
+		return reservationCount;
+	}
+	public void setReservationCount(String reservationCount) {
+		this.reservationCount = reservationCount;
+	}