|
|
|
@ -1145,10 +1145,10 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
|
|
|
|
|
foreach ($check_add as $key => $value) {
|
|
|
|
|
|
|
|
|
|
if ($value['statement_end_time'] >= $start_time && $value['statement_end_time']<=$end_time
|
|
|
|
|
||$value['statement_begin_time']>=$start_time && $value['statement_begin_time']<=$end_time
|
|
|
|
|
||$value['statement_begin_time']>=$start_time && $value['statement_end_time'] <= $end_time)
|
|
|
|
|
{
|
|
|
|
|
// if ($value['statement_end_time'] >= $start_time && $value['statement_end_time']<=$end_time
|
|
|
|
|
// ||$value['statement_begin_time']>=$start_time && $value['statement_begin_time']<=$end_time
|
|
|
|
|
// ||$value['statement_begin_time']<=$start_time && $value['statement_end_time'] >= $end_time)
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
|
|
$statementInfo = json_decode($value['statement_info'],true);;
|
|
|
|
|
if ($value['company_type'] == 2) {
|
|
|
|
@ -1156,13 +1156,17 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach ($statementInfo as $k => $v) {
|
|
|
|
|
if (in_array($v['relation_game_id'],$relation_game_data)) {
|
|
|
|
|
$this->ajaxReturn(['status'=>0,'data'=>[],'msg'=>"《{$v['game_name']}》在日期:{$_REQUEST['time_start']}-{$_REQUEST['time_end']}有结算过的部分,请重新选择"]);
|
|
|
|
|
if (strtotime(str_replace('.','-',$v['statement_end_time'])) >= $start_time && strtotime(str_replace('.','-',$v['statement_end_time']))<=$end_time
|
|
|
|
|
||strtotime(str_replace('.','-',$v['statement_begin_time']))>=$start_time && strtotime(str_replace('.','-',$v['statement_begin_time']))<=$end_time
|
|
|
|
|
||strtotime(str_replace('.','-',$v['statement_begin_time']))<=$start_time && strtotime(str_replace('.','-',$v['statement_end_time'])) >= $end_time) {
|
|
|
|
|
if (in_array($v['relation_game_id'], $relation_game_data)) {
|
|
|
|
|
$this->ajaxReturn(['status' => 0, 'data' => [], 'msg' => "《{$v['game_name']}》在日期:{$_REQUEST['time_start']}-{$_REQUEST['time_end']}有结算过的部分,请重新选择"]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|