| | |
| | | package com.ruoyi.staff.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.staff.dto.PersonalAttendanceRecordsDto; |
| | |
| | | |
| | | @ApiOperation("新增/修改人员打卡规则配置") |
| | | @PostMapping("/add") |
| | | @Log(title = "新增/修改人员打卡规则配置", businessType = BusinessType.INSERT) |
| | | public R add(@RequestBody PersonalAttendanceLocationConfig personalAttendanceLocationConfig){ |
| | | |
| | | |
| | |
| | | |
| | | @ApiOperation("分页查询人员打卡规则配置") |
| | | @GetMapping("/listPage") |
| | | @Log(title = "分页查询人员打卡规则配置", businessType = BusinessType.OTHER) |
| | | public R listPage(Page page){ |
| | | return R.ok(personalAttendanceLocationConfigService.page(page)); |
| | | } |
| | |
| | | |
| | | @ApiOperation("删除人员打卡规则配置") |
| | | @DeleteMapping("/del") |
| | | @Log(title = "删除人员打卡规则配置", businessType = BusinessType.DELETE) |
| | | public R del(@RequestBody List<Integer> ids) { |
| | | return R.ok(personalAttendanceLocationConfigService.removeBatchByIds(ids)); |
| | | } |