|
|
@@ -1234,7 +1234,7 @@ from
|
|
|
on u.id = a.to_uid left join( select to_uid from user_interest where from_uid =#{uid,jdbcType=VARCHAR} ) b
|
|
|
on u.id = b.to_uid
|
|
|
where u.status = 0 and u.source = 1
|
|
|
- and ui.expert = 1 and ui.expert_audit=2
|
|
|
+ and ui.expert = 1 and ui.audit_status = 2
|
|
|
<if test="industry != null">
|
|
|
and ui.industry= #{industry,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
@@ -1254,7 +1254,7 @@ from
|
|
|
<select id="selectCustomerAuditCount" resultType="java.lang.Integer">
|
|
|
select count(0)from
|
|
|
`user` u left join user_identity ui on ui.uid = u.id
|
|
|
- where u.status = 0 and u.source = 1 and ui.expert = 1 and ui.expert_audit=2
|
|
|
+ where u.status = 0 and u.source = 1 and ui.expert = 1 and ui.audit_status = 2
|
|
|
<if test="industry != null">
|
|
|
and ui.industry= #{industry,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
@@ -1298,7 +1298,7 @@ from
|
|
|
on u.id = a.to_uid left join( select to_uid from user_interest where from_uid ='1' ) b
|
|
|
on u.id = b.to_uid
|
|
|
where u.status = 0 and u.source = 1
|
|
|
- and ui.expert = 2 and ui.expert_audit=2
|
|
|
+ and ui.expert = 2 and ui.audit_status=2
|
|
|
<if test="consultantType != null">
|
|
|
and ui.consultant_type=#{consultantType,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
@@ -1329,7 +1329,7 @@ from
|
|
|
from
|
|
|
`user` u left join user_identity ui on ui.uid = u.id
|
|
|
where u.status = 0 and u.source = 1
|
|
|
- and ui.expert = 2 and ui.expert_audit=2
|
|
|
+ and ui.expert = 2 and ui.audit_status=2
|
|
|
<if test="consultantType != null">
|
|
|
and ui.consultant_type=#{consultantType,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
@@ -1407,4 +1407,17 @@ from
|
|
|
inner join user_identity i on u.id = i.uid
|
|
|
where u.id = #{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
+<select id="expertsCommentByUid" resultType="com.goafanti.comment.bo.CommentDetailResult">
|
|
|
+select a.create_time as createTime,
|
|
|
+ date_format(a.create_time,'%Y-%m-%d') as createTimeFormat,
|
|
|
+ a.commodity_id,
|
|
|
+ a.content,a.star,u.identify_name as commenter
|
|
|
+ from jt_commodity_comment a
|
|
|
+ left join user u on a.uid=u.id
|
|
|
+ left join jt_consult_order b on a.order_no=b.order_no
|
|
|
+ where 1=1
|
|
|
+ and b.seller_id= #{id,jdbcType=VARCHAR}
|
|
|
+ limit 1
|
|
|
+
|
|
|
+</select>
|
|
|
</mapper>
|