#282 uq_id 필드 제거

This commit is contained in:
chicpro
2013-08-23 10:39:16 +09:00
parent 8ae41a2213
commit 523c6e5e31
44 changed files with 216 additions and 269 deletions

View File

@ -51,18 +51,17 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
$od_id = $_POST['od_id'][$m];
// 장바구니 상태가 '주문', '준비' 일 경우 '배송' 으로 상태를 변경
$uq_id = $_POST['uq_id'][$m];
$sql = " update {$g4['shop_cart_table']}
set ct_status = '배송'
where ct_status in ('주문', '준비')
and uq_id = '$uq_id' ";
and od_id = '$od_id' ";
sql_query($sql);
include "./ordermail.inc.php";
// 재고 반영
$sql2 = " select it_id, ct_id, ct_stock_use, ct_qty from {$g4['shop_cart_table']}
where uq_id = '$uq_id'
where od_id = '$od_id'
and ct_stock_use = '0' ";
$result2 = sql_query($sql2);
for ($k=0; $row2=mysql_fetch_array($result2); $k++)
@ -73,7 +72,7 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
$sql4 = " update {$g4['shop_cart_table']}
set ct_stock_use = '1',
ct_history = CONCAT(ct_history,'\n배송일괄|$now|$REMOTE_ADDR')
where uq_id = '$uq_id'
where od_id = '$od_id'
and ct_id = '{$row2['ct_id']}' ";
sql_query($sql4);
}