market_groups_page
This commit is contained in:
@@ -167,18 +167,16 @@ class groupsCustomer extends BaseController
|
||||
!$page && $page = 1;
|
||||
!$limit && $limit = 10;
|
||||
$levels = [];
|
||||
if ($page == 1) {
|
||||
$re_gro = $this->mdSyliveGroups->get(['activityId' => $activityId, 'parentId' => 0, 'status>=' => 0]);
|
||||
if ($re_gro['statisticsType']) {
|
||||
$this->load->model('market/Market_sys_dictionary_data_model', 'mdSysDictionaryData');
|
||||
$res_dit = $this->mdSysDictionaryData->select(['status>=' => 0, 'dictId' => $re_gro['statisticsType']], 'sortNumber asc,dictDataId desc'
|
||||
, 0, 0, 'dictDataCode,dictDataName');
|
||||
foreach ($res_dit as $k => $v) {
|
||||
$groupsLevel = intval($v['dictDataCode']);
|
||||
$re_gro = $this->mdSyliveGroups->get(['activityId' => $activityId, 'groupsLevel' => $groupsLevel, 'status>=' => 0]);
|
||||
if ($re_gro) {
|
||||
$levels[] = ['label' => $v['dictDataName'], 'prop' => "levelName{$groupsLevel}"];
|
||||
}
|
||||
$re_gro = $this->mdSyliveGroups->get(['activityId' => $activityId, 'parentId' => 0, 'status>=' => 0]);
|
||||
if ($re_gro['statisticsType']) {
|
||||
$this->load->model('market/Market_sys_dictionary_data_model', 'mdSysDictionaryData');
|
||||
$res_dit = $this->mdSysDictionaryData->select(['status>=' => 0, 'dictId' => $re_gro['statisticsType']], 'sortNumber asc,dictDataId desc'
|
||||
, 0, 0, 'dictDataCode,dictDataName');
|
||||
foreach ($res_dit as $k => $v) {
|
||||
$groupsLevel = intval($v['dictDataCode']);
|
||||
$re_gro = $this->mdSyliveGroups->get(['activityId' => $activityId, 'groupsLevel' => $groupsLevel, 'status>=' => 0]);
|
||||
if ($re_gro) {
|
||||
$levels[] = ['label' => $v['dictDataName'], 'prop' => "levelName{$groupsLevel}"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -245,18 +245,16 @@ class groupsExchange extends BaseController
|
||||
!$page && $page = 1;
|
||||
!$limit && $limit = 10;
|
||||
$levels = [];
|
||||
if ($page == 1) {
|
||||
$re_gro = $this->mdSyliveGroups->get(['activityId' => $activityId, 'parentId' => 0, 'status>=' => 0]);
|
||||
if ($re_gro['statisticsType']) {
|
||||
$this->load->model('market/Market_sys_dictionary_data_model', 'mdSysDictionaryData');
|
||||
$res_dit = $this->mdSysDictionaryData->select(['status>=' => 0, 'dictId' => $re_gro['statisticsType']], 'sortNumber asc,dictDataId desc'
|
||||
, 0, 0, 'dictDataCode,dictDataName');
|
||||
foreach ($res_dit as $k => $v) {
|
||||
$groupsLevel = intval($v['dictDataCode']);
|
||||
$re_gro = $this->mdSyliveGroups->get(['activityId' => $activityId, 'groupsLevel' => $groupsLevel, 'status>=' => 0]);
|
||||
if ($re_gro) {
|
||||
$levels[] = ['label' => $v['dictDataName'], 'prop' => "levelName{$groupsLevel}"];
|
||||
}
|
||||
$re_gro = $this->mdSyliveGroups->get(['activityId' => $activityId, 'parentId' => 0, 'status>=' => 0]);
|
||||
if ($re_gro['statisticsType']) {
|
||||
$this->load->model('market/Market_sys_dictionary_data_model', 'mdSysDictionaryData');
|
||||
$res_dit = $this->mdSysDictionaryData->select(['status>=' => 0, 'dictId' => $re_gro['statisticsType']], 'sortNumber asc,dictDataId desc'
|
||||
, 0, 0, 'dictDataCode,dictDataName');
|
||||
foreach ($res_dit as $k => $v) {
|
||||
$groupsLevel = intval($v['dictDataCode']);
|
||||
$re_gro = $this->mdSyliveGroups->get(['activityId' => $activityId, 'groupsLevel' => $groupsLevel, 'status>=' => 0]);
|
||||
if ($re_gro) {
|
||||
$levels[] = ['label' => $v['dictDataName'], 'prop' => "levelName{$groupsLevel}"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,18 +61,16 @@ class groupsOrder extends BaseController
|
||||
!$page && $page = 1;
|
||||
!$limit && $limit = 10;
|
||||
$levels = [];
|
||||
if ($page == 1) {
|
||||
$re_gro = $this->mdSyliveGroups->get(['activityId' => $activityId, 'parentId' => 0, 'status>=' => 0]);
|
||||
if ($re_gro['statisticsType']) {
|
||||
$this->load->model('market/Market_sys_dictionary_data_model', 'mdSysDictionaryData');
|
||||
$res_dit = $this->mdSysDictionaryData->select(['status>=' => 0, 'dictId' => $re_gro['statisticsType']], 'sortNumber asc,dictDataId desc'
|
||||
, 0, 0, 'dictDataCode,dictDataName');
|
||||
foreach ($res_dit as $k => $v) {
|
||||
$groupsLevel = intval($v['dictDataCode']);
|
||||
$re_gro = $this->mdSyliveGroups->get(['activityId' => $activityId, 'groupsLevel' => $groupsLevel, 'status>=' => 0]);
|
||||
if ($re_gro) {
|
||||
$levels[] = ['label' => $v['dictDataName'], 'prop' => "levelName{$groupsLevel}"];
|
||||
}
|
||||
$re_gro = $this->mdSyliveGroups->get(['activityId' => $activityId, 'parentId' => 0, 'status>=' => 0]);
|
||||
if ($re_gro['statisticsType']) {
|
||||
$this->load->model('market/Market_sys_dictionary_data_model', 'mdSysDictionaryData');
|
||||
$res_dit = $this->mdSysDictionaryData->select(['status>=' => 0, 'dictId' => $re_gro['statisticsType']], 'sortNumber asc,dictDataId desc'
|
||||
, 0, 0, 'dictDataCode,dictDataName');
|
||||
foreach ($res_dit as $k => $v) {
|
||||
$groupsLevel = intval($v['dictDataCode']);
|
||||
$re_gro = $this->mdSyliveGroups->get(['activityId' => $activityId, 'groupsLevel' => $groupsLevel, 'status>=' => 0]);
|
||||
if ($re_gro) {
|
||||
$levels[] = ['label' => $v['dictDataName'], 'prop' => "levelName{$groupsLevel}"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,18 +81,16 @@ class groupsWin extends BaseController
|
||||
!$page && $page = 1;
|
||||
!$limit && $limit = 10;
|
||||
$levels = [];
|
||||
if ($page == 1) {
|
||||
$re_gro = $this->mdSyliveGroups->get(['activityId' => $activityId, 'parentId' => 0, 'status>=' => 0]);
|
||||
if ($re_gro['statisticsType']) {
|
||||
$this->load->model('market/Market_sys_dictionary_data_model', 'mdSysDictionaryData');
|
||||
$res_dit = $this->mdSysDictionaryData->select(['status>=' => 0, 'dictId' => $re_gro['statisticsType']], 'sortNumber asc,dictDataId desc'
|
||||
, 0, 0, 'dictDataCode,dictDataName');
|
||||
foreach ($res_dit as $k => $v) {
|
||||
$groupsLevel = intval($v['dictDataCode']);
|
||||
$re_gro = $this->mdSyliveGroups->get(['activityId' => $activityId, 'groupsLevel' => $groupsLevel, 'status>=' => 0]);
|
||||
if ($re_gro) {
|
||||
$levels[] = ['label' => $v['dictDataName'], 'prop' => "levelName{$groupsLevel}"];
|
||||
}
|
||||
$re_gro = $this->mdSyliveGroups->get(['activityId' => $activityId, 'parentId' => 0, 'status>=' => 0]);
|
||||
if ($re_gro['statisticsType']) {
|
||||
$this->load->model('market/Market_sys_dictionary_data_model', 'mdSysDictionaryData');
|
||||
$res_dit = $this->mdSysDictionaryData->select(['status>=' => 0, 'dictId' => $re_gro['statisticsType']], 'sortNumber asc,dictDataId desc'
|
||||
, 0, 0, 'dictDataCode,dictDataName');
|
||||
foreach ($res_dit as $k => $v) {
|
||||
$groupsLevel = intval($v['dictDataCode']);
|
||||
$re_gro = $this->mdSyliveGroups->get(['activityId' => $activityId, 'groupsLevel' => $groupsLevel, 'status>=' => 0]);
|
||||
if ($re_gro) {
|
||||
$levels[] = ['label' => $v['dictDataName'], 'prop' => "levelName{$groupsLevel}"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user