- Timestamp:
- 2006/09/17 13:07:16 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/batch/daily.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/batch/daily.php
r4840 r4841 235 235 $start_age = null; 236 236 $end_age = null; 237 238 237 // ǯÎðËè¤Ë½¸·×¤¹¤ë¡£ 239 238 for($i = 0; $i <= $age_loop; $i++) { … … 265 264 $base_where = "WHERE (create_date BETWEEN ? AND ?) AND customer_id = 0 AND del_flg = 0"; 266 265 $where = $base_where . " AND (to_number(to_char(age(current_timestamp, order_birth), 'YYY'), 999) BETWEEN ? AND ?) "; 267 266 267 268 $end_date = date("Y/m/d", time()); 269 $start_date = date("Y/m/d",strtotime("-10 year")); 270 $start_age = null; 271 $end_age = null; 268 272 // ǯÎðËè¤Ë½¸·×¤¹¤ë¡£ 273 for($i = 0; $i <= $age_loop; $i++) { 274 $where = $base_where . " AND order_birth >= cast('$start_date' as date)"; 275 if($i <= $age_loop) { 276 $where = $where . " AND order_birth <= cast('$end_date' as date)"; 277 } 278 lfBatOrderAgeSub($sql . $where, $start, $end, $start_age, $end_age, 1); 279 $end_date = date("Y/m/d",strtotime("1 day" ,strtotime($start_date))); 280 $start_date = date("Y/m/d",strtotime("-10 year",strtotime($end_date))); 281 } 282 269 283 /* 270 284 for($i = 0; $i <= $age_loop; $i++) {
Note: See TracChangeset
for help on using the changeset viewer.
