add(); HelpHander::success([],'操作成功'); } // 删除 public function del(){ $id = input('id/d',0); model('HouseContractPay')->del($id); HelpHander::success([],'操作成功'); } // 改变发票状态 public function invoice(){ $id = input('id/d',0); $invoice = 1; model('HouseContractPay')->changeInvoice($id,$invoice,$this->userId); HelpHander::success([],'操作成功'); } //列表 public function list(){ $page = input('page/d',1); $size = input('size/d',10); $intro = input('intro','','trim'); $sn = input('sn','','trim'); $contractId = input('contractId/d',0); $ret = model('HouseContractPay')->lists($page,$size,$intro,$contractId,$sn,$this->orgId); HelpHander::success($ret); } public function jfee(){ $id = input('id/d',0); $ret = model('HouseContractPay')->jfee($id); HelpHander::success($ret); } public function jfees(){ $ids = input('ids','','trim'); if(!$ids){ HelpHander::error('参数错误'); } $ret = model('HouseContractPay')->jfees($ids); HelpHander::success($ret); } }