AttendanceGroupUser.php 435 B

12345678910111213141516
  1. <?php
  2. namespace app\api\controller\v1;
  3. use app\api\controller\Base;
  4. use app\hander\HelpHander;
  5. class AttendanceGroupUser extends Base
  6. {
  7. //获取今天要打卡的考勤组
  8. public function mygroup(){
  9. $day = input('day','','trim');
  10. $day = $day?$day:date('Y-m-d');
  11. $ret = model('AttendanceGroupUser')->userGroup($this->userId,$this->orgId,$day);
  12. HelpHander::success($ret,'操作成功');
  13. }
  14. }