Browse Source

10.26,基本

Crazy 8 months ago
parent
commit
d59e297bac

+ 3 - 14
yudao-module-md/yudao-module-md-biz/src/main/java/cn/iocoder/yudao/module/md/controller/admin/AcsController.java

@@ -236,7 +236,7 @@ public class AcsController {
             @Parameter(name = "imageFile", description = "压缩包文件", required = true),
             @Parameter(name = "updateSupport", description = "是否支持更新,默认为 false", example = "true")
     })
-   @PreAuthorize("@ss.hasPermission('system:users-info-with-image:import')")
+   @PreAuthorize("@ss.hasPermission('md:acs:users-info-with-image:import')")
     public CommonResult<importResponse> importData( @RequestParam(value = "excelFile", required = false) MultipartFile excelFile,
                                                     @RequestParam(value = "imageFile", required = false) MultipartFile imageFile) {
         try {
@@ -254,7 +254,7 @@ public class AcsController {
     @Parameters({
             @Parameter(name = "imageFile", description = "照片", required = true),
     })
-    @PreAuthorize("@ss.hasPermission('system:user-data:import')")
+    @PreAuthorize("@ss.hasPermission('md:acs:user-data:import')")
     public CommonResult<String> importUserData(@RequestParam("photoUrl") String photoUrl) {
         try {
             String result = acsService.addSelfImage(photoUrl);
@@ -272,7 +272,7 @@ public class AcsController {
             @Parameter(name = "imageFile", description = "照片", required = true),
             @Parameter(name = "employeeNo", description = "学号", required = true),
     })
-    @PreAuthorize("@ss.hasPermission('system:teacher-user-image:update')")
+    @PreAuthorize("@ss.hasPermission('md:acs:teacher-user-image:update')")
     public CommonResult<String> teacherUpdateUserImage(@RequestParam("photoUrl") String photoUrl,
                                                        @RequestParam("employeeNo") String employeeNo) {
         try {
@@ -283,16 +283,5 @@ public class AcsController {
         }
     }
 
-
-    //考勤分页
-    @GetMapping("/page")
-    @Operation(summary = "获得学生考勤记录分页")
-    @PreAuthorize("@ss.hasPermission('system:student-attendance:query')")
-    public CommonResult<PageResult<StudentAttendanceRespVO>> getStudentAttendancePage(@Valid StudentAttendancePageReqVO pageReqVO) {
-        PageResult<StudentAttendanceDO> pageResult = studentAttendanceService.getStudentAttendancePage(pageReqVO);
-        System.out.println(pageResult);
-        return success(BeanUtils.toBean(pageResult, StudentAttendanceRespVO.class));
-    }
-
 }