标签:style blog color io os ar sp div on
/** * 记账标记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(); }
标签:style blog color io os ar sp div on
原文地址:http://www.cnblogs.com/hubing/p/4029876.html