Ignore:
Timestamp:
2011/12/26 17:11:08 (12 years ago)
Author:
Seasoft
Message:

#1582 (SC_Query 一致レコードの有無を返す機能を追加 (パフォーマンス改善))
#1526 (typo修正・ソース整形・ソースコメントの改善)
#1449 (不要な関数・処理の整理)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/pages/admin/products/LC_Page_Admin_Products_UploadCSV.php

    r21317 r21376  
    391391            // 同じidが存在すればupdate存在しなければinsert 
    392392            $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) { 
    395395                $objQuery->update("dtb_products", $sqlval, $where, array($sqlval['product_id'])); 
    396             }else{ 
     396            } else { 
    397397                $sqlval['create_date'] = $arrList['update_date']; 
    398398                // INSERTの実行 
Note: See TracChangeset for help on using the changeset viewer.