|
|
@ -353,7 +353,7 @@ class Online_payment_note_model extends CI_Model {
|
|
|
|
WHERE OPN_completeTime BETWEEN @from_date_last_year AND @to_date_last_year
|
|
|
|
WHERE OPN_completeTime BETWEEN @from_date_last_year AND @to_date_last_year
|
|
|
|
and OPN_noticeType=@type
|
|
|
|
and OPN_noticeType=@type
|
|
|
|
GROUP BY OPN_accountMethod
|
|
|
|
GROUP BY OPN_accountMethod
|
|
|
|
) as year_cmp on method.OPN_accountMethod=year_cmp.year_method
|
|
|
|
) as year_cmp on isnull(method.OPN_accountMethod,cmp.last_method)=year_cmp.year_method
|
|
|
|
full join (
|
|
|
|
full join (
|
|
|
|
SELECT OPN_accountMethod this_year_method
|
|
|
|
SELECT OPN_accountMethod this_year_method
|
|
|
|
,SUM(
|
|
|
|
,SUM(
|
|
|
@ -372,7 +372,7 @@ class Online_payment_note_model extends CI_Model {
|
|
|
|
WHERE OPN_completeTime BETWEEN @this_year AND @to_date
|
|
|
|
WHERE OPN_completeTime BETWEEN @this_year AND @to_date
|
|
|
|
and OPN_noticeType=@type
|
|
|
|
and OPN_noticeType=@type
|
|
|
|
GROUP BY OPN_accountMethod
|
|
|
|
GROUP BY OPN_accountMethod
|
|
|
|
) as this_year_cmp on method.OPN_accountMethod=this_year_cmp.this_year_method
|
|
|
|
) as this_year_cmp on isnull(method.OPN_accountMethod,cmp.last_method)=this_year_cmp.this_year_method
|
|
|
|
) AS cal
|
|
|
|
) AS cal
|
|
|
|
";
|
|
|
|
";
|
|
|
|
// var_dump($this->info->query($sql)); // 无法输出结果集
|
|
|
|
// var_dump($this->info->query($sql)); // 无法输出结果集
|
|
|
|