推广平台>财务管理--更新

master
chenxiaojun 5 years ago
parent 58bd9414d6
commit f1fda49e9e

@ -130,7 +130,7 @@ class FinanceController extends BaseController
$map['pay_time'] = ['between', [$begTime, $endTime]];
$dayList = $this->getDayList($begTime, $endTime);
$data = $model->field('FROM_UNIXTIME(pay_time, "%Y-%m-%d") as day,
sum(if(selle_ratio > 0, pay_amount * selle_ratio, 0)) as income')
sum(if(selle_ratio > 0, pay_amount * selle_ratio, 0)) as income, selle_status')
->where($map)
->group('day')
->select();
@ -140,6 +140,7 @@ class FinanceController extends BaseController
$records[] = [
'day' => $date,
'income' => bcdiv($data[$day], 100, 2),
// 'selle_status_text' => empty($data[$day]),
'url' => U('settlementDtl', array('begtime' => $day, 'endtime' => $day))
];
}

@ -192,7 +192,6 @@
<th>游戏类型</th>
<th>平台</th>
<th>混服情况</th>
<th>玩家折扣</th>
<th>分成比例</th>
</tr>
<empty name="dataList">
@ -210,7 +209,6 @@
<td>{$vo.game_type_name}</td>
<td>{:getSDKTypeName($vo['sdk_version'])}</td>
<td><?=($vo['server_type']==1)?'专服':'混服'?></td>
<td><?=($vo['discount']==10)?'----':($vo['discount'].'折')?></td>
<td>{$vo.ratio}%</td>
</tr>
</volist>

Loading…
Cancel
Save