瀏覽代碼

修改认证通过数据条件

limin 7 年之前
父節點
當前提交
7f38b471ad

+ 3 - 0
src/main/java/com/goafanti/common/mapper/UserIdentityMapper.xml

@@ -981,6 +981,9 @@
 		<if test="field != null">
 			AND ui.industry= #{field,jdbcType=VARCHAR}
 		</if>
+		<if test="auditStatus != null">
+			AND ui.audit_status= #{auditStatus,jdbcType=VARCHAR}
+		</if>
 		<if test="name != null">
 			AND u.identify_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
 		</if>

+ 2 - 12
src/main/java/com/goafanti/portal/controller/PortalSearchController.java

@@ -39,20 +39,12 @@ public class PortalSearchController extends BaseController {
 	@Resource
 	private OrganizationIdentityService	organizationIdentityService;
 
-
-		
-		
-
-		
-
-
-
 	/**
 	 * 用户搜索
 	 */
 	@RequestMapping(value = "/subscriberList", method = RequestMethod.GET)
 	public Result subscriberSearchList(HttpServletRequest req,String name, Integer level, Integer type, String field, Integer province,
-			Integer city, Integer area,Integer international, String pageNo, String pageSize) {
+			Integer city, Integer area,Integer international, String pageNo, String pageSize, Integer auditStatus) {
 		Result res = new Result();
 		String url=req.getServerName();
 		url=url.substring(url.indexOf(".")+1, url.length());
@@ -68,9 +60,7 @@ public class PortalSearchController extends BaseController {
 			field=null;
 		}
 		if(province ==null || province.intValue()<=0)province=null;
-		
-			res.setData(userIdentityService.listSubscriber(url,name, level, field, province, city, area, international, pNo, pSize));
-	
+			res.setData(userIdentityService.listSubscriber(url,name, level, field, province, city, area, international, pNo, pSize,auditStatus));
 		return res;
 	}
 	

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

@@ -42,7 +42,7 @@ public interface UserIdentityService {
 	int updateUserDetailByAuditAdmin(UserIdentity ui, String aid, String mid, Integer level);
 
 	Pagination<UserSubscriberListBo> listSubscriber(String url,String name, Integer level, String field, Integer province, Integer city,
-			Integer area,Integer international, Integer pNo, Integer pSize);
+			Integer area,Integer international, Integer pNo, Integer pSize, Integer auditStatus);
 
 	UserIdentityDetailAdminBo selectUserIdentityByUserIdAdmin(String uid);
 

+ 4 - 1
src/main/java/com/goafanti/user/service/impl/UserIdentityServiceImpl.java

@@ -172,7 +172,7 @@ public class UserIdentityServiceImpl extends BaseMybatisDao<UserIdentityMapper>
 	@SuppressWarnings("unchecked")
 	@Override
 	public Pagination<UserSubscriberListBo> listSubscriber(String url,String name, Integer level, String field, Integer province,
-			Integer city, Integer area, Integer international, Integer pNo, Integer pSize) {
+			Integer city, Integer area, Integer international, Integer pNo, Integer pSize, Integer auditStatus) {
 		Map<String, Object> params = new HashMap<>();
 		if (StringUtils.isNotBlank(url)) {
 			params.put("url", url);
@@ -211,6 +211,9 @@ public class UserIdentityServiceImpl extends BaseMybatisDao<UserIdentityMapper>
 		if (pSize == null || pSize < 0 || pSize > 12) {
 			pSize = 12;
 		}
+		if (null != auditStatus) {
+			params.put("auditStatus", auditStatus);
+		}
 		return (Pagination<UserSubscriberListBo>) findPage("findSearchSubscriberListByPage",
 				"findSearchSubscriberCount", params, pNo, pSize);
 	}