办公V3
This commit is contained in:
@@ -27,40 +27,34 @@ public class HrmPunchController extends BaseController {
|
||||
|
||||
private final IHrmPunchService service;
|
||||
|
||||
@SaCheckPermission("hrm:punch:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<HrmPunchVo> list(HrmPunchBo bo, PageQuery pageQuery) {
|
||||
return service.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
@SaCheckPermission("hrm:punch:query")
|
||||
@GetMapping("/{punchId}")
|
||||
public R<HrmPunchVo> getInfo(@PathVariable @NotNull Long punchId) {
|
||||
return R.ok(service.queryById(punchId));
|
||||
}
|
||||
|
||||
@SaCheckPermission("hrm:punch:add")
|
||||
@Log(title = "打卡记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public R<Void> add(@Validated @RequestBody HrmPunchBo bo) {
|
||||
return toAjax(service.insertByBo(bo));
|
||||
}
|
||||
|
||||
@SaCheckPermission("hrm:punch:edit")
|
||||
@Log(title = "打卡记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public R<Void> edit(@Validated @RequestBody HrmPunchBo bo) {
|
||||
return toAjax(service.updateByBo(bo));
|
||||
}
|
||||
|
||||
@SaCheckPermission("hrm:punch:remove")
|
||||
@Log(title = "打卡记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{punchIds}")
|
||||
public R<Void> remove(@PathVariable @NotEmpty Long[] punchIds) {
|
||||
return toAjax(service.deleteWithValidByIds(Arrays.asList(punchIds), true));
|
||||
}
|
||||
|
||||
@SaCheckPermission("hrm:punch:list")
|
||||
@GetMapping("/all")
|
||||
public R<List<HrmPunchVo>> all(HrmPunchBo bo) {
|
||||
return R.ok(service.queryList(bo));
|
||||
|
||||
Reference in New Issue
Block a user