-num lines-num-old"> 5 5
6 6
    void getFile(String filePath) ;
7
    
8
    void removeTimer();
7 9
}

+ 12 - 1
monitor-manage-service/src/main/java/com/ai/bss/monitorManage/service/interfaces/MonitorManageService.java

@ -2,5 +2,16 @@ package com.ai.bss.monitorManage.service.interfaces;
2 2
3 3
public interface MonitorManageService {
4 4
5
    void loadPictureFromDirectory() throws InterruptedException;
5
	/**
6
	 * 开启监听
7
	 * @return
8
	 * @throws InterruptedException
9
	 */
10
    String loadPictureFromDirectory() throws InterruptedException;
11
    
12
    /**
13
     * 关闭监听
14
     * @return
15
     */
16
    String closeListeningPicture();
6 17
}

+ 6 - 3
security-protection-service/src/main/java/com/ai/bss/security/protection/service/impl/UploadFileServiceImpl.java

@ -52,7 +52,8 @@ public class UploadFileServiceImpl implements UploadFileService {
52 52
			minioService.putObject(bucketName, meFile, minioFileName);
53 53
		} catch (Exception e) {
54 54
			log.error("文件上传异常");
55
			e.printStackTrace();
55
			//e.printStackTrace();
56
			return "";
56 57
		}
57 58
58 59
		log.info("文件上传结束,minioFileName: " + minioFileName);
@ -84,7 +85,8 @@ public class UploadFileServiceImpl implements UploadFileService {
84 85
			fileUrl = minioService.getObjectUrl(bucketName, minioFileName);
85 86
		} catch (Exception e) {
86 87
			log.error("获取到文件的url路径异常,minioFileName: " + minioFileName);
87
			e.printStackTrace();
88
			//e.printStackTrace();
89
			return "";
88 90
		}
89 91
90 92
		if (StringUtils.isEmpty(fileUrl)) {
@ -238,7 +240,8 @@ public class UploadFileServiceImpl implements UploadFileService {
238 240
			result = minioService.removeObject(bucketName, minioFileName);
239 241
		} catch (Exception e) {
240 242
			log.error("删除上传异常");
241
			e.printStackTrace();
243
			//e.printStackTrace();
244
			return false;
242 245
		}
243 246
244 247
		log.info("删除文件,minioFileName: " + minioFileName);

+ 2 - 1
security-protection-service/src/main/java/com/ai/bss/security/protection/service/impl/WorkOrderManagementServiceImpl.java

@ -278,7 +278,8 @@ public class WorkOrderManagementServiceImpl implements WorkOrderManagementServic
278 278
				|| CollectionUtils.isEmpty(resultResponse.getData().getData().get(0))
279 279
				|| resultResponse.getData().getData().get(0).get("id") == null) {
280 280
			log.error("员工不存在");
281
			new BaseException("员工不存在");
281
			//new BaseException("员工不存在");
282
			return CommonResponse.fail("504","员工不存在");
282 283
		}
283 284
		String employOrgId = String.valueOf(resultResponse.getData().getData().get(0).get("id"));
284 285
		log.info("输出参数:{}", JSON.toJSONString(resultResponse, SerializerFeature.PrettyFormat));

code-example - Nuosi Git Service

团队对封装组件的代码范例

liutong3 69fef4d69a 添加注释 лет назад: 5
..
src 69fef4d69a 添加注释 лет назад: 5
.gitignore cbfab71f08 gitignore调整 лет назад: 5
pom.xml 69fef4d69a 添加注释 лет назад: 5