| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- package com.chuanghai.attendance.controller;
- import com.chuanghai.attendance.common.utils.CommonResult;
- import com.chuanghai.attendance.entity.LateClock;
- import com.chuanghai.attendance.service.LateClockService;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestParam;
- import org.springframework.web.bind.annotation.RestController;
- /**
- * 迟到早退
- *
- * @Author: binguo
- * @Date: 2022/9/20 星期二 17:01
- * @Description: com.chuanghai.attendance.controller
- * @Version: 1.0
- */
- @RestController
- @RequestMapping("late")
- public class LateClockController {
- @Autowired
- private LateClockService lateClockService;
- /**
- * 查询迟到早退规则
- *
- * @param campus 规则校区
- * @return
- */
- @GetMapping("queryLateClock")
- private CommonResult<LateClock> queryLateClock(@RequestParam("campus") String campus) {
- LateClock lateClock = lateClockService.queryCampusTime(campus);
- return CommonResult.ok().setResult(lateClock);
- }
- // /**
- // * 新增迟到早退规则
- // * @param lateClock
- // * @return
- // */
- // @PostMapping("saveOrUpdateLateClock")
- // private CommonResult saveOrUpdateLateClock(@RequestBody LateClock lateClock){
- // lateClockService.saveOrUpdateLateClock(lateClock);
- // return CommonResult.ok();
- // }
- }
|