|
|
@ -414,7 +414,6 @@ public class SysTenantDetailServiceImpl extends BaseServiceImpl<SysTenantDetailM |
|
|
// 保存企业物至物管理表 |
|
|
// 保存企业物至物管理表 |
|
|
thingManageContextService.saveModel(Collections.singletonList(thingCode)); |
|
|
thingManageContextService.saveModel(Collections.singletonList(thingCode)); |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
e.printStackTrace(); |
|
|
|
|
|
throw new SysException("保存失败,请检查数据源配置"); |
|
|
throw new SysException("保存失败,请检查数据源配置"); |
|
|
} |
|
|
} |
|
|
//保存分配物及企业物至物实体表 |
|
|
//保存分配物及企业物至物实体表 |
|
|
@ -427,7 +426,7 @@ public class SysTenantDetailServiceImpl extends BaseServiceImpl<SysTenantDetailM |
|
|
.setTemplateMark(TemplateMark.NO.getValue()) |
|
|
.setTemplateMark(TemplateMark.NO.getValue()) |
|
|
.setType("企业物") |
|
|
.setType("企业物") |
|
|
); |
|
|
); |
|
|
thingManageContextService.saveEntity(thingTenantList); |
|
|
|
|
|
|
|
|
thingManageContextService.batchSaveOrUpdateEntity(thingTenantList); |
|
|
//分配企业 |
|
|
//分配企业 |
|
|
if (typeList.contains(TenantSaveType.comp)) { |
|
|
if (typeList.contains(TenantSaveType.comp)) { |
|
|
List<Long> tenantCodeList = detailForm.getTenantCodeList(); |
|
|
List<Long> tenantCodeList = detailForm.getTenantCodeList(); |
|
|
|