소스 검색

客户管理-查询所有联系人

wanghui 8 년 전
부모
커밋
a185890160

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

@@ -405,6 +405,7 @@
 			a.create_time as followTime,
 			b.identify_name as identifyName,
 			c.name as contacts,
+			c.mobile as contactType,
 			d.name as adminName
 		from
 			user_follow a
@@ -423,6 +424,6 @@
 		a.business_glossory_id as businessGlossoryId
 		from
 		user_follow_business a
-		where a.id = #{followId,jdbcType=VARCHAR}
+		where a.follow_id = #{followId,jdbcType=VARCHAR}
 	</select>
 </mapper>

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

@@ -18,6 +18,8 @@ public class FollowBusinessBo {
 	private String identityName;
 	/** 当前联系人姓名 **/
 	private String contacts;
+	/** 当前联系电话 **/
+	private String contactMobile;
 	/** 需要保存的联系人ID **/
 	private String ocbId;
 	/** 拜访方式 **/
@@ -55,6 +57,12 @@ public class FollowBusinessBo {
 	public void setContacts(String contacts) {
 		this.contacts = contacts;
 	}
+	public String getContactMobile() {
+		return contactMobile;
+	}
+	public void setContactMobile(String contactMobile) {
+		this.contactMobile = contactMobile;
+	}
 	public String getOcbId() {
 		return ocbId;
 	}

+ 1 - 1
src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

@@ -226,7 +226,7 @@ public class CustomerServiceImpl  extends BaseMybatisDao<UserMapper> implements
 		OrganizationContactBook cob = new OrganizationContactBook();
 		cob.setAid(TokenManager.getAdminId());
 		cob.setId(UUID.randomUUID().toString());
-		cob.setUid(identifyId);
+		cob.setUid(uid);
 		cob.setName(contacts);
 		cob.setMobile(contactMobile);
 		organizationContactBookMapper.insert(cob);