|
@@ -305,6 +305,10 @@
|
|
cs.completeMaintenanceNum as completeMaintenanceNum,
|
|
cs.completeMaintenanceNum as completeMaintenanceNum,
|
|
cs.beenScrappedNum as beenScrappedNum,
|
|
cs.beenScrappedNum as beenScrappedNum,
|
|
cs.beenRenovatedNum as beenRenovatedNum,
|
|
cs.beenRenovatedNum as beenRenovatedNum,
|
|
|
|
+ cs.waitConfirmPay,
|
|
|
|
+ cs.waitRenovate,
|
|
|
|
+ cs.finishRenovate,
|
|
|
|
+ cs.noRenovate,
|
|
ti.tag_flag as tagFlag
|
|
ti.tag_flag as tagFlag
|
|
FROM
|
|
FROM
|
|
tb_rst_cm_customer_info c
|
|
tb_rst_cm_customer_info c
|
|
@@ -388,7 +392,11 @@
|
|
COUNT(case detect_state when 30 then 1 when 34 then 1 WHEN 38 then 1 end) as beContact,
|
|
COUNT(case detect_state when 30 then 1 when 34 then 1 WHEN 38 then 1 end) as beContact,
|
|
COUNT(case detect_state when 32 then 1 when 36 then 1 end) as completeMaintenanceNum,
|
|
COUNT(case detect_state when 32 then 1 when 36 then 1 end) as completeMaintenanceNum,
|
|
COUNT(case detect_state when 23 then 1 end) as beenScrappedNum,
|
|
COUNT(case detect_state when 23 then 1 end) as beenScrappedNum,
|
|
- COUNT(case detect_state when 21 then 1 end) as beenRenovatedNum
|
|
|
|
|
|
+ COUNT(case detect_state when 21 then 1 end) as beenRenovatedNum,
|
|
|
|
+ COUNT(case detect_state when 24 then 1 end) as waitConfirmPay,
|
|
|
|
+ COUNT(case detect_state when 25 then 1 end) as waitRenovate,
|
|
|
|
+ COUNT(case detect_state when 26 then 1 end) as finishRenovate,
|
|
|
|
+ COUNT(case detect_state when 27 then 1 end) as noRenovate
|
|
FROM
|
|
FROM
|
|
tb_rst_complaint_detect
|
|
tb_rst_complaint_detect
|
|
GROUP BY
|
|
GROUP BY
|
|
@@ -495,7 +503,7 @@
|
|
and cd.detect_state = 1 AND cc.procTypeId = 3
|
|
and cd.detect_state = 1 AND cc.procTypeId = 3
|
|
</if>
|
|
</if>
|
|
<if test="afterState != null and afterState == 5">
|
|
<if test="afterState != null and afterState == 5">
|
|
- and cd.detect_state in(30,34,38)
|
|
|
|
|
|
+ and cd.detect_state in(24,30,34,38)
|
|
</if>
|
|
</if>
|
|
<if test="afterState != null and afterState == 6">
|
|
<if test="afterState != null and afterState == 6">
|
|
and cd.detect_state in(32,33,36,37)
|
|
and cd.detect_state in(32,33,36,37)
|