This commit is contained in:
2025-12-30 13:47:53 +08:00
parent f1637501b2
commit a623c5673f
137 changed files with 11031 additions and 4043 deletions

View File

@@ -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));