Răsfoiți Sursa

统分定时任务修改

wangliang 3 luni în urmă
părinte
comite
2566cf3cae

+ 2 - 2
distributed-print/src/main/java/com/qmth/distributed/print/api/SysAdminSetController.java

@@ -729,7 +729,7 @@ public class SysAdminSetController {
     @OperationLogDetail(operationType = OperationTypeEnum.SAVE)
     public Result sysadminFontSave(@ApiParam(value = "学校ID", required = true) @RequestParam Long schoolId,
                                    @ApiParam(value = "附件ID", required = true) @RequestParam String attachmentId) {
-        BasicAttachment basicAttachment = basicAttachmentService.getById(attachmentId);
+        BasicAttachment basicAttachment = basicAttachmentService.getById(Long.parseLong(attachmentId));
         Objects.requireNonNull(basicAttachment, "未找到附件信息");
 
         SysConfig sysConfig = commonCacheService.addSysConfigCache(schoolId, SystemConstant.SCHOOL_FONT_TEMPLATE);
@@ -811,7 +811,7 @@ public class SysAdminSetController {
         if (CollectionUtils.isEmpty(setFontDtoDelList)) {
             throw ExceptionResultEnum.ERROR.exception("未找到字体");
         } else {
-            basicAttachmentService.removeById(attachmentId);
+            basicAttachmentService.removeById(Long.parseLong(attachmentId));
         }
 
         setFontDtoList.removeAll(setFontDtoDelList);