Changeset 21390 for branches/version-2_12-dev/data/class/pages/admin/products/LC_Page_Admin_Products_UploadCSV.php
- Timestamp:
- 2012/01/06 19:54:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/admin/products/LC_Page_Admin_Products_UploadCSV.php
r21317 r21390 391 391 // 同じidが存在すればupdate存在しなければinsert 392 392 $where = "product_id = ?"; 393 $product_ count = $objQuery->count("dtb_products", $where, array($sqlval['product_id']));394 if ($product_count > 0){393 $product_exists = $objQuery->exists("dtb_products", $where, array($sqlval['product_id'])); 394 if ($product_exists) { 395 395 $objQuery->update("dtb_products", $sqlval, $where, array($sqlval['product_id'])); 396 } else{396 } else { 397 397 $sqlval['create_date'] = $arrList['update_date']; 398 398 // INSERTの実行
Note: See TracChangeset
for help on using the changeset viewer.