|
@@ -1428,12 +1428,14 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
e.reason,date_format(e.create_time,'%Y-%m-%d') as backDate,a.buyer_id as uid,a.order_dep as orderDep, g.location_province as locationProvince,
|
|
e.reason,date_format(e.create_time,'%Y-%m-%d') as backDate,a.buyer_id as uid,a.order_dep as orderDep, g.location_province as locationProvince,
|
|
|
g.location_city as locationCity,g.location_area locationArea,g.postal_address postalAddress,outsource,a.primary_order primaryOrder,a.agreement_url agreementUrl,
|
|
g.location_city as locationCity,g.location_area locationArea,g.postal_address postalAddress,outsource,a.primary_order primaryOrder,a.agreement_url agreementUrl,
|
|
|
h.name NowFinance,h.contact_mobile NowFinanceMobile,a.additional_order additionalOrder,i.name as oldSalesmanName, i.contact_mobile oldSalesmanMobile,
|
|
h.name NowFinance,h.contact_mobile NowFinanceMobile,a.additional_order additionalOrder,i.name as oldSalesmanName, i.contact_mobile oldSalesmanMobile,
|
|
|
- a.service_content serviceContent,a.examine_name examineName
|
|
|
|
|
|
|
+ a.service_content serviceContent,a.examine_name examineName, tht.knowledge_services knowledgeServices, tht.audit_services auditServices,
|
|
|
|
|
+ tht.add_deduction_services addDeductionServices, tht.knowledge_other knowledgeOther, tht.audit_other auditOther, tht.add_deduction_other addDeductionOther
|
|
|
from t_order_new a left join `user` b on a.buyer_id=b.id left join admin i on a.old_salesman_id=i.id
|
|
from t_order_new a left join `user` b on a.buyer_id=b.id left join admin i on a.old_salesman_id=i.id
|
|
|
left join admin c on a.salesman_id=c.id left join department dep on a.order_dep=dep.id
|
|
left join admin c on a.salesman_id=c.id left join department dep on a.order_dep=dep.id
|
|
|
left join admin d on a.finance_id=d.id left join admin h on dep.finance_id=h.id
|
|
left join admin d on a.finance_id=d.id left join admin h on dep.finance_id=h.id
|
|
|
left join t_order_back e on a.order_no=e.order_no and e.back_status=0
|
|
left join t_order_back e on a.order_no=e.order_no and e.back_status=0
|
|
|
left join admin f on e.initiate=f.id left join organization_identity g on a.buyer_id=g.uid
|
|
left join admin f on e.initiate=f.id left join organization_identity g on a.buyer_id=g.uid
|
|
|
|
|
+ left join t_order_high_tech tht on a.order_no=tht.order_no
|
|
|
where a.order_no = #{orderNo,jdbcType=VARCHAR}
|
|
where a.order_no = #{orderNo,jdbcType=VARCHAR}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|