Ignore:
Timestamp:
2011/03/29 16:45:10 (13 years ago)
Author:
shutta
Message:

refs #801 DB_TYPE で分岐している箇所の抽象化
売上集計の年代別集計での分岐部分の対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/db/dbfactory/SC_DB_DBFactory_PGSQL.php

    r20764 r20792  
    164164            SUM(total) AS total, 
    165165            AVG(total) AS total_average"; 
     166    } 
     167 
     168    /** 
     169     * 売上集計の年代別集計の年代抽出部分のSQLを返す 
     170     * 
     171     * @return string 年代抽出部分の SQL 
     172     */ 
     173    function getOrderTotalAgeColSql() { 
     174        return 'TRUNC(CAST(EXTRACT(YEAR FROM AGE(create_date, order_birth)) AS INT), -1)'; 
    166175    } 
    167176 
Note: See TracChangeset for help on using the changeset viewer.