AttendanceGroupClass.php 575 B

12345678910111213141516171819202122232425
  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 AttendanceGroupClass extends Base
  7. {
  8. // 列表
  9. public function listDuringMonth(){
  10. $groupId = input('groupId/d',0);
  11. $month = input('month','','trim');
  12. $ret = model('AttendanceGroupClass')->listDuringMonth($month,$groupId,$this->orgId);
  13. HelpHander::success($ret);
  14. }
  15. // 新增
  16. public function batchSave(){
  17. model('AttendanceGroupClass')->add();
  18. HelpHander::success([],'操作成功');
  19. }
  20. }