Changeset 23598
- Timestamp:
- 2014/08/21 21:41:07 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/helper/SC_Helper_DB.php
r23573 r23598 105 105 public static function sfDataExists($tableName, $where, $arrWhereVal) 106 106 { 107 $dbFactory = SC_DB_DBFactory_Ex::getInstance();108 109 107 $objQuery =& SC_Query_Ex::getSingletonInstance(); 110 108 $exists = $objQuery->exists($tableName, $where, $arrWhereVal); … … 801 799 $sqlval['product_count'] = (string) '0'; 802 800 } 803 $ ret = $objQuery->update('dtb_category_total_count', $sqlval, 'category_id = ?', array($cid));801 $objQuery->update('dtb_category_total_count', $sqlval, 'category_id = ?', array($cid)); 804 802 if (!$ret) { 805 803 $sqlval['category_id'] = $cid; 806 $ ret = $objQuery->insert('dtb_category_total_count', $sqlval);804 $objQuery->insert('dtb_category_total_count', $sqlval); 807 805 } 808 806 } … … 1358 1356 public function sfCountMaker($objQuery) 1359 1357 { 1360 $sql = '';1361 1362 1358 //テーブル内容の削除 1363 1359 $objQuery->query('DELETE FROM dtb_maker_count'); … … 1565 1561 if ($ret == 0) { 1566 1562 $arrData['id'] = 1; 1567 $ ret = $objQuery->insert('dtb_baseinfo', $arrData);1563 $objQuery->insert('dtb_baseinfo', $arrData); 1568 1564 GC_Utils_Ex::gfPrintLog('dtb_baseinfo に INSERT を実行しました。'); 1569 1565 }
Note: See TracChangeset
for help on using the changeset viewer.