dever 3 年 前
コミット
ccb6a5c637
1 ファイル変更4 行追加4 行削除
  1. 4 4
      database/info_sku.php

+ 4 - 4
database/info_sku.php

@@ -163,7 +163,7 @@ $config = array
 			),
 			'type' => 'all',
 			'order' => array('id' => 'desc'),
-			'col' => '*,num-sell_num as num|key',
+			'col' => 'id,info_id,`key`,price,s_price,num-sell_num as num|key',
 		),
 
 		# 获取单条数据
@@ -176,7 +176,7 @@ $config = array
 				'state' => 1,
 			),
 			'type' => 'one',
-			'col' => '*,num-sell_num as num',
+			'col' => 'id,info_id,price,s_price,num-sell_num as num',
 		),
 
 		'getMinOne' => array
@@ -189,7 +189,7 @@ $config = array
 			),
 			'type' => 'one',
 			'order' => array('price' => 'asc', 'id' => 'desc'),
-			'col' => '*',
+			'col' => 'id,info_id,price,s_price,num-sell_num as num',
 		),
 
 		'getMaxOne' => array
@@ -202,7 +202,7 @@ $config = array
 			),
 			'type' => 'one',
 			'order' => array('price' => 'desc', 'id' => 'desc'),
-			'col' => '*',
+			'col' => 'id,info_id,price,s_price,num-sell_num as num',
 		),
 
 		# 更新售出量