Ignore:
Timestamp:
2006/09/18 14:43:18 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/batch/daily.php

    r4984 r4985  
    227227    $base_where = "WHERE (create_date BETWEEN ? AND ?) AND customer_id <> 0 AND del_flg = 0 "; 
    228228 
    229     $end_date = date("Y/m/d",strtotime("-10 year")); 
    230     $start_date = date("Y/m/d",strtotime("1 day" ,strtotime($end_date))); 
    231      
    232229    $end_date = date("Y/m/d", time());  
    233     $start_date = date("Y/m/d",strtotime("-10 year")); 
     230    $start_date = date("Y/m/d",strtotime("-10 year" ,strtotime($end_date))); 
     231    $end_date = date("Y/m/d",strtotime("1 day" ,strtotime($end_date))); 
    234232    $start_age = null; 
    235233    $end_age = null; 
     
    240238        if($i < $age_loop) { 
    241239            $end_age = $start_age+9; 
    242             $where = $where . " AND order_birth <= cast('$end_date' as date)"; 
     240            $where = $where . " AND order_birth < cast('$end_date' as date)"; 
    243241        }else{ 
    244242            $end_age = 999; 
     
    246244        lfBatOrderAgeSub($sql . $where, $start, $end, $start_age, $end_age, 1); 
    247245        $end_date = date("Y/m/d",strtotime("1 day" ,strtotime($start_date))); 
    248         $start_date = date("Y/m/d",strtotime("-10 year",strtotime($end_date))); 
     246        $start_date = date("Y/m/d",strtotime("-10 year",strtotime($start_date))); 
    249247    } 
    250248 
Note: See TracChangeset for help on using the changeset viewer.