Changeset 4608 for temp/trunk/html/admin/batch
- Timestamp:
- 2006/09/11 19:37:56 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/batch/daily.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/batch/daily.php
r3625 r4608 36 36 // ºï½ü¤µ¤ì¤¿¼õÃí¥Ç¡¼¥¿¤Î¼õÃí¾ÜºÙ¾ðÊó¤Îºï½ü 37 37 $objQuery = new SC_Query(); 38 $where = "order_id IN (SELECT order_id FROM dtb_order WHERE del ete= 1)";38 $where = "order_id IN (SELECT order_id FROM dtb_order WHERE del_flg = 1)"; 39 39 $objQuery->delete("dtb_order_detail", $where); 40 40 … … 112 112 $sql.= "int8(AVG(total)) AS total_average "; 113 113 $sql.= "FROM dtb_order AS T1 LEFT JOIN dtb_customer AS T2 USING ( customer_id ) "; 114 $sql.= "WHERE T1.del ete= 0 AND T1.create_date BETWEEN ? AND ?"; // ¼õÃíºîÀ®Æü¤Ç¸¡º÷¤¹¤ë114 $sql.= "WHERE T1.del_flg = 0 AND T1.create_date BETWEEN ? AND ?"; // ¼õÃíºîÀ®Æü¤Ç¸¡º÷¤¹¤ë 115 115 return $sql; 116 116 } … … 204 204 /* ²ñ°÷½¸·× */ 205 205 206 $base_where = "WHERE (create_date BETWEEN ? AND ?) AND customer_id <> 0 AND del ete= 0 ";206 $base_where = "WHERE (create_date BETWEEN ? AND ?) AND customer_id <> 0 AND del_flg = 0 "; 207 207 $where = $base_where . " AND (to_number(to_char(age(current_timestamp, order_birth), 'YYY'), 999) BETWEEN ? AND ?) "; 208 208 … … 223 223 /* Èó²ñ°÷½¸·× */ 224 224 225 $base_where = "WHERE (create_date BETWEEN ? AND ?) AND customer_id = 0 AND del ete= 0";225 $base_where = "WHERE (create_date BETWEEN ? AND ?) AND customer_id = 0 AND del_flg = 0"; 226 226 $where = $base_where . " AND (to_number(to_char(age(current_timestamp, order_birth), 'YYY'), 999) BETWEEN ? AND ?) "; 227 227 … … 237 237 238 238 // ÃÂÀ¸ÆüÆþÎϤʤ· 239 $where = $base_where . " AND order_birth IS NULL AND del ete= 0";239 $where = $base_where . " AND order_birth IS NULL AND del_flg = 0"; 240 240 lfBatOrderAgeSub($sql . $where, $start, $end, NULL, NULL, 0); 241 241 }
Note: See TracChangeset
for help on using the changeset viewer.
