管理后台>推广员>结算管理>公会分成管理--更新

master
chenxiaojun 5 years ago
commit 89c7855337

@ -116,14 +116,23 @@ class PromoteGameRatioController extends ThinkController
$thisTurnoverRatios = $promoteGameRatio['turnover_ratio'] ? json_decode($promoteGameRatio['turnover_ratio'], true) : [];
$thisRatioDtl = "默认:{$promoteGameRatio['ratio']}%";
if ($thisTurnoverRatios) {
if (I('export', 0) == 1) {
$symbol = "\n";
} else {
$symbol = "<br>";
}
foreach ($thisTurnoverRatios as $thisTurnoverRatio) {
$thisIntervalClosedStatusText = isset($thisTurnoverRatio['instanceof']) ? ($thisTurnoverRatio['instanceof'] == 1 ? '≥' : '>') : '≥';
$thisRatioDtl .= "<br>月流水{$thisIntervalClosedStatusText}{$thisTurnoverRatio['turnover']},比例:{$thisTurnoverRatio['ratio']}%";
$thisRatioDtl .= "{$symbol}月流水{$thisIntervalClosedStatusText}{$thisTurnoverRatio['turnover']},比例:{$thisTurnoverRatio['ratio']}%";
}
}
$thisLastRatioStatus = $promoteGameRatio['last_ratio_status'];
$thisStatusText = self::$statusList[$promoteGameRatio['status']];
$thisStatusText = ($promoteGameRatio['status'] == -1) ? '<span style="color: red;">' . $thisStatusText . '</span>' : $thisStatusText;
if (I('export', 0) == 1) {
$thisStatusText = ($promoteGameRatio['status'] == -1) ? $thisStatusText : $thisStatusText;
} else {
$thisStatusText = ($promoteGameRatio['status'] == -1) ? '<span style="color: red;">' . $thisStatusText . '</span>' : $thisStatusText;
}
$thisApplicant = get_admin_account($promoteGameRatio['applicant_id']);
$thisReviewer = $promoteGameRatio['reviewer_id'] ? get_admin_account($promoteGameRatio['reviewer_id']) : '待确认';
$thisBeninTime = date('Y/m', $promoteGameRatio['begin_time']);
@ -181,9 +190,12 @@ class PromoteGameRatioController extends ThinkController
'promote_create_time' => '注册时间',
'promote_status_text' => '状态',
'promote_ver_status_text' => '身份状态',
'company_name' => '推广公司',
'company_belong' => '工会归属',
'game_name' => '已申请游戏',
'game_type_name' => '游戏类型',
'last_ratio' => '原分成比例',
'ratio' => '当前分成比例',
'ratio_dtl' => '公会阶梯比例详细信息',
'valid_date' => '开始时间',
'remark' => '备注',
'status_text' => '分成比例审核',

@ -242,6 +242,9 @@ class StatementMangementController extends ThinkController
if (!empty(I('partner_id'))) {
$map['company_id'] = I('partner_id');
}
if (strlen(I('company_type'))) {
$map['company_type'] = I('company_type');
}
if (!empty(I('account'))) {
$map['accounts'] = ['like', '%' . I('account') . '%'];
}

@ -64,7 +64,15 @@
<!-- 高级搜索 -->
<div class="jssearch fl cf search_list">
<!--游戏类型搜索END-->
<!--公司类型搜索END-->
<div class="input-list input-list-server search_label_rehab">
<select id="company_type" name="company_type" class="select_gallery" style="width:120px;">
<option value="">请选择公司类型</option>
<option value="1" <if condition="'0' eq $_GET['company_type']">selected=selected</if>>上游公司</option>
<option value="2" <if condition="'1' eq $_GET['company_type']">selected=selected</if>>下游公司</option>
</select>
</div>
<!--合作公司搜索END-->
<div class="input-list input-list-server search_label_rehab">
<select id="partner_id" name="partner_id" class="select_gallery" style="width:120px;">
<option value="">请选择合作公司</option>

@ -239,10 +239,10 @@ class PromoteController extends BaseController
$weekArray = [7,1,2,3,4,5,6];
$week = $weekArray[date("w")];
$match_rules = M("document_pop_rules")
->field('id')
->where("(type = 1 and pop_time = {$currentTime}) or (type = 2 and pop_time = {$week})")
->order("sort asc, id desc")
->select();
->field('id')
->where("(type = 1 and pop_time = {$currentTime}) or (type = 2 and pop_time = {$week})")
->order("sort asc, id desc")
->select();
} else {
$match_rules = [];
}

Loading…
Cancel
Save