|
|
|
@ -12,7 +12,7 @@
|
|
|
|
|
sum( CASE WHEN STATUS != 10 AND rectify_term_time < NOW() THEN 1 ELSE 0 END ) exceedNotRectifiedNum,
|
|
|
|
|
sum( rectify_money ) rectifyMoneySum,
|
|
|
|
|
CONCAT(round(
|
|
|
|
|
sum( CASE WHEN STATUS = 10 THEN 1 ELSE 0 END )/ sum( CASE WHEN STATUS != 10 THEN 1 ELSE 0 END ),
|
|
|
|
|
sum( CASE WHEN STATUS = 10 THEN 1 ELSE 0 END )/ count( 1 ),
|
|
|
|
|
2
|
|
|
|
|
)*100,'%') rectifyRate
|
|
|
|
|
FROM
|
|
|
|
@ -29,7 +29,7 @@
|
|
|
|
|
sum( CASE WHEN STATUS != 10 AND rectify_term_time < NOW() THEN 1 ELSE 0 END ) exceedNotRectifiedNum,
|
|
|
|
|
sum( rectify_money ) rectifyMoneySum,
|
|
|
|
|
CONCAT(round(
|
|
|
|
|
sum( CASE WHEN STATUS = 10 THEN 1 ELSE 0 END )/ sum( CASE WHEN STATUS != 10 THEN 1 ELSE 0 END ),
|
|
|
|
|
sum( CASE WHEN STATUS = 10 THEN 1 ELSE 0 END )/ count( 1 ),
|
|
|
|
|
2
|
|
|
|
|
)*100,'%') rectifyRate
|
|
|
|
|
FROM
|
|
|
|
@ -49,7 +49,7 @@
|
|
|
|
|
sum( CASE WHEN r.STATUS != 10 AND r.rectify_term_time < NOW() THEN 1 ELSE 0 END ) exceedNotRectifiedNum,
|
|
|
|
|
ifnull(sum( r.rectify_money ),0) rectifyMoneySum,
|
|
|
|
|
CONCAT(ifnull(round(
|
|
|
|
|
sum( CASE WHEN r.STATUS = 10 THEN 1 ELSE 0 END )/ sum( CASE WHEN r.STATUS != 10 THEN 1 ELSE 0 END ),
|
|
|
|
|
sum( CASE WHEN r.STATUS = 10 THEN 1 ELSE 0 END )/ sum( CASE WHEN r.hidden_danger_id is not null THEN 1 ELSE 0 END ),
|
|
|
|
|
2
|
|
|
|
|
)* 100,0),'%') rectifyRate
|
|
|
|
|
FROM
|
|
|
|
|