Commit 669cac5a by huluobin

update

parent a24860c5
...@@ -84,10 +84,32 @@ ...@@ -84,10 +84,32 @@
orser.comment_score orser_comment_score orser.comment_score orser_comment_score
</sql> </sql>
<sql id="serveSql"> <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>
<sql id="technicianSql"> <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.real_name cus_real_name,
cus.store_record_real_name cus_store_record_real_name,
cus.customer_source cus_customer_source,
cus.headimgurl cus_headimgurl
</sql> </sql>
<select id="queryMyCommentForPage" resultMap="orderCommentDetail"> <select id="queryMyCommentForPage" resultMap="orderCommentDetail">
...@@ -95,12 +117,14 @@ ...@@ -95,12 +117,14 @@
<include refid="orderCommentSql"/>, <include refid="orderCommentSql"/>,
<include refid="orderServeSql"/>, <include refid="orderServeSql"/>,
<include refid="serveSql"/>, <include refid="serveSql"/>,
<include refid="technicianSql"/> <include refid="technicianSql"/>,
from <include refid="customerSql"/>
order_comment oc from order_comment oc
left join order_serve orser on oc.order_id = orser.order_id 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 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} where oc.technician_id = #{technicianId}
order by create_time desc order by create_time desc
</select> </select>
......
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