|
@@ -245,7 +245,14 @@ public class CompanyInfoController {
|
|
// List<CompanyDeviceRelation> relations = companyDeviceRelationService.findByCompanyId(companyInfoDTO.getId());
|
|
// List<CompanyDeviceRelation> relations = companyDeviceRelationService.findByCompanyId(companyInfoDTO.getId());
|
|
// for(CompanyDeviceRelation relation : relations) {
|
|
// for(CompanyDeviceRelation relation : relations) {
|
|
// //修改不捕获异常,发送请求就行
|
|
// //修改不捕获异常,发送请求就行
|
|
-// lapiService.updateCompanyLib(relation.getCompanyId(), relation.getDeviceId(),relation.getLibraryId());
|
|
|
|
|
|
+// new Thread(()->{
|
|
|
|
+// try {
|
|
|
|
+// lapiService.updateCompanyLib(relation.getCompanyId(), relation.getDeviceId(),relation.getLibraryId());
|
|
|
|
+// }
|
|
|
|
+// catch (Exception ex){
|
|
|
|
+// logger.error(ex.getMessage(),ex);
|
|
|
|
+// }
|
|
|
|
+// }).start();
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|