Merge branch 'feature/IOSdata' of wmtx/platform into release

修改bug
master
廖金灵 5 years ago committed by Gogs
commit 4c8cb3c171

@ -108,7 +108,7 @@
<!-- 列表 --> <!-- 列表 -->
<tbody> <tbody>
<empty name="show_data"> <empty name="show_data">
<td colspan="11" class="text-center">aOh! 暂时还没有内容!</td> <td colspan="12" class="text-center">aOh! 暂时还没有内容!</td>
<else/> <else/>
<volist name="show_data" id="vo"> <volist name="show_data" id="vo">
<tr> <tr>

@ -114,7 +114,7 @@
<tbody> <tbody>
<empty name="data.data" > <empty name="data.data" >
<tr> <tr>
<td colspan="7" class="text-center"> aOh! 暂时还没有内容! </td> <td colspan="8" class="text-center"> aOh! 暂时还没有内容! </td>
</tr> </tr>
<else /> <else />
<volist name="data.data" id="vo"> <volist name="data.data" id="vo">

@ -139,7 +139,7 @@
<!-- 列表 --> <!-- 列表 -->
<tbody> <tbody>
<empty name ="list_data"> <empty name ="list_data">
<td colspan="11" class="text-center">aOh! 暂时还没有内容!</td> <td colspan="12" class="text-center">aOh! 暂时还没有内容!</td>
<else /> <else />
<volist name="list_data" id="data"> <volist name="list_data" id="data">
<tr> <tr>

@ -170,7 +170,7 @@
<!-- 列表 --> <!-- 列表 -->
<tbody> <tbody>
<empty name="list_data"> <empty name="list_data">
<td colspan="17" class="text-center">aOh! 暂时还没有内容!</td> <td colspan="18" class="text-center">aOh! 暂时还没有内容!</td>
<else/> <else/>
<volist name="list_data" id="data"> <volist name="list_data" id="data">
<tr> <tr>

@ -2358,6 +2358,7 @@ public function iosDetailExcelInfo($id,$map) {
} }
$rs = M('promote', 'tab_')->field(['id'])->where($map1)->select(); $rs = M('promote', 'tab_')->field(['id'])->where($map1)->select();
$allids = array_column($rs, 'id'); $allids = array_column($rs, 'id');
array_push($allids, PID);
$allUserMap['promote_id'] = ['in', $allids]; $allUserMap['promote_id'] = ['in', $allids];
$allTFMap['promote_id'] = ['in', $allids]; $allTFMap['promote_id'] = ['in', $allids];
$allTFMap['type'] = 2; $allTFMap['type'] = 2;
@ -2386,12 +2387,20 @@ public function iosDetailExcelInfo($id,$map) {
$data = M('promote', 'tab_')->field(['id'])->where($map1) $data = M('promote', 'tab_')->field(['id'])->where($map1)
->limit(($i-1)*$perSize ,$perSize)->select(); ->limit(($i-1)*$perSize ,$perSize)->select();
$ids = array_column($data, 'id'); $ids = array_column($data, 'id');
if ($i == 1) {
array_unshift($ids, PID);
}
foreach($ids as $key => $id) { foreach($ids as $key => $id) {
$promote1 = M('promote', 'tab_')->field('account, level, parent_id, chain')->where(['id' => $id])->select(); $promote1 = M('promote', 'tab_')->field('account, level, parent_id, chain')->where(['id' => $id])->select();
$promote = $promote1[0]; $promote = $promote1[0];
$chain = $promote['chain']; $chain = $promote['chain'];
//$csvData['promote_id'] = $id; //$csvData['promote_id'] = $id;
$csvData['account'] = $promote['account']; if($id == PID) {
$csvData['account'] = $promote['account'].'[自己]';
}else {
$csvData['account'] = $promote['account'];
}
$tfMap['promote_id'] = $id; $tfMap['promote_id'] = $id;
$tfMap['type'] = 2; $tfMap['type'] = 2;
$companyMap['promote_id'] = $id; $companyMap['promote_id'] = $id;

@ -2519,10 +2519,15 @@ class QueryController extends BaseController
$query = M('promote', 'tab_')->field(['id'])->where($map); $query = M('promote', 'tab_')->field(['id'])->where($map);
list($promotes, $pagination, $count) = $this->paginate($query); list($promotes, $pagination, $count) = $this->paginate($query);
$ids = array_column($promotes, 'id'); $ids = array_column($promotes, 'id');
if ($page == 1) {
array_push($ids, PID);
}
// var_dump($ids);die();
// $ids = M('promote', 'tab_')->where($map)->getField('id', true); // $ids = M('promote', 'tab_')->where($map)->getField('id', true);
// $ids[] = $queryPromote['id']; // $ids[] = $queryPromote['id'];
$allPromote = M('promote', 'tab_')->field(['id'])->where($map)->select(); $allPromote = M('promote', 'tab_')->field(['id'])->where($map)->select();
$allids = array_column($allPromote, 'id'); $allids = array_column($allPromote, 'id');
array_push($allids, PID);
$map = []; $map = [];
$map['tab_package_download_log.promote_id'] = ['in', $ids]; $map['tab_package_download_log.promote_id'] = ['in', $ids];
@ -2545,7 +2550,11 @@ class QueryController extends BaseController
$promote = $promote1[0]; $promote = $promote1[0];
$chain = $promote['chain']; $chain = $promote['chain'];
$listData[$key]['promote_id'] = $id; $listData[$key]['promote_id'] = $id;
$listData[$key]['account'] = $promote['account']; if($id == PID) {
$listData[$key]['account'] = $promote['account'].'<span style="color:blue;">'.'['.'自己'.']'.'</span>';
}else {
$listData[$key]['account'] = $promote['account'];
}
$tfMap['promote_id'] = $id; $tfMap['promote_id'] = $id;
$tfMap['type'] = 2; $tfMap['type'] = 2;
$companyMap['promote_id'] = $id; $companyMap['promote_id'] = $id;

Loading…
Cancel
Save