#282 uq_id 필드 제거
This commit is contained in:
@ -41,7 +41,7 @@ if ($csv == 'csv')
|
||||
|
||||
$sql = " SELECT od_b_zip1, od_b_zip2, od_b_addr1, od_b_addr2, od_b_name, od_b_tel, od_b_hp, b.it_name, ct_qty, b.it_id, a.od_id, od_memo, od_invoice, b.ct_option, b.ct_send_cost
|
||||
FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b
|
||||
where a.uq_id = b.uq_id ";
|
||||
where a.od_id = b.od_id ";
|
||||
if ($case == 1) // 출력기간
|
||||
$sql .= " and a.od_time between '$fr_date 00:00:00' and '$to_date 23:59:59' ";
|
||||
else // 주문번호구간
|
||||
@ -99,7 +99,7 @@ if ($csv == 'xls')
|
||||
|
||||
$sql = " SELECT od_b_zip1, od_b_zip2, od_b_addr1, od_b_addr2, od_b_name, od_b_tel, od_b_hp, b.it_name, ct_qty, b.it_id, a.od_id, od_memo, od_invoice, b.ct_option, b.ct_send_cost
|
||||
FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b
|
||||
where a.uq_id = b.uq_id ";
|
||||
where a.od_id = b.od_id ";
|
||||
if ($case == 1) // 출력기간
|
||||
$sql .= " and a.od_time between '$fr_date 00:00:00' and '$to_date 23:59:59' ";
|
||||
else // 주문번호구간
|
||||
@ -162,11 +162,11 @@ if ($csv == 'xls')
|
||||
exit;
|
||||
}
|
||||
|
||||
function get_order($uq_id)
|
||||
function get_order($od_id)
|
||||
{
|
||||
global $g4;
|
||||
|
||||
$sql = " select * from {$g4['shop_order_table']} where uq_id = '$uq_id' ";
|
||||
$sql = " select * from {$g4['shop_order_table']} where od_id = '$od_id' ";
|
||||
return sql_fetch($sql);
|
||||
}
|
||||
|
||||
@ -177,14 +177,14 @@ if ($case == 1)
|
||||
{
|
||||
$fr_date = date_conv($fr_date);
|
||||
$to_date = date_conv($to_date);
|
||||
$sql = " SELECT DISTINCT a.uq_id FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b
|
||||
where a.uq_id = b.uq_id
|
||||
$sql = " SELECT DISTINCT a.od_id FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b
|
||||
where a.od_id = b.od_id
|
||||
and a.od_time between '$fr_date 00:00:00' and '$to_date 23:59:59' ";
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql = " SELECT DISTINCT a.uq_id FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b
|
||||
where a.uq_id = b.uq_id
|
||||
$sql = " SELECT DISTINCT a.od_id FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b
|
||||
where a.od_id = b.od_id
|
||||
and a.od_id between '$fr_od_id' and '$to_od_id' ";
|
||||
}
|
||||
if ($ct_status)
|
||||
@ -213,7 +213,7 @@ if (mysql_num_rows($result) == 0)
|
||||
$tot_total_amount = 0;
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$sql1 = " select * from {$g4['shop_order_table']} where uq_id = '{$row['uq_id']}' ";
|
||||
$sql1 = " select * from {$g4['shop_order_table']} where od_id = '{$row['od_id']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
|
||||
// 1.03.02
|
||||
@ -275,7 +275,7 @@ if (mysql_num_rows($result) == 0)
|
||||
<?php
|
||||
$sql2 = " select *
|
||||
from {$g4['shop_cart_table']}
|
||||
where uq_id = '{$row['uq_id']}' ";
|
||||
where od_id = '{$row['od_id']}' ";
|
||||
if ($ct_status)
|
||||
$sql2 .= " and ct_status = '$ct_status' ";
|
||||
$sql2 .= " order by ct_id ";
|
||||
|
||||
Reference in New Issue
Block a user