Commit 1d8e507a by huluobin

评论列表

parent 30cc57ff
......@@ -23,6 +23,5 @@ public interface OrderCommentMapper extends BaseMapper<OrderComment> {
* @param technicianId
* @return
*/
@Deprecated
Page<OrderComment> queryMyCommentForPage(Page<OrderComment> page, @Param("technicianId") Integer technicianId);
}
......@@ -84,10 +84,33 @@
orser.comment_score orser_comment_score
</sql>
<sql id="serveSql">
ser.id ser_id, ser.name ser_name,ser.type ser_type, ser.label ser_label, ser.shop_sort ser_shop_sort, ser.price ser_price, ser.picture_path ser_picture_path, ser.status ser_status, ser.remark ser_remark, ser.details ser_details, ser.service_duration ser_service_duration
ser.id ser_id,
ser.name ser_name,
ser.type ser_type,
ser.label ser_label,
ser.shop_sort ser_shop_sort,
ser.price ser_price,
ser.picture_path ser_picture_path,
ser.status ser_status,
ser.remark ser_remark,
ser.details ser_details,
ser.service_duration ser_service_duration
</sql>
<sql id="technicianSql">
tech.id tech_id, tech.technician_no tech_technician_no, tech.name tech_name
tech.id tech_id,
tech.technician_no tech_technician_no,
tech.name tech_name
</sql>
<sql id="customerSql">
cus.openid cus_openid,
cus.id cus_id,
cus.phone cus_phone,
cus.nickname cus_nickname,
cus.realName cus_real_name,
cus.storeRecordRealName cus_store_record_real_name,
cus.customerSource cus_customer_source,
cus.headimgurl cus_headimgurl
</sql>
<select id="queryMyCommentForPage" resultMap="orderCommentDetail">
......@@ -95,22 +118,17 @@
<include refid="orderCommentSql"/>,
<include refid="orderServeSql"/>,
<include refid="serveSql"/>,
<include refid="technicianSql"/>
from
order_comment oc
<include refid="technicianSql"/>,
<include refid="customerSql"/>
from order_comment oc
left join order_serve orser on oc.order_id = orser.order_id
left join base_serve ser on orser.serve_id = ser.id
left join store_technician tech on find_in_set(tech.id,orser.technician_id)
left join store_technician tech on find_in_set(tech.id, orser.technician_id)
left join order_manage om on orser.order_id = om.id
left join customer cus on om.order_user = cus.id
where oc.technician_id = #{technicianId}
order by create_time desc
</select>
<!--result map子查询-->
<select id="queryListOrderCommentLabel" resultType="com.gogirl.domain.order.serve.OrderCommentLabel">
select t2.*
from order_comment t1
left join order_comment_label t2 on find_in_set(t2.id, t1.label_sticker)
where t1.id = #{id}
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment