|
@@ -19,7 +19,6 @@ import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import javax.validation.Valid;
|
|
|
import java.io.IOException;
|
|
|
-import java.util.Collection;
|
|
|
import java.util.List;
|
|
|
|
|
|
import static com.zjugis.framework.common.pojo.CommonResult.success;
|
|
@@ -34,12 +33,6 @@ public class AttendanceSheetController {
|
|
|
@Resource
|
|
|
private AttendanceSheetService attendanceSheetService;
|
|
|
|
|
|
- @PostMapping("/create")
|
|
|
- @Operation(summary = "创建行政管理_考勤")
|
|
|
- @PreAuthorize("@ss.hasPermission('adm:attendance-sheet:create')")
|
|
|
- public CommonResult<Integer> createAttendanceSheet(@Valid @RequestBody AttendanceSheetCreateReqVO createReqVO) {
|
|
|
- return success(attendanceSheetService.createAttendanceSheet(createReqVO));
|
|
|
- }
|
|
|
|
|
|
@PutMapping("/update")
|
|
|
@Operation(summary = "更新行政管理_考勤")
|
|
@@ -49,15 +42,6 @@ public class AttendanceSheetController {
|
|
|
return success(true);
|
|
|
}
|
|
|
|
|
|
- @DeleteMapping("/delete")
|
|
|
- @Operation(summary = "删除行政管理_考勤")
|
|
|
- @Parameter(name = "id", description = "编号", required = true)
|
|
|
- @PreAuthorize("@ss.hasPermission('adm:attendance-sheet:delete')")
|
|
|
- public CommonResult<Boolean> deleteAttendanceSheet(@RequestParam("id") Integer id) {
|
|
|
- attendanceSheetService.deleteAttendanceSheet(id);
|
|
|
- return success(true);
|
|
|
- }
|
|
|
-
|
|
|
@GetMapping("/get")
|
|
|
@Operation(summary = "获得行政管理_考勤")
|
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
|
@@ -69,19 +53,18 @@ public class AttendanceSheetController {
|
|
|
|
|
|
@GetMapping("/list")
|
|
|
@Operation(summary = "获得行政管理_考勤列表")
|
|
|
- @Parameter(name = "ids", description = "编号列表", required = true, example = "1024,2048")
|
|
|
@PreAuthorize("@ss.hasPermission('adm:attendance-sheet:query')")
|
|
|
- public CommonResult<List<AttendanceSheetRespVO>> getAttendanceSheetList(@RequestParam("ids") Collection<Integer> ids) {
|
|
|
- List<AttendanceSheetDO> list = attendanceSheetService.getAttendanceSheetList(ids);
|
|
|
+ public CommonResult<List<AttendanceSheetRespVO>> getAttendanceSheetList(@Valid AttendanceSheetListReqVO listVO) {
|
|
|
+ List<AttendanceSheetDO> list = attendanceSheetService.getAttendanceSheetList(listVO);
|
|
|
return success(AttendanceSheetConvert.INSTANCE.convertList(list));
|
|
|
}
|
|
|
|
|
|
- @GetMapping("/page")
|
|
|
- @Operation(summary = "获得行政管理_考勤分页")
|
|
|
- @PreAuthorize("@ss.hasPermission('adm:attendance-sheet:query')")
|
|
|
- public CommonResult<PageResult<AttendanceSheetRespVO>> getAttendanceSheetPage(@Valid AttendanceSheetPageReqVO pageVO) {
|
|
|
- PageResult<AttendanceSheetDO> pageResult = attendanceSheetService.getAttendanceSheetPage(pageVO);
|
|
|
- return success(AttendanceSheetConvert.INSTANCE.convertPage(pageResult));
|
|
|
+ @GetMapping("/list-me")
|
|
|
+ @Operation(summary = "获得行政管理_考勤列表_我的")
|
|
|
+ @PreAuthorize("@ss.hasPermission('adm:attendance-sheet:query-me')")
|
|
|
+ public CommonResult<List<AttendanceSheetRespVO>> getAttendanceSheetListMe(@Valid AttendanceSheetListMeReqVO listVO) {
|
|
|
+ List<AttendanceSheetDO> list = attendanceSheetService.getAttendanceSheetListMe(listVO);
|
|
|
+ return success(AttendanceSheetConvert.INSTANCE.convertList(list));
|
|
|
}
|
|
|
|
|
|
@GetMapping("/export-excel")
|