Compare commits
2 Commits
a7dcde4c65
...
18ead24a73
Author | SHA1 | Date | |
---|---|---|---|
|
18ead24a73 | ||
|
658c78b15f |
@ -11,7 +11,7 @@
|
|||||||
<select id="customerSource" resultType="cn.iocoder.yudao.module.base.vo.RepairStatisticsVO">
|
<select id="customerSource" resultType="cn.iocoder.yudao.module.base.vo.RepairStatisticsVO">
|
||||||
SELECT
|
SELECT
|
||||||
COALESCE(sdd.label, '未知') AS name,
|
COALESCE(sdd.label, '未知') AS name,
|
||||||
COUNT(bcm.id) AS vale
|
COUNT(bcm.id) AS value
|
||||||
FROM
|
FROM
|
||||||
base_customer_main bcm
|
base_customer_main bcm
|
||||||
LEFT JOIN system_dict_data sdd ON bcm.data_from = sdd.value AND sdd.dict_type = 'cus_data_from' AND sdd.deleted = 0
|
LEFT JOIN system_dict_data sdd ON bcm.data_from = sdd.value AND sdd.dict_type = 'cus_data_from' AND sdd.deleted = 0
|
||||||
@ -51,7 +51,7 @@
|
|||||||
<select id="paymentWay" resultType="cn.iocoder.yudao.module.base.vo.RepairStatisticsVO">
|
<select id="paymentWay" resultType="cn.iocoder.yudao.module.base.vo.RepairStatisticsVO">
|
||||||
SELECT
|
SELECT
|
||||||
COALESCE(sdd.label, '未知') AS name,
|
COALESCE(sdd.label, '未知') AS name,
|
||||||
COUNT(roi.id)
|
COUNT(roi.id) AS value
|
||||||
FROM
|
FROM
|
||||||
repair_order_info roi
|
repair_order_info roi
|
||||||
LEFT JOIN system_dict_data sdd ON roi.pay_type = sdd.value AND sdd.dict_type = 'repair_pay_type' AND sdd.deleted = 0
|
LEFT JOIN system_dict_data sdd ON roi.pay_type = sdd.value AND sdd.dict_type = 'repair_pay_type' AND sdd.deleted = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user