|
|
|
@ -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 [];
|
|
|
|
|