|
|
@@ -1613,7 +1613,27 @@
|
|
|
select count(1)
|
|
|
from user_interest t
|
|
|
left join user_identity y on t.to_uid=y.uid
|
|
|
- where from_uid=#{uid,jdbcType=VARCHAR}
|
|
|
+ where expert=1
|
|
|
+ and from_uid=#{uid,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="findAppCounselorInterestByPage" parameterType="String" resultType="com.goafanti.demand.bo.ObjectInterestListBo">
|
|
|
+ select y.uid as id,y.username as name ,t.create_time as createTime
|
|
|
+ from user_interest t
|
|
|
+ left join user_identity y on t.to_uid=y.uid
|
|
|
+ where expert=2
|
|
|
+ and from_uid=#{uid,jdbcType=VARCHAR}
|
|
|
+ <if test="page_sql!=null">
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="findAppCounselorInterestCount" parameterType="String" resultType="java.lang.Integer">
|
|
|
+ select count(1)
|
|
|
+ from user_interest t
|
|
|
+ left join user_identity y on t.to_uid=y.uid
|
|
|
+ where expert=2
|
|
|
+ and from_uid=#{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
<select id="findAppDemandInterestByPage" resultType="com.goafanti.demand.bo.ObjectInterestListBo">
|