UserRetiredSalary.php 932 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace app\api\controller\v1;
  3. use app\api\controller\Base;
  4. use app\hander\HelpHander;
  5. use think\Db;
  6. class UserRetiredSalary extends Base
  7. {
  8. // 发放薪水
  9. public function save(){
  10. model('UserRetiredSalary')->add();
  11. HelpHander::success([],'操作成功');
  12. }
  13. // 修改工资
  14. public function update(){
  15. model('UserRetiredSalary')->add();
  16. HelpHander::success([],'操作成功');
  17. }
  18. // 详情
  19. public function detail(){
  20. $id = input('id/d',0);
  21. $ret = model('UserRetiredSalary')->info($id);
  22. HelpHander::success($ret);
  23. }
  24. // 列表
  25. public function list(){
  26. $page = input('page/d',1);
  27. $size = input('size/d',10);
  28. $name = input('name','','trim');
  29. $month = input('month','','trim');
  30. $ret = model('UserRetiredSalary')->lists($page,$size,$name,$month);
  31. HelpHander::success($ret);
  32. }
  33. }