You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
884 B
PHP
28 lines
884 B
PHP
<?php
|
|
class DwsDataConst {
|
|
const dwsTrade = 'trade';
|
|
const dwsGoodsPv = 'pv';
|
|
const dwsGoodsFav = 'fav';
|
|
|
|
|
|
public static function getDwsConditionColumn($dwsDtRange, $type) {
|
|
switch ($dwsDtRange) {
|
|
case '7' :
|
|
$dwsDtColumns = array (
|
|
DwsDataConst::dwsTrade => 'pay_ordr_goods_qty_7d',
|
|
DwsDataConst::dwsGoodsFav => 'goods_fav_cnt_7d',
|
|
DwsDataConst::dwsGoodsPv => 'goods_pv_7d',
|
|
);
|
|
break;
|
|
case '30' :
|
|
$dwsDtColumns = array (
|
|
DwsDataConst::dwsTrade => 'pay_ordr_goods_qty_30d',
|
|
DwsDataConst::dwsGoodsFav => 'goods_fav_cnt_30d',
|
|
DwsDataConst::dwsGoodsPv => 'goods_pv_30d',
|
|
);
|
|
break;
|
|
}
|
|
|
|
return $dwsDtColumns[$type];
|
|
}
|
|
} |