BudgetDepTotal.php 621 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace app\api\controller\v1;
  3. use app\api\controller\Base;
  4. use app\hander\HelpHander;
  5. class BudgetDepTotal extends Base
  6. {
  7. // 合计
  8. public function list(){
  9. $page = input('page/d',1);
  10. $size = input('size/d',10);
  11. $budgetId = input('budgetId/',0);
  12. $companyId = input('companyId/',0);
  13. $ret = model('BudgetDepTotal')->lists($page,$size,$budgetId,$companyId,$this->orgId);
  14. HelpHander::success($ret);
  15. }
  16. public function info(){
  17. $id = input('id/d',0);
  18. $ret = model('BudgetDepTotal')->info($id);
  19. HelpHander::success($ret);
  20. }
  21. }