|
|
@ -599,38 +599,42 @@ class StatementMangementController extends ThinkController
|
|
|
|
->select();
|
|
|
|
->select();
|
|
|
|
// dump($data);die();
|
|
|
|
// dump($data);die();
|
|
|
|
|
|
|
|
|
|
|
|
// $statement = M('statement','tab_')
|
|
|
|
$statement = M('statement','tab_')
|
|
|
|
// ->field('ext_field')
|
|
|
|
->field('ext_field')
|
|
|
|
// ->where(['ext_field'=>['like','%,%']])
|
|
|
|
->where(['ext_field'=>['like','%,%']])
|
|
|
|
// ->select();
|
|
|
|
->select();
|
|
|
|
//
|
|
|
|
|
|
|
|
// $withdrawData = [];
|
|
|
|
$withdrawData = [];
|
|
|
|
//
|
|
|
|
|
|
|
|
// foreach($statement as $key => $value) {
|
|
|
|
foreach($statement as $key => $value) {
|
|
|
|
//
|
|
|
|
|
|
|
|
// $handleData = explode(',',$value['ext_field']);
|
|
|
|
$handleData = explode(',',$value['ext_field']);
|
|
|
|
//
|
|
|
|
|
|
|
|
// foreach ($handleData as $hk => $hv) {
|
|
|
|
foreach ($handleData as $hk => $hv) {
|
|
|
|
// array_push($withdrawData,$hv);
|
|
|
|
array_push($withdrawData,$hv);
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
//
|
|
|
|
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
//
|
|
|
|
|
|
|
|
// foreach ($data as $key => $value) {
|
|
|
|
$thisWithdraw = explode(',',$_REQUEST['withdraw']);
|
|
|
|
// $data[$key]['settlement_begin_time'] = date("Y-m-d H:i:s", $data[$key]['settlement_begin_time']);
|
|
|
|
|
|
|
|
// $data[$key]['settlement_end_time'] = date("Y-m-d H:i:s", $data[$key]['settlement_end_time']);
|
|
|
|
foreach ($data as $key => $value) {
|
|
|
|
//
|
|
|
|
|
|
|
|
// if (in_array($value['widthdraw_number'],$withdrawData)) {
|
|
|
|
|
|
|
|
// unset($data[$key]);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// foreach ($data as $key => $value) {
|
|
|
|
|
|
|
|
// $data[$key]['settlement_begin_time'] = date("Y-m-d H:i:s", $data[$key]['settlement_begin_time']);
|
|
|
|
// $data[$key]['settlement_begin_time'] = date("Y-m-d H:i:s", $data[$key]['settlement_begin_time']);
|
|
|
|
// $data[$key]['settlement_end_time'] = date("Y-m-d H:i:s", $data[$key]['settlement_end_time']);
|
|
|
|
// $data[$key]['settlement_end_time'] = date("Y-m-d H:i:s", $data[$key]['settlement_end_time']);
|
|
|
|
//
|
|
|
|
|
|
|
|
// }
|
|
|
|
// var_dump($value['widthdraw_number'].$_REQUEST['withdraw']);die();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (in_array($value['widthdraw_number'],$withdrawData)&&!in_array($value['widthdraw_number'],$thisWithdraw)) {
|
|
|
|
|
|
|
|
unset($data[$key]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($data as $key => $value) {
|
|
|
|
|
|
|
|
$data[$key]['settlement_begin_time'] = date("Y-m-d H:i:s", $data[$key]['settlement_begin_time']);
|
|
|
|
|
|
|
|
$data[$key]['settlement_end_time'] = date("Y-m-d H:i:s", $data[$key]['settlement_end_time']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->assign('withdraw_data',$data);
|
|
|
|
$this->assign('withdraw_data',$data);
|
|
|
|
|
|
|
|
|
|
|
|