public function pastDataAction()
 {
     $openid = get_openid();
     //获取近6期的业绩列表
     $AchievementIssueM = new AchievementIssueModel();
     $count = 6;
     $issueInfoArr = $AchievementIssueM->getIssuesByCount($count);
     //拼接当前用户近6期的业绩名细
     $Achievement = new AchievementModel();
     $Achievement->setOpenid($openid);
     $key = 'id';
     $resKey = '_detail';
     $pastAchievementArr = $Achievement->getInfoArrByIssueArr($issueInfoArr, $key, $resKey);
     $this->assign('data', $pastAchievementArr);
     $this->assign("YZBody", $this->fetch('pastData'));
     $this->display(YZ_TEMPLATE);
 }
 private function _getCustomerInfoByMap($map)
 {
     //获取当前业绩信息
     $ach = new AchievementModel();
     $achInfo = $ach->getCurrentInfo();
     $this->assign('achievement', $achInfo);
     $customer = new CustomerModel();
     $customer->setMap($map);
     $count = $customer->getCountByMap();
     $page = $this->page;
     $currentPage = I('get.p', 1);
     $page->setCounts($count);
     $page->setCurrentPage($currentPage);
     $page->setPageStyle(2);
     $pageStr = $page->fetch();
     $currentPage = $page->getCurrentPage();
     $pageSize = $page->getPageSize();
     $menuList = $customer->getDataArrByMap($currentPage, $pageSize);
     $key = 'openid';
     $menuList = change_key($menuList, $key);
     //截取本页内容
     $this->assign('page', $pageStr);
     foreach ($menuList as $key => $value) {
         $menuList[$key]['actionUrl']['edit'] = U('Customer/Edit/index?id=' . $value['id']);
         $menuList[$key]['actionUrl']['freezen'] = U('Customer/Freezen/index?id=' . $value['id']);
         $menuList[$key]['actionUrl']['look'] = U('Customer/Look/index?id=' . $value['id']);
         $menuList[$key]['actionUrl']['parent_look'] = U('Customer/Look/index?id=' . $value['parentid']);
     }
     //添加上级用户名称
     foreach ($menuList as $key => $value) {
         $menuList[$key]['_parentname'] = $this->_addParentName($value['parentid']);
     }
     $css = $this->fetch('indexCss');
     $this->assign('css', $css);
     $this->assign('customer', $menuList);
     $this->assign('listCustomerUrl', U('ListCustomer/index'));
 }