记账凭证
/** * 记账标记0未记账 1 已记账 * @param string $vno_id * @param string $falg */ public function signBookFlag($vno_id,$falg) { if (isset($falg)&& isset($vno_id)){ $this->db->where('vno_id',$vno_id); $this->db->update($this->table,$flag); $affectedRows = $this->db->affected_rows(); if ($affectedRows>0) return $affectedRows; } return false; } public function checkVoucher($vnoId) { if (isset($vnoId)){ $this->db->where('vno_id',$vnoId); $this->db->update_batch($this->table,$data); } }
voucher.php
/** * 标记记账 */ public function signBookFlag() { $vnoid = $this->input->post('vnoid'); $flag = $this->input->post('flag'); $this->voucher_model->signBookFlag(); }