Browse Source

据数据修改结果专家查询等语句修改

anderx 8 years ago
parent
commit
de45314d9e
1 changed files with 7 additions and 6 deletions
  1. 7 6
      src/main/java/com/goafanti/common/mapper/UserIdentityMapper.xml

+ 7 - 6
src/main/java/com/goafanti/common/mapper/UserIdentityMapper.xml

@@ -1050,14 +1050,15 @@
 		limit 0,6	
 	</select> 
 	 <select id="selectUserIdentityByUid" resultType="com.goafanti.user.bo.UserIdentityBo">
-	 	select 	t.id ,t.uid,u.nickname as username,t.work_unit as workUnit,t.province,t.area,t.professional_title as professionalTitle,
+	 	  select 	t.id ,t.uid,u.nickname as username,t.work_unit as workUnit,t.province,t.area,t.professional_title as professionalTitle,
 			t.industry,t.city,u.introduction,u.head_portrait_url as headPortraitUrl,ifnull(o.x,0) as reservationCount,j.easemob_name as easemobName
 	from user_identity t left JOIN user u on t.uid = u.id
 	left join jpush_easemob_account j on t.uid=j.uid
 	left join (select count(0) as x,seller_id from t_order
 				where order_status != 4
 				group by  seller_id ) o on t.uid=o.seller_id
-	where t.uid=#{uid,jdbcType=VARCHAR}
+	where t.expert=1
+	and t.uid=#{uid,jdbcType=VARCHAR}
 	 </select>
 	 
  <select id="findUserIdentityListByPage" parameterType="String" resultType="com.goafanti.user.bo.UserIdentityBo">
@@ -1098,14 +1099,14 @@
   
   <select id="findConsultantListByPage" resultType="com.goafanti.app.bo.consultantListBo">
 	 select t.uid as id,t.username as username ,u.head_portrait_url as headPortraitUrl,u.introduction ,
-	  t.consultant,t.celebrity,ifnull(x.n,0) as reservationCount
+	  t.expert as consultant,t.celebrity,ifnull(x.n,0) as reservationCount
 	  from user_identity t
 	  left join `user` u on t.uid=u.id
 	  left join ( select y.x  as n, y.seller_id
 	from (select count( 0 ) as x,seller_id from t_order
 			where order_status != 4
 			group by seller_id)y)x on t.uid=x.seller_id 
-  where t.celebrity=1
+  where t.expert=2
    <if test="page_sql!=null">
 			${page_sql}
 	</if>
@@ -1115,7 +1116,7 @@
    	select count(0) 
   from user_identity t
   left join `user` u on t.uid=u.id
-  where t.consultant=1
+  where t.expert=2
   </select>
   
   
@@ -1129,7 +1130,7 @@
   	left join (select count(0) as x,seller_id from t_order
 				where order_status != 4
 				group by  seller_id ) o on t.uid=o.seller_id
-  	where t.celebrity = 1
+  	where t.expert=2
   	and t.uid = #{uid,jdbcType=VARCHAR}
   </select>
 </mapper>