Changeset 19742 for branches/version-2_5-dev/data/class/SC_Product.php
- Timestamp:
- 2010/12/18 20:04:49 (16 years ago)
- File:
-
- 1 edited
-
branches/version-2_5-dev/data/class/SC_Product.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_Product.php
r19740 r19742 716 716 717 717 /** 718 * 商品規格詳細の SQL を取得する. 719 * 720 * MEMO: 2.4系 vw_product_classに相当(?)するイメージ 721 * 722 * @param string $where 商品詳細の WHERE 句 723 * @return string 商品規格詳細の SQL 724 */ 725 function prdclsSQL($where = "") { 726 $whereCause = ""; 727 if (!SC_Utils_Ex::isBlank($where)) { 728 $whereCause = " WHERE " . $where; 729 } 730 $sql = <<< __EOS__ 731 ( 732 SELECT dtb_products.*, 733 dtb_products_class.product_class_id, 734 dtb_products_class.class_combination_id, 735 dtb_products_class.product_type_id, 736 dtb_products_class.product_code, 737 dtb_products_class.stock, 738 dtb_products_class.stock_unlimited, 739 dtb_products_class.sale_limit, 740 dtb_products_class.price01, 741 dtb_products_class.price02, 742 dtb_products_class.deliv_fee, 743 dtb_products_class.point_rate, 744 dtb_products_class.down_filename, 745 dtb_products_class.down_realfilename, 746 dtb_class_combination.parent_class_combination_id, 747 dtb_class_combination.classcategory_id, 748 dtb_class_combination.level as classlevel, 749 Tpcm.classcategory_id as parent_classcategory_id, 750 Tpcm.level as parent_classlevel, 751 Tcc1.class_id as class_id, 752 Tcc1.name as classcategory_name, 753 Tcc2.class_id as parent_class_id, 754 Tcc2.name as parent_classcategory_name 755 FROM dtb_products 756 LEFT JOIN dtb_products_class 757 ON dtb_products.product_id = dtb_products_class.product_id 758 LEFT JOIN dtb_class_combination 759 ON dtb_products_class.class_combination_id = dtb_class_combination.class_combination_id 760 LEFT JOIN dtb_class_combination as Tpcm 761 ON dtb_class_combination.parent_class_combination_id = Tpcm.class_combination_id 762 LEFT JOIN dtb_classcategory as Tcc1 763 ON dtb_class_combination.classcategory_id = Tcc1.classcategory_id 764 LEFT JOIN dtb_classcategory as Tcc2 765 ON Tpcm.classcategory_id = Tcc2.classcategory_id 766 ) as prdcls 767 __EOS__; 768 return $sql; 769 } 770 771 /** 718 772 * 商品規格ID1、2に紐づいた,product_class_idを取得する. 719 773 *
Note: See TracChangeset
for help on using the changeset viewer.
