Explorar o código

修改详情页

wanghui %!s(int64=7) %!d(string=hai) anos
pai
achega
e8344357ed

+ 7 - 3
src/main/java/com/goafanti/common/mapper/UserBusinessMapper.xml

@@ -426,11 +426,13 @@
 		a.customer_status as customerStatus,
 		a.remarks,
 		b.identify_name as identifyName,
-		c.name as adminName
+		c.name as adminName,
+		d.bname as businessProjectName
 	from
 		user_business a left join user b on
 		a.uid = b.id left join admin c on
-		a.aid = c.id
+		a.aid = c.id left join business_project d on
+		a.business_project_id = d.id
 	where a.id = #{businessId,jdbcType=VARCHAR}
   </select>
   
@@ -448,7 +450,8 @@
 		d.mobile as contactMobile,
 		b.create_time as followTime,
 		e.name as adminName,
-		f.identify_name as identifyName
+		f.identify_name as identifyName,
+		g.name as businessProjectName
 	from
 		user_follow_business a 
 	left join user_follow b on a.follow_id = b.id
@@ -456,6 +459,7 @@
 	left join organization_contact_book d on b.ocb_id = d.id
 	left join admin e on b.aid = e.id
 	left join user f on b.uid = f.id
+	left join business_project g on a.business_project_id = g.id
 	where a.id = #{ufbId,jdbcType=VARCHAR}
   </select>
 </mapper>

+ 8 - 0
src/main/java/com/goafanti/customer/bo/BussinessFollowBo.java

@@ -14,6 +14,8 @@ public class BussinessFollowBo {
 	private String businessId;
 	/** 意向服务ID **/
 	private String businessProjectId;
+	/** 服务名称 **/
+	private String businessProjectName;
 	/** 跟进状态 **/
 	private String followSituation;
 	/** 客户状态 **/
@@ -64,6 +66,12 @@ public class BussinessFollowBo {
 	public void setBusinessProjectId(String businessProjectId) {
 		this.businessProjectId = businessProjectId;
 	}
+	public String getBusinessProjectName() {
+		return businessProjectName;
+	}
+	public void setBusinessProjectName(String businessProjectName) {
+		this.businessProjectName = businessProjectName;
+	}
 	public String getFollowSituation() {
 		return followSituation;
 	}