|
@@ -429,12 +429,17 @@
|
|
cd.created,
|
|
cd.created,
|
|
cd.ratio,
|
|
cd.ratio,
|
|
cd.defined_low_limit_amount,
|
|
cd.defined_low_limit_amount,
|
|
- cd.business_type AS declareBusinessType
|
|
|
|
|
|
+ cd.business_type AS declareBusinessType,
|
|
|
|
+ cc1.name as clientName,
|
|
|
|
+ cc2.name as clientSubName
|
|
FROM
|
|
FROM
|
|
commission_declare cd
|
|
commission_declare cd
|
|
LEFT JOIN business_commission_rate bcr ON bcr.id = cd.commission_rate_id
|
|
LEFT JOIN business_commission_rate bcr ON bcr.id = cd.commission_rate_id
|
|
LEFT JOIN dict_data dd ON dd.id = bcr.business_cate_id
|
|
LEFT JOIN dict_data dd ON dd.id = bcr.business_cate_id
|
|
LEFT JOIN user u ON u.id = cd.declare_user_id
|
|
LEFT JOIN user u ON u.id = cd.declare_user_id
|
|
|
|
+ left join major m on m.id = cd.business_id
|
|
|
|
+ left join customer_company cc1 on cc1.id = m.clientele_id
|
|
|
|
+ left join customer_company cc2 on cc2.id = m.clientele_sub_id
|
|
where cd.deleted = 0 and bcr.deleted = 0 and cd.id =#{id}
|
|
where cd.deleted = 0 and bcr.deleted = 0 and cd.id =#{id}
|
|
</select>
|
|
</select>
|
|
|
|
|