| | |
| | | |
| | | @Operation(summary = "分页查询人员打卡规则配置") |
| | | @GetMapping("/listPage") |
| | | public R listPage(Page page){ |
| | | public R listPage(Page page, PersonalAttendanceLocationConfig query){ |
| | | page.addOrder(OrderItem.desc("id")); |
| | | return R.ok(personalAttendanceLocationConfigService.page(page, |
| | | new LambdaQueryWrapper<PersonalAttendanceLocationConfig>() |
| | | .ne(PersonalAttendanceLocationConfig::getId, 999))); |
| | | LambdaQueryWrapper<PersonalAttendanceLocationConfig> wrapper = new LambdaQueryWrapper<PersonalAttendanceLocationConfig>() |
| | | .ne(PersonalAttendanceLocationConfig::getId, 999); |
| | | if (query.getSysDeptId() != null) { |
| | | wrapper.eq(PersonalAttendanceLocationConfig::getSysDeptId, query.getSysDeptId()); |
| | | } |
| | | if (query.getShift() != null && !query.getShift().isEmpty()) { |
| | | wrapper.eq(PersonalAttendanceLocationConfig::getShift, query.getShift()); |
| | | } |
| | | return R.ok(personalAttendanceLocationConfigService.page(page, wrapper)); |
| | | } |
| | | |
| | | |