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