|
|
|
@ -1152,19 +1152,32 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
|
|
|
|
|
$statementInfo = json_decode($value['statement_info'],true);;
|
|
|
|
|
if ($value['company_type'] == 2) {
|
|
|
|
|
$statementInfo = $statementInfo['game_list'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach ($statementInfo as $k => $v) {
|
|
|
|
|
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']}有结算过的部分,请重新选择"]);
|
|
|
|
|
foreach ($statementInfo as $sk => $sv) {
|
|
|
|
|
$statementInfos = $sv['game_list'];
|
|
|
|
|
foreach ($statementInfos as $k => $v) {
|
|
|
|
|
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']}有结算过的部分,请重新选择"]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
foreach ($statementInfo as $k => $v) {
|
|
|
|
|
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']}有结算过的部分,请重新选择"]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|