12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\Db;
- class HouseContractPay extends Base
- {
- // 新增
- public function save(){
- model('HouseContractPay')->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);
- }
- }
|