Преглед на файлове

全站搜索专家顾问区分

anderx преди 7 години
родител
ревизия
af0a378369

+ 2 - 2
src/main/java/com/goafanti/common/enums/collectType.java

@@ -12,8 +12,8 @@ public enum collectType {
 	PATENT(2,"jt_business_project"),
 	POLICY(3,"policy"),
 	PROJECT(4,"jt_business_project"),
-	EXPERT(5,"user"),//expert
-	ADVISER(6,"user"),//adviser
+	EXPERT(5,"expert"),//expert
+	ADVISER(6,"adviser"),//adviser
 	NEWS(7,"news"),
 	OTHER(8, "");
 	

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

@@ -596,7 +596,12 @@ public class UserIdentityServiceImpl extends BaseMybatisDao<UserIdentityMapper>
 		ExpertsListBo u=userIdentityMapper.selectByIdentityId(identity.getId());
 		if (identity.getAuditStatus()==2) {
 				JtCollectSearch r=new JtCollectSearch();
-				r.setFromTable(collectType.EXPERT.getDesc());
+				if(u.getExpert()==1){
+					r.setFromTable(collectType.EXPERT.getDesc());
+				}
+				if(u.getExpert()==2){
+					r.setFromTable(collectType.ADVISER.getDesc());
+				}
 				r.setKeyword(SocietyTagStatus.getStatus(u.getKeyword()).getDesc());
 				r.setTitle(u.getUsername());
 				r.setRowId(u.getUid());