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

优化新增仅单参与结算是结算
master
陈志 4 years ago committed by Gogs
commit 4da7fa623f

@ -952,14 +952,16 @@ class CompanyStatementSetController extends Controller {
$spenMap = [ $spenMap = [
"s.pay_status"=>1, "s.pay_status"=>1,
"s.payed_time"=>['between', [$begintime,$endtime]], "s.payed_time"=>['between', [$begintime,$endtime]],
"s.is_check"=>1
];
$cpMap = [
"s.pay_status"=>1,
"s.payed_time"=>['between', [$begintime,$endtime]]
];
$cpAllMap =[
"s.pay_status"=>1,
"s.payed_time"=>['elt',$endtime]
]; ];
// dump($spenMap);
$cpMap = $spenMap;
$cpMap["s.payed_time"] = ['between', [strtotime(date("Y-m-1",$begintime)),$endtime]];
$cpAllMap = $spenMap;
$cpAllMap["s.payed_time"] = ['elt',$endtime];
for ($i=0; $i <count($idarr); $i++) { for ($i=0; $i <count($idarr); $i++) {
$company_id = $idarr[$i]; $company_id = $idarr[$i];
@ -1256,15 +1258,19 @@ class CompanyStatementSetController extends Controller {
$spenMap = [ $spenMap = [
"s.pay_status"=>1, "s.pay_status"=>1,
"s.payed_time"=>['between', [$begintime,$endtime]], "s.payed_time"=>['between', [$begintime,$endtime]],
"s.is_check"=>1
]; ];
$cpallgame = []; $cpallgame = [];
$cpgame = []; $cpgame = [];
$cpMap = $spenMap; $cpMap = [
"s.pay_status"=>1,
$cpMap["s.payed_time"] = ['between', [strtotime(date("Y-m-1",$begintime)),$endtime]]; "s.payed_time"=>['between', [$begintime,$endtime]]
];
$cpAllMap = $spenMap; $cpAllMap = [
$cpAllMap["s.payed_time"] = ['elt',$endtime]; "s.pay_status"=>1,
"s.payed_time"=>['elt',$endtime]
];
// unset($cpAllMap["s.payed_time"]); // unset($cpAllMap["s.payed_time"]);
for ($i=0; $i <count($idarr); $i++) { for ($i=0; $i <count($idarr); $i++) {
@ -2130,6 +2136,7 @@ class CompanyStatementSetController extends Controller {
$spenMap = [ $spenMap = [
"s.pay_status"=>1, "s.pay_status"=>1,
"s.payed_time"=>['between', [$begintime,$endtime]], "s.payed_time"=>['between', [$begintime,$endtime]],
"s.is_check"=>1
]; ];
$company_id = $company_id; $company_id = $company_id;
@ -2155,6 +2162,7 @@ class CompanyStatementSetController extends Controller {
$spenMap = [ $spenMap = [
"s.pay_status"=>1, "s.pay_status"=>1,
"s.payed_time"=>['between', [$begintime,$endtime]], "s.payed_time"=>['between', [$begintime,$endtime]],
"s.is_check"=>1
]; ];
$Pmap = [ $Pmap = [

Loading…
Cancel
Save