- Timestamp:
- 2008/03/13 03:15:22 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/pages/admin/LC_Page_Admin_Home.php
r16737 r17144 138 138 }else if (DB_TYPE == "mysql") { 139 139 $sql = "SELECT ".$method."(total) FROM dtb_order 140 WHERE del_flg = 0 AND cast( substring(create_date,1, 10)as date) = DATE_ADD(current_date, interval -1 day) AND status <> " . ORDER_CANCEL;140 WHERE del_flg = 0 AND cast(create_date as date) = DATE_ADD(current_date, interval -1 day) AND status <> " . ORDER_CANCEL; 141 141 } 142 142 $return = $conn->getOne($sql); … … 182 182 }else if (DB_TYPE == "mysql") { 183 183 $sql = "SELECT COUNT(*) FROM dtb_review AS A LEFT JOIN dtb_products AS B ON A.product_id = B.product_id 184 WHERE A.del_flg = 0 AND B.del_flg = 0 AND cast( substring(A.create_date,1, 10)as date) = DATE_ADD(current_date, interval -1 day)185 AND cast( substring(A.create_date,1, 10) as date) != cast(substring(now(),1, 10) as date)";184 WHERE A.del_flg = 0 AND B.del_flg = 0 AND cast(A.create_date as date) = DATE_ADD(current_date, interval -1 day) 185 AND cast(A.create_date as date) != current_date"; 186 186 } 187 187 $return = $conn->getOne($sql);
Note: See TracChangeset
for help on using the changeset viewer.