优化上游结算

master
chenzhi 4 years ago
parent e6af0fbcd5
commit 419793d91b

@ -119,6 +119,10 @@ return array(
"tab_spend",
"sys_auth_group",
"tab_index_chart",
"tab_deposit"
"tab_deposit",
"tab_company_statement",
"tab_company_lack_statement_info",
"tab_company_statement_info",
"tab_company_statement_pool",
]
);

@ -255,7 +255,7 @@ class CompanyStatementSetController extends Controller {
// TODO:此处不判断现游戏名=原包名,但却不是同一款游戏
$verify_log=json_encode(["create_user"=>"system","create_time"=>date("Y-m-d H:i:s")]);
$GameDb = M("Game","tab_");
$StatementDb = M("CompanyStatement","tab_");
$StatementDb = SM("CompanyStatement","tab_");
$statement_begin_time = date("Y.m.d",$begintime);
$statement_end_time = date("Y.m.d",$endtime);
@ -451,7 +451,7 @@ class CompanyStatementSetController extends Controller {
"payed_time"=>["BETWEEN",[$begintime,$endtime]],
"game_id"=>["in",$gmstr]
];
$paydb = M('spend','tab_');
$paydb = SM('spend','tab_');
$paylist = $paydb->field("game_id,SUM(pay_amount) pay_amount")->where($paywhere)->group("game_id")->select();
if(empty($paylist)){
return [];

Loading…
Cancel
Save