From c009850d302e4bf515264e09c6fd7c21d8e85c02 Mon Sep 17 00:00:00 2001
From: dinggang <2498628697@qq.com>
Date: Mon, 13 Jun 2022 17:11:58 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E4=BA=9B=E7=84=A1=E7=94=A8=E7=9A=84?=
=?UTF-8?q?=E6=94=B9=E5=8B=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../activiti/service/ActHistoryService.java | 2 +-
.../notice/enums/NoticeReadStatusEnum.java | 8 +-
.../notice/enums/NoticeStatusEnum.java | 8 +-
.../notice/enums/ReceiverTypeEnum.java | 8 +-
.../controller/ResourceController.java | 9 +--
.../modules/resource/dao/ResourceDao.java | 5 +-
.../service/impl/ResourceServiceImpl.java | 75 ++++++++-----------
.../resource/task/KnowledgeBaseTask.java | 2 +-
.../impl/ResourceBrowseServiceImpl.java | 10 +--
.../impl/ResourceCollectionServiceImpl.java | 8 +-
.../service/impl/WorkDynamicsServiceImpl.java | 4 -
.../io/renren/websocket/WebSocketServer.java | 9 +--
.../websocket/config/WebSocketConfig.java | 8 +-
.../io/renren/websocket/data/MessageData.java | 8 +-
.../renren/websocket/data/WebSocketData.java | 8 +-
.../src/main/resources/application.yml | 1 +
renren-admin/src/main/resources/banner.txt | 16 ++--
.../resources/mapper/resource/ResourceDao.xml | 42 ++++++-----
18 files changed, 83 insertions(+), 148 deletions(-)
diff --git a/renren-admin/src/main/java/io/renren/modules/activiti/service/ActHistoryService.java b/renren-admin/src/main/java/io/renren/modules/activiti/service/ActHistoryService.java
index e1e964a8..7623679c 100644
--- a/renren-admin/src/main/java/io/renren/modules/activiti/service/ActHistoryService.java
+++ b/renren-admin/src/main/java/io/renren/modules/activiti/service/ActHistoryService.java
@@ -47,7 +47,7 @@ import java.util.stream.Collectors;
*/
@Service
public class ActHistoryService {
- private static Logger logger = LoggerFactory.getLogger(ActHistoryService.class);
+ private static final Logger logger = LoggerFactory.getLogger(ActHistoryService.class);
@Autowired
protected RepositoryService repositoryService;
diff --git a/renren-admin/src/main/java/io/renren/modules/notice/enums/NoticeReadStatusEnum.java b/renren-admin/src/main/java/io/renren/modules/notice/enums/NoticeReadStatusEnum.java
index 3504b607..2dfb7d44 100644
--- a/renren-admin/src/main/java/io/renren/modules/notice/enums/NoticeReadStatusEnum.java
+++ b/renren-admin/src/main/java/io/renren/modules/notice/enums/NoticeReadStatusEnum.java
@@ -1,10 +1,4 @@
-/**
- * Copyright (c) 2016-2020 人人开源 All rights reserved.
- *
- * https://www.renren.io
- *
- * 版权所有,侵权必究!
- */package io.renren.modules.notice.enums;
+package io.renren.modules.notice.enums;
/**
* 通知阅读状态枚举
diff --git a/renren-admin/src/main/java/io/renren/modules/notice/enums/NoticeStatusEnum.java b/renren-admin/src/main/java/io/renren/modules/notice/enums/NoticeStatusEnum.java
index 754b1244..0fd59bb1 100644
--- a/renren-admin/src/main/java/io/renren/modules/notice/enums/NoticeStatusEnum.java
+++ b/renren-admin/src/main/java/io/renren/modules/notice/enums/NoticeStatusEnum.java
@@ -1,10 +1,4 @@
-/**
- * Copyright (c) 2016-2020 人人开源 All rights reserved.
- *
- * https://www.renren.io
- *
- * 版权所有,侵权必究!
- */package io.renren.modules.notice.enums;
+package io.renren.modules.notice.enums;
/**
* 通知状态枚举
diff --git a/renren-admin/src/main/java/io/renren/modules/notice/enums/ReceiverTypeEnum.java b/renren-admin/src/main/java/io/renren/modules/notice/enums/ReceiverTypeEnum.java
index 328880f4..5e5acac2 100644
--- a/renren-admin/src/main/java/io/renren/modules/notice/enums/ReceiverTypeEnum.java
+++ b/renren-admin/src/main/java/io/renren/modules/notice/enums/ReceiverTypeEnum.java
@@ -1,10 +1,4 @@
-/**
- * Copyright (c) 2016-2020 人人开源 All rights reserved.
- *
- * https://www.renren.io
- *
- * 版权所有,侵权必究!
- */package io.renren.modules.notice.enums;
+package io.renren.modules.notice.enums;
/**
* 接受者类型枚举
diff --git a/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java b/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java
index 7d9b4cbe..7d0143ac 100644
--- a/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java
+++ b/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java
@@ -41,6 +41,7 @@ import java.util.Map;
@RequestMapping("/resource")
@Api(tags = "资源表")
public class ResourceController {
+
@Value("${qdyjj.ipAndPort}")
private String ipAndPort;
@@ -77,7 +78,7 @@ public class ResourceController {
@Autowired
private RestTemplate restTemplate;
- private static Logger logger = LoggerFactory.getLogger(ResourceController.class);
+ private static final Logger logger = LoggerFactory.getLogger(ResourceController.class);
@GetMapping("/page")
@ApiOperation("分页查询资源信息")
@@ -93,9 +94,7 @@ public class ResourceController {
})
public Result> page(@ApiIgnore @RequestParam Map params) {
PageData page = resourceService.page(params);
- page.getList().forEach(item -> {
- item.setInfoList(resourceService.selectAttrsByResourceId(item.getId()));
- });
+ page.getList().forEach(item -> item.setInfoList(resourceService.selectAttrsByResourceId(item.getId())));
return new Result>().ok(page);
}
@@ -192,7 +191,7 @@ public class ResourceController {
@LogOperation("修改")
//@RequiresPermissions("resource:resource:update")
public Result update(@RequestBody ResourceDTO dto) {
- ////效验数据
+ //效验数据
//ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
resourceService.updateWithAttrs(dto);
diff --git a/renren-admin/src/main/java/io/renren/modules/resource/dao/ResourceDao.java b/renren-admin/src/main/java/io/renren/modules/resource/dao/ResourceDao.java
index 0c2d9aaf..f9309b18 100644
--- a/renren-admin/src/main/java/io/renren/modules/resource/dao/ResourceDao.java
+++ b/renren-admin/src/main/java/io/renren/modules/resource/dao/ResourceDao.java
@@ -23,10 +23,7 @@ public interface ResourceDao extends BaseDao {
List selectWithAttrs(@Param("dto") ResourceDTO resourceDTO,
@Param("orderField") String orderField,
- @Param("orderType") String orderType,
- @Param("pageNum") Integer pageNum,
- @Param("pageSize") Integer pageSize
- );
+ @Param("orderType") String orderType);
List