where($map) ->select(); foreach($data as $key => $value) { $data[$key]['create_time'] = date('Y-m-d H:i:s',$value['create_time']); $data[$key]['statement_begin_time'] = date('Y-m-d H:i:s',$value['statement_begin_time']); $data[$key]['statement_end_time'] = date('Y-m-d H:i:s',$value['statement_end_time']); $data[$key]['is_confirm'] = $data[$key]['is_confirm']?'确认':'未确认'; $data[$key]['statement_type'] = $value['statement_type']?'公会对账单':'CP对账单'; } $this->assign('data',$data); $this->display(); } public function createDownstreamOrder() { $this->display(); } public function saveDownstreamOrder() { $second_party_info = $_REQUEST['second_party_info']; $first_party_info = $_REQUEST['first_party_info']; $statement_info = $_REQUEST['statement_info']; $sumData = $_REQUEST['sum_data']; $insert['statement_type'] = 1; $insert['company_id'] = $_REQUEST['company_id']; $insert['company_name'] = $second_party_info['partner']; $insert['link_phone'] = $second_party_info['link_phone'];; $insert['statement_begin_time'] = 0; $insert['statement_end_time'] = 0; $insert['create_time'] = time(); $insert['statement_money'] =$sumData['statement_money']; $insert['pay_amount'] = $sumData['pay_amount']; $insert['ext_field'] = 0; $insert['first_party_info'] = 0; $insert['second_party_info'] = 0; $insert['statement_info'] = 0; dump(json_encode($second_party_info)); dump(json_encode($first_party_info)); dump(json_encode($statement_info)); } }