Browse Source

subscriber 页面

Antiloveg 8 years ago
parent
commit
235de9f8fe

+ 4 - 0
schema/2017-06-12.sql

@@ -0,0 +1,4 @@
+alter table `user_identity`
+add column `expert` int(1) null comment '专家(0--否,1--是)',
+add column `celebrity` int(1) null comment '明星(0--否,1--是)';
+

+ 8 - 0
src/main/java/com/goafanti/common/controller/WebpageController.java

@@ -158,6 +158,14 @@ public class WebpageController extends BaseController {
 		return modelview;
 	}
 	
+	@RequestMapping(value = "/portal/search/subscriber", method = RequestMethod.GET)
+	public ModelAndView portalSearchSubscriber(HttpServletRequest request, ModelAndView modelview) {
+		modelview.setViewName("/portal/search/subscriber");
+		return modelview;
+	}
+	
+	
+	
 	
 	private ModelAndView userLogin(HttpServletRequest request, ModelAndView modelview, String next) {
 		String key = TokenManager.getUserId();

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

@@ -1151,6 +1151,39 @@
 	</select>
 	
 	
-
+	<select id="findSearchSubscriberListByPage" parameterType="String" resultType="com.goafanti.portal.bo.OrgSubscriberListBo">
+ 	SELECT 
+	 	x.uid, x.unitName, count(a.id) as achievementNum, 
+	 	count(d.id) as demandNum, x.identityId, x.logoUrl
+	FROM
+	(
+		SELECT
+			u.id as uid, oi.unit_name as unitName, u.number
+			oi.id as identityId, info.logo_url as logoUrl,
+			oi.licence_province 
+		FROM
+			USER u
+		LEFT JOIN organization_identity oi ON oi.uid = u.id
+		LEFT JOIN organization_info info on info.uid = u.id
+		WHERE
+			u.type = 1
+		<if test="null != level and level==1 ">
+			AND u.lvl <![CDATA[ >= ]]> 1 
+		</if>
+		<if test="null !=level and level==0" >
+			AND u.lvl = 0
+		</if>
+		<if test="province != null">
+			AND ui.licence_province = #{province,jdbcType=VARCHAR}
+		</if>
+	) x
+	LEFT JOIN achievement a ON a.owner_id = x.uid AND a.release_status = 1
+	AND a.audit_status = 3 AND a.deleted_sign = 0
+	LEFT JOIN demand d ON d.employer_id = x.uid AND d.audit_status = 3
+	AND d.release_status = 1 AND d.deleted_sign = 0
+	GROUP BY
+		x.uid 
+	ORDER BY x.number 
+ </select>
 
 </mapper>

+ 66 - 12
src/main/java/com/goafanti/common/mapper/UserIdentityMapper.xml

@@ -24,11 +24,14 @@
     <result column="process" property="process" jdbcType="INTEGER" />
     <result column="wrong_count" property="wrongCount" jdbcType="INTEGER" />
     <result column="payment_date" property="paymentDate" jdbcType="TIMESTAMP" />
+    <result column="expert" property="expert" jdbcType="INTEGER" />
+    <result column="celebrity" property="celebrity" jdbcType="INTEGER" />
   </resultMap>
   <sql id="Base_Column_List" >
     id, uid, username, sex, date_of_birth_year, date_of_birth_month, id_number, positive_id_url, 
     opposite_id_url, aft_username, province, city, area, contact_mobile, bank_name, bank_account, 
-    bank_card_number, amount_money, audit_status, process , wrong_count, payment_date
+    bank_card_number, amount_money, audit_status, process , wrong_count, payment_date,
+    expert, celebrity
   </sql>
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
     select 
@@ -47,14 +50,16 @@
       aft_username, province, city, 
       area, contact_mobile, bank_name, 
       bank_account, bank_card_number, amount_money, 
-      audit_status, process, wrong_count, payment_date)
+      audit_status, process, wrong_count, payment_date,
+      expert, celebrity)
     values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, 
       #{sex,jdbcType=VARCHAR}, #{dateOfBirthYear,jdbcType=VARCHAR}, #{dateOfBirthMonth,jdbcType=VARCHAR}, 
       #{idNumber,jdbcType=VARCHAR}, #{positiveIdUrl,jdbcType=VARCHAR}, #{oppositeIdUrl,jdbcType=VARCHAR}, 
       #{aftUsername,jdbcType=VARCHAR}, #{province,jdbcType=INTEGER}, #{city,jdbcType=INTEGER}, 
       #{area,jdbcType=INTEGER}, #{contactMobile,jdbcType=VARCHAR}, #{bankName,jdbcType=VARCHAR}, 
       #{bankAccount,jdbcType=VARCHAR}, #{bankCardNumber,jdbcType=VARCHAR}, #{amountMoney,jdbcType=DECIMAL}, 
-      #{auditStatus,jdbcType=INTEGER}, #{process,jdbcType=INTEGER}, #{wrongCount,jdbcType=INTEGER}, #{paymentDate,jdbcType=TIMESTAMP})
+      #{auditStatus,jdbcType=INTEGER}, #{process,jdbcType=INTEGER}, #{wrongCount,jdbcType=INTEGER}, #{paymentDate,jdbcType=TIMESTAMP},
+      #{expert,jdbcType=INTEGER}, #{celebrity,jdbcType=INTEGER})
   </insert>
   <insert id="insertSelective" parameterType="com.goafanti.common.model.UserIdentity" >
     insert into user_identity
@@ -125,6 +130,12 @@
       <if test="paymentDate != null" >
         payment_date,
       </if>
+      <if test="expert != null" >
+        expert,
+      </if>
+      <if test="celebrity != null" >
+        celebrity,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides="," >
       <if test="id != null" >
@@ -193,6 +204,12 @@
       <if test="paymentDate != null" >
         #{paymentDate,jdbcType=TIMESTAMP},
       </if>
+       <if test="expert != null" >
+        #{expert,jdbcType=INTEGER},
+      </if>
+       <if test="celebrity != null" >
+        #{celebrity,jdbcType=INTEGER},
+      </if>
     </trim>
   </insert>
   <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.UserIdentity" >
@@ -261,6 +278,12 @@
       <if test="paymentDate != null" >
         payment_date = #{paymentDate,jdbcType=TIMESTAMP},
       </if>
+       <if test="expert != null" >
+        expert = #{expert,jdbcType=INTEGER},
+      </if>
+       <if test="celebrity != null" >
+        celebrity = #{celebrity,jdbcType=INTEGER},
+      </if>
     </set>
     where id = #{id,jdbcType=VARCHAR}
   </update>
@@ -286,7 +309,9 @@
       audit_status = #{auditStatus,jdbcType=INTEGER},
       process = #{process,jdbcType=INTEGER},
       wrong_count = #{wrongCount,jdbcType=INTEGER},
-      payment_date = #{paymentDate,jdbcType=TIMESTAMP}
+      payment_date = #{paymentDate,jdbcType=TIMESTAMP},
+      expert = #{expert,jdbcType=INTEGER},
+      celebrity = #{celebrity,jdbcType=INTEGER},
     where id = #{id,jdbcType=VARCHAR}
   </update>
   
@@ -311,7 +336,7 @@
   		ui.date_of_birth_month as dateOfBirthMonth, ui.id_number as idNumber, ui.positive_id_url as positiveIdUrl,
   		ui.opposite_id_url as oppositeIdUrl, ui.aft_username as aftUsername, ui.province, ui.city, ui.area, ui.contact_mobile as contactMobile,
   		ui.bank_name as bankName, ui.bank_account as bankAccount, ui.bank_card_number as bankCardNumber, ui.amount_money as amountMoney,
-  		ui.audit_status as auditStatus, ui.payment_date as paymentDate
+  		ui.audit_status as auditStatus, ui.payment_date as paymentDate, ui.expert, ui.celebrity
   	from user u 
   	LEFT JOIN user_identity ui on u.id = ui.uid
   	where u.id = #{uid,jdbcType=VARCHAR}
@@ -327,9 +352,9 @@
 		<if test="_parameter != null">
 			and u.mid = #{aid,jdbcType=VARCHAR}
 		</if>
-	</select>
+ </select>
 	
-	<select id="selectAllUserNames" resultType="com.goafanti.user.bo.UserNames"
+ <select id="selectAllUserNames" resultType="com.goafanti.user.bo.UserNames"
 		parameterType="java.lang.String">
 		select u.id as uid, i.username
 		from user u INNER JOIN
@@ -339,9 +364,9 @@
 		<if test="_parameter != null">
 			and u.aid = #{aid,jdbcType=VARCHAR}
 		</if>
-	</select>
+ </select>
 	
-	<select id="selectManagerAchievementUserOwner" resultType="com.goafanti.user.bo.UserNames">
+ <select id="selectManagerAchievementUserOwner" resultType="com.goafanti.user.bo.UserNames">
 		select u.id as uid, ui.username, u.mobile
 			from user u INNER JOIN 
 			user_identity ui on u.id = ui.uid
@@ -352,9 +377,9 @@
 				and u.mid = #{aid,jdbcType=VARCHAR}
 			</if>
 			
-	</select>
+ </select>
 	
-	<select id="selectAchievementUserOwner" resultType="com.goafanti.user.bo.UserNames">
+ <select id="selectAchievementUserOwner" resultType="com.goafanti.user.bo.UserNames">
 		select u.id as uid, ui.username, u.mobile
 			from user u INNER JOIN 
 			user_identity ui on u.id = ui.uid
@@ -365,6 +390,35 @@
 				and u.aid = #{aid,jdbcType=VARCHAR}
 			</if>
 			
-	</select>
+ </select>
+	
+ <select id="findSearchSubscriberListByPage" parameterType="String" resultType="com.goafanti.portal.bo.UserSubscriberListBo">
+ 	SELECT 
+	 	x.uid, x.unitName, count(a.id) as achievementNum, 
+	 	count(d.id) as demandNum
+	FROM
+	(
+		SELECT
+			u.id as uid, oi.unit_name as unitName, u.number
+			oi.id as identityId
+		FROM
+			USER u
+		LEFT JOIN organization_identity oi ON oi.uid = u.id
+		WHERE
+			u.type = 1
+		<if test="null != level and level==1 ">
+			AND u.lvl <![CDATA[ >= ]]> 1 
+		</if>
+		<if test="null !=level and level==0" >
+			AND u.lvl = 0
+		</if>
+	) x
+	LEFT JOIN achievement a ON a.owner_id = x.uid AND a.release_status = 1
+	AND a.audit_status = 3 AND a.deleted_sign = 0
+	LEFT JOIN demand d ON d.employer_id = x.uid AND d.audit_status = 3
+	AND d.release_status = 1 AND d.deleted_sign = 0
+	GROUP BY
+		(x.uid) ORDER BY (x.number) 
+ </select>
   
 </mapper>

+ 26 - 0
src/main/java/com/goafanti/common/model/UserIdentity.java

@@ -113,6 +113,16 @@ public class UserIdentity {
      * 打款日期
      */
     private Date paymentDate;
+    
+    /**
+     * 专家
+     */
+    private Integer expert;
+    
+    /**
+     * 明星
+     */
+    private Integer celebrity;
 
     public String getId() {
         return id;
@@ -292,6 +302,22 @@ public class UserIdentity {
 		this.paymentDate = paymentDate;
 	}
 	
+	public Integer getExpert() {
+		return expert;
+	}
+
+	public void setExpert(Integer expert) {
+		this.expert = expert;
+	}
+
+	public Integer getCelebrity() {
+		return celebrity;
+	}
+
+	public void setCelebrity(Integer celebrity) {
+		this.celebrity = celebrity;
+	}
+
 	//打款日期
 	public String getPaymentDateFormattedDate(){
 		if (this.paymentDate == null) {

+ 64 - 0
src/main/java/com/goafanti/portal/bo/OrgSubscriberListBo.java

@@ -0,0 +1,64 @@
+package com.goafanti.portal.bo;
+
+public class OrgSubscriberListBo {
+	private String	uid;
+
+	private String	identityId;
+
+	private String	unitName;
+
+	private Integer	achievementNum;
+
+	private Integer	demandNum;
+
+	private String	logoUrl;
+
+	public String getUid() {
+		return uid;
+	}
+
+	public void setUid(String uid) {
+		this.uid = uid;
+	}
+
+	public String getIdentityId() {
+		return identityId;
+	}
+
+	public void setIdentityId(String identityId) {
+		this.identityId = identityId;
+	}
+
+	public String getUnitName() {
+		return unitName;
+	}
+
+	public void setUnitName(String unitName) {
+		this.unitName = unitName;
+	}
+
+	public Integer getAchievementNum() {
+		return achievementNum;
+	}
+
+	public void setAchievementNum(Integer achievementNum) {
+		this.achievementNum = achievementNum;
+	}
+
+	public Integer getDemandNum() {
+		return demandNum;
+	}
+
+	public void setDemandNum(Integer demandNum) {
+		this.demandNum = demandNum;
+	}
+
+	public String getLogoUrl() {
+		return logoUrl;
+	}
+
+	public void setLogoUrl(String logoUrl) {
+		this.logoUrl = logoUrl;
+	}
+
+}

+ 7 - 0
src/main/java/com/goafanti/portal/bo/UserSubscriberListBo.java

@@ -0,0 +1,7 @@
+package com.goafanti.portal.bo;
+
+public class UserSubscriberListBo {
+	private String uid;
+	//private Integer 
+
+}

+ 50 - 4
src/main/java/com/goafanti/portal/controller/PortalSearchApiController.java

@@ -11,16 +11,28 @@ import org.springframework.web.bind.annotation.RestController;
 
 import com.goafanti.achievement.service.AchievementService;
 import com.goafanti.common.bo.Result;
+import com.goafanti.common.constant.ErrorConstants;
 import com.goafanti.common.controller.BaseApiController;
+import com.goafanti.common.enums.UserLevel;
+import com.goafanti.common.enums.UserType;
+import com.goafanti.core.mybatis.page.Pagination;
 import com.goafanti.demand.service.DemandService;
+import com.goafanti.portal.bo.OrgSubscriberListBo;
+import com.goafanti.portal.bo.UserSubscriberListBo;
+import com.goafanti.user.service.OrganizationIdentityService;
+import com.goafanti.user.service.UserIdentityService;
 
 @RestController
 @RequestMapping(value = "/portal/search")
 public class PortalSearchApiController extends BaseApiController {
 	@Resource
-	private AchievementService			achievementService;
+	private AchievementService	achievementService;
 	@Resource
-	private DemandService				demandService;
+	private DemandService		demandService;
+	@Resource
+	private UserIdentityService	userIdentityService;
+	@Resource
+	private OrganizationIdentityService organizationIdentityService;
 
 	/**
 	 * 科技成果搜索
@@ -47,7 +59,7 @@ public class PortalSearchApiController extends BaseApiController {
 	 * 科技需求搜索
 	 */
 	@RequestMapping(value = "/demandList", method = RequestMethod.GET)
-	public Result demandSerarchList(String keyword, Integer industryCategoryA, Integer industryCategoryB,
+	public Result demandSearchList(String keyword, Integer industryCategoryA, Integer industryCategoryB,
 			Integer demandType, BigDecimal budgetCostLower, BigDecimal budgetCostUpper, String pageNo,
 			String pageSize) {
 		Result res = new Result();
@@ -64,6 +76,40 @@ public class PortalSearchApiController extends BaseApiController {
 		return res;
 	}
 
-	
+	/**
+	 * 用户搜索
+	 */
+	@RequestMapping(value = "subscriberList", method = RequestMethod.GET)
+	public Result subscriberSearchList(Integer level, Integer type, String field, Integer province,String pageNo, String pageSize) {
+		Result res = new Result();
+		if (null == type){
+			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "", "用户类型"));
+			return res;
+		}
+		
+		if (!UserType.PERSONAL.getCode().equals(type) && !UserType.ORGANIZATION.getCode().equals(type)){
+			res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "用户类型"));
+			return res;
+		}
+		
+		if (null != level && !UserLevel.GENERAL.getCode().equals(level) && !UserLevel.CERTIFIED.getCode().equals(level)){
+			res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "用户认证标记"));
+			return res;
+		}
+		Integer pNo = 1;
+		Integer pSize = 10;
+		if (StringUtils.isNumeric(pageSize)) {
+			pSize = Integer.parseInt(pageSize);
+		}
+		if (StringUtils.isNumeric(pageNo)) {
+			pNo = Integer.parseInt(pageNo);
+		}
+		if (UserType.PERSONAL.getCode().equals(type)){
+			Pagination<UserSubscriberListBo> pp = userIdentityService.listSubscriber(level, field, province, pNo, pSize);
+		} else {
+			Pagination<OrgSubscriberListBo> aa = organizationIdentityService.listSubscriber(level, field, province, pNo, pSize);
+		}
+		return res;
+	}
 
 }

+ 24 - 0
src/main/java/com/goafanti/user/bo/InputUserIdentity.java

@@ -87,6 +87,30 @@ public class InputUserIdentity {
 
 	private Date		paymentDate;
 	
+	@Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
+	@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
+	private Integer expert;
+	
+	@Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
+	@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
+	private Integer celebrity;
+	
+	public Integer getExpert() {
+		return expert;
+	}
+
+	public void setExpert(Integer expert) {
+		this.expert = expert;
+	}
+
+	public Integer getCelebrity() {
+		return celebrity;
+	}
+
+	public void setCelebrity(Integer celebrity) {
+		this.celebrity = celebrity;
+	}
+
 	public Integer getLevel() {
 		return level;
 	}

+ 4 - 0
src/main/java/com/goafanti/user/service/OrganizationIdentityService.java

@@ -6,6 +6,8 @@ import java.util.Map;
 import com.goafanti.common.bo.Result;
 import com.goafanti.common.model.OrgHumanResource;
 import com.goafanti.common.model.OrganizationIdentity;
+import com.goafanti.core.mybatis.page.Pagination;
+import com.goafanti.portal.bo.OrgSubscriberListBo;
 import com.goafanti.user.bo.AuditorOrgIdentityDetailBo;
 import com.goafanti.user.bo.OrgBasicInfoBo;
 import com.goafanti.user.bo.OrgIdentityBo;
@@ -42,6 +44,8 @@ public interface OrganizationIdentityService {
 
 	int updateOrgDetailByAuditAdmin(OrganizationIdentity oi, String aid, String mid, Integer level);
 
+	Pagination<OrgSubscriberListBo> listSubscriber(Integer level, String field, Integer province, Integer pNo, Integer pSize);
+
 
 
 	

+ 4 - 0
src/main/java/com/goafanti/user/service/UserIdentityService.java

@@ -2,6 +2,8 @@ package com.goafanti.user.service;
 
 import com.goafanti.common.bo.Result;
 import com.goafanti.common.model.UserIdentity;
+import com.goafanti.core.mybatis.page.Pagination;
+import com.goafanti.portal.bo.UserSubscriberListBo;
 import com.goafanti.user.bo.AuditorUserIdentityDetailBo;
 import com.goafanti.user.bo.UserIdentityBo;
 
@@ -27,6 +29,8 @@ public interface UserIdentityService {
 
 	int updateUserDetailByAuditAdmin(UserIdentity ui, String aid, String mid, Integer level);
 
+	Pagination<UserSubscriberListBo> listSubscriber(Integer level, String field, Integer province, Integer pNo, Integer pSize);
+
 
 
 }

+ 36 - 0
src/main/java/com/goafanti/user/service/impl/OrganizationIdentityServiceImpl.java

@@ -2,6 +2,7 @@ package com.goafanti.user.service.impl;
 
 import java.util.ArrayList;
 import java.util.Calendar;
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.TreeMap;
@@ -31,7 +32,9 @@ import com.goafanti.common.model.OrgRatepay;
 import com.goafanti.common.model.OrganizationIdentity;
 import com.goafanti.common.model.User;
 import com.goafanti.core.mybatis.BaseMybatisDao;
+import com.goafanti.core.mybatis.page.Pagination;
 import com.goafanti.core.shiro.token.TokenManager;
+import com.goafanti.portal.bo.OrgSubscriberListBo;
 import com.goafanti.user.bo.AuditorOrgIdentityDetailBo;
 import com.goafanti.user.bo.OrgBasicInfoBo;
 import com.goafanti.user.bo.OrgIdentityBo;
@@ -223,6 +226,37 @@ public class OrganizationIdentityServiceImpl extends BaseMybatisDao<Organization
 	public AuditorOrgIdentityDetailBo selectAuditorOrgIdentityDetailByUserId(String uid) {
 		return organizationIdentityMapper.selectAuditorOrgIdentityDetailByUserId(uid);
 	}
+	
+	@SuppressWarnings("unchecked")
+	@Override
+	public Pagination<OrgSubscriberListBo> listSubscriber(Integer level, String field, Integer province, Integer pNo, Integer pSize) {
+		Map<String, Object> params = new HashMap<>();
+
+		if (null != level) {
+			params.put("level", level);
+		}
+
+		if (StringUtils.isNotBlank(field)) {
+			params.put("field", field);
+		}
+
+		if (null != province) {
+			params.put("province", province);
+		}
+		if (pNo == null || pNo < 0) {
+			pNo = 1;
+		}
+
+		if (pSize == null || pSize < 0 || pSize > 10) {
+			pSize = 10;
+		}
+		return (Pagination<OrgSubscriberListBo>) findPage("findSearchSubscriberListByPage",
+				"findSearchSubscriberCount", params, pNo, pSize);
+	}
+	
+	
+	
+	
 
 	// 给业务员及客户经理发送通知
 	private void createNotice(User u, Integer status) {
@@ -298,4 +332,6 @@ public class OrganizationIdentityServiceImpl extends BaseMybatisDao<Organization
 		noticeMapper.insert(n);
 	}
 
+	
+
 }

+ 34 - 2
src/main/java/com/goafanti/user/service/impl/UserIdentityServiceImpl.java

@@ -2,7 +2,9 @@ package com.goafanti.user.service.impl;
 
 import java.util.ArrayList;
 import java.util.Calendar;
+import java.util.HashMap;
 import java.util.List;
+import java.util.Map;
 import java.util.UUID;
 
 import org.apache.commons.lang3.StringUtils;
@@ -23,13 +25,16 @@ import com.goafanti.common.enums.UserLevel;
 import com.goafanti.common.model.Notice;
 import com.goafanti.common.model.User;
 import com.goafanti.common.model.UserIdentity;
+import com.goafanti.core.mybatis.BaseMybatisDao;
+import com.goafanti.core.mybatis.page.Pagination;
 import com.goafanti.core.shiro.token.TokenManager;
+import com.goafanti.portal.bo.UserSubscriberListBo;
 import com.goafanti.user.bo.AuditorUserIdentityDetailBo;
 import com.goafanti.user.bo.UserIdentityBo;
 import com.goafanti.user.service.UserIdentityService;
 
 @Service
-public class UserIdentityServiceImpl implements UserIdentityService {
+public class UserIdentityServiceImpl extends BaseMybatisDao<UserIdentityMapper> implements UserIdentityService {
 	@Autowired
 	private UserIdentityMapper	userIdentityMapper;
 	@Autowired
@@ -132,6 +137,34 @@ public class UserIdentityServiceImpl implements UserIdentityService {
 		return ui;
 	}
 
+	@SuppressWarnings("unchecked")
+	@Override
+	public Pagination<UserSubscriberListBo> listSubscriber(Integer level, String field, Integer province, Integer pNo,
+			Integer pSize) {
+		Map<String, Object> params = new HashMap<>();
+
+		if (null != level) {
+			params.put("level", level);
+		}
+
+		if (StringUtils.isNotBlank(field)) {
+			params.put("field", field);
+		}
+
+		if (null != province) {
+			params.put("province", province);
+		}
+		if (pNo == null || pNo < 0) {
+			pNo = 1;
+		}
+
+		if (pSize == null || pSize < 0 || pSize > 10) {
+			pSize = 10;
+		}
+		return (Pagination<UserSubscriberListBo>) findPage("findSearchSubscriberListByPage",
+				"findSearchSubscriberCount", params, pNo, pSize);
+	}
+
 	// 给业务员及客户经理发送通知
 	private void createNotice(User u, Integer status) {
 		if (!StringUtils.isBlank(u.getAid())) {
@@ -210,5 +243,4 @@ public class UserIdentityServiceImpl implements UserIdentityService {
 		noticeMapper.insert(n);
 	}
 
-
 }

+ 16 - 0
src/main/webapp/WEB-INF/views/portal/search/subscriber.html

@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml"
+	xmlns:th="http://www.thymeleaf.org">
+<head th:replace="common::header(~{::title},~{::link})">
+	<title>伙伴搜索页面</title>
+	<link th:href="${staticHost+'/portal/search/subscriber.css'}" rel="stylesheet">
+</head>
+<body>
+	<div id="root"></div>
+	
+	<div th:replace="common::footer(~{::script})">
+		<script type="text/javascript" th:src="${staticHost+'/vendors.js'}"></script>
+		<script type="text/javascript" th:src="${staticHost+'/portal/search/subscriber.js'}"></script>
+	</div>
+</body>
+</html>