Commit 19511953 authored by zhengyi's avatar zhengyi

报价单下拉框查询sql优化

parent 10f60856
......@@ -395,7 +395,7 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
"u.nickname as creator_name, ",
"cc.name as relation_name",
"from ecw_offer o ",
"left join ecw_customer_contacts cc on (o.relation = 1 and cc.id = o.consignor_id) or (o.relation = 2 and cc.id = o.consignee_id) ",
"join ecw_customer_contacts cc on (o.relation = 1 and cc.id = o.consignor_id) or (o.relation = 2 and cc.id = o.consignee_id) ",
"left join system_user u on u.id = o.follow_up_salesman_id ",
"where o.deleted = 0",
"AND o.`status` in(1,3,4,5,6)",
......
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