|
|
@@ -8,7 +8,7 @@ use Yii;
|
|
|
/**
|
|
|
* This is the model class for table "{{%FREE_TEMPLATE}}".
|
|
|
*
|
|
|
- * @property int id
|
|
|
+ * @property string ID
|
|
|
* @property string country_id 国家ID
|
|
|
* @property double freight 运费
|
|
|
* @property double free_shipping 免运费阈值
|
|
|
@@ -44,7 +44,7 @@ class FreeTemplate extends \common\components\ActiveRecord
|
|
|
public function attributeLabels()
|
|
|
{
|
|
|
return [
|
|
|
- 'id' => 'ID',
|
|
|
+ 'ID' => 'ID',
|
|
|
'country_id' => '国家ID',
|
|
|
'freight' => '运费',
|
|
|
'free_shipping' => '免运费阈值',
|
|
|
@@ -85,7 +85,7 @@ class FreeTemplate extends \common\components\ActiveRecord
|
|
|
*/
|
|
|
public static function getAllData()
|
|
|
{
|
|
|
- return static::find()->indexBy('id')->orderBy('id ASC')->asArray()->all();
|
|
|
+ return static::find()->indexBy('ID')->orderBy('ID ASC')->asArray()->all();
|
|
|
}
|
|
|
|
|
|
/**
|