|
@@ -39,6 +39,7 @@ import thyyxxk.webserver.service.redislike.RedisLikeService;
|
|
|
import thyyxxk.webserver.utils.*;
|
|
|
import thyyxxk.webserver.websocket.WebSocketServer;
|
|
|
|
|
|
+import java.io.File;
|
|
|
import java.lang.reflect.InvocationTargetException;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.*;
|
|
@@ -282,7 +283,7 @@ public class PublicServer {
|
|
|
* @return 返回人员
|
|
|
*/
|
|
|
public ResultVo<List<GetDropdownBox>> getRenYuan(String code, String deptCode) {
|
|
|
- return ResultVoUtil.success(dao.getRenYuan(StringUtil.isContainChinese(code),deptCode));
|
|
|
+ return ResultVoUtil.success(dao.getRenYuan(StringUtil.isContainChinese(code), deptCode));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -740,6 +741,20 @@ public class PublicServer {
|
|
|
WebSocketServer.sendMessageToAll(SocketMsg.socketVo(Message.SYSTEM_ANNOUNCEMENT, obj));
|
|
|
}
|
|
|
|
|
|
+ public ResultVo<String> getOperationGuide() {
|
|
|
+ String path = "D:\\a.snapshot\\download\\操作指南";
|
|
|
+ File folder = new File(path);
|
|
|
+ File[] files = folder.listFiles();
|
|
|
+ if (files != null) {
|
|
|
+ for (File file : files) {
|
|
|
+ String name = file.getName();
|
|
|
+ int start = name.indexOf("v");
|
|
|
+ int end = name.indexOf(".docx");
|
|
|
+ return ResultVoUtil.success(name.substring(start, end));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return ResultVoUtil.success("v1.1.0");
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|