|
|
@@ -1036,22 +1036,24 @@
|
|
|
</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,
|
|
|
- t.industry,t.city,u.introduction,u.head_portrait_url as headPortraitUrl,ifnull(o.x,0) as reservationCount
|
|
|
+ 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}
|
|
|
</select>
|
|
|
|
|
|
- <select id="findUserIdentityListByPage" parameterType="String" resultType="com.goafanti.user.bo.UserIdentityBo">
|
|
|
- select t.id ,t.uid,t.username,t.work_unit as workUnit,t.province,t.area,t.professional_title as professionalTitle,t.industry,t.city,
|
|
|
+ <select id="findUserIdentityListByPage" parameterType="String" 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,t.industry,t.city,
|
|
|
u.introduction,u.head_portrait_url as headPortraitUrl,ifnull(o.x,0) as reservationCount
|
|
|
from user_identity t left JOIN user u on t.uid = u.id
|
|
|
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 1=1
|
|
|
+ where expert=1
|
|
|
+ and u.status !=1
|
|
|
<if test="industry != null">
|
|
|
and t.industry = #{industry,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
@@ -1070,14 +1072,14 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
- <select id="countInterest" resultType="java.lang.Integer">
|
|
|
+ <select id="countInterest" resultType="java.lang.Integer">
|
|
|
select count(0)
|
|
|
from user_interest
|
|
|
where to_uid=#{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
- <select id="findConsultantListByPage" resultType="com.goafanti.app.bo.consultantListBo">
|
|
|
- select t.uid as id,t.username ,u.head_portrait_url as headPortraitUrl,u.introduction ,t.consultant
|
|
|
+ <select id= "findConsultantListByPage" resultType="com.goafanti.app.bo.consultantListBo" >
|
|
|
+ select t.uid as id,u.nickname as username ,u.head_portrait_url as headPortraitUrl,u.introduction ,t.consultant
|
|
|
from user_identity t
|
|
|
left join `user` u on t.uid=u.id
|
|
|
where t.consultant=1
|
|
|
@@ -1086,7 +1088,7 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
- <select id="findConsultantCount" resultType="java.lang.Integer">
|
|
|
+ <select id = "findConsultantCount" resultType="java.lang.Integer">
|
|
|
select count(0)
|
|
|
from user_identity t
|
|
|
left join `user` u on t.uid=u.id
|
|
|
@@ -1096,9 +1098,10 @@
|
|
|
|
|
|
<select id="selectconsultantByUid" parameterType="java.lang.String" resultType="com.goafanti.app.bo.consultantListBo">
|
|
|
select
|
|
|
- t.uid as id ,t.username ,t.consultant,u.head_portrait_url as headPortraitUrl,u.introduction,ifnull(o.x,0) as reservationCount
|
|
|
+ t.uid as id ,u.nickname as username ,t.consultant,u.head_portrait_url as headPortraitUrl,u.introduction,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
|