|
@@ -25,6 +25,7 @@
|
|
|
<result column="comment_count" property="commentCount" />
|
|
<result column="comment_count" property="commentCount" />
|
|
|
<result column="is_liked" property="isLiked" />
|
|
<result column="is_liked" property="isLiked" />
|
|
|
<result column="created_time" property="createdTime" />
|
|
<result column="created_time" property="createdTime" />
|
|
|
|
|
+ <result column="is_appealed" property="isAppealed" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<!-- 分页查询评价列表(包含用户和律师信息) -->
|
|
<!-- 分页查询评价列表(包含用户和律师信息) -->
|
|
@@ -362,5 +363,33 @@
|
|
|
ORDER BY orv.created_time DESC
|
|
ORDER BY orv.created_time DESC
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
+ <!-- 根据订单ID查询评价 -->
|
|
|
|
|
+ <select id="getOrderEvaluation" resultMap="OrderReviewVoResultMap">
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ orv.id,
|
|
|
|
|
+ orv.order_id,
|
|
|
|
|
+ orv.order_number,
|
|
|
|
|
+ orv.user_id,
|
|
|
|
|
+ orv.lawyer_user_id,
|
|
|
|
|
+ orv.overall_rating,
|
|
|
|
|
+ orv.service_attitude_rating,
|
|
|
|
|
+ orv.response_time_rating,
|
|
|
|
|
+ orv.professional_ability_rating,
|
|
|
|
|
+ orv.review_content,
|
|
|
|
|
+ orv.review_images,
|
|
|
|
|
+ orv.is_anonymous,
|
|
|
|
|
+ orv.like_count,
|
|
|
|
|
+ orv.comment_count,
|
|
|
|
|
+ orv.created_time,
|
|
|
|
|
+ lco.is_appealed,
|
|
|
|
|
+ lu.user_name
|
|
|
|
|
+ FROM lawyer_order_review orv
|
|
|
|
|
+ INNER JOIN lawyer_consultation_order lco ON lco.id = orv.order_id AND lco.delete_flag = 0
|
|
|
|
|
+ LEFT JOIN life_user lu ON lu.id = orv.user_id AND lu.delete_flag = 0
|
|
|
|
|
+ WHERE orv.delete_flag = 0
|
|
|
|
|
+ AND orv.order_id = #{orderId}
|
|
|
|
|
+ LIMIT 1
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
</mapper>
|
|
</mapper>
|
|
|
|
|
|