|
|
@ -463,7 +463,7 @@ public class IotThingDictRelationServiceImpl extends BaseServiceImpl<IotThingDic |
|
|
return dictRelation; |
|
|
return dictRelation; |
|
|
})).toList(); |
|
|
})).toList(); |
|
|
if (CollectionUtils.isNotEmpty(insertList)) { |
|
|
if (CollectionUtils.isNotEmpty(insertList)) { |
|
|
mapper.insertBatch(insertList); |
|
|
|
|
|
|
|
|
mapper.insertBatch(insertList,1000); |
|
|
insertList.forEach(entity -> cache.updateAccurateKeyEntity(CacheNameEnum.THING_DICT_RELATION, |
|
|
insertList.forEach(entity -> cache.updateAccurateKeyEntity(CacheNameEnum.THING_DICT_RELATION, |
|
|
entity.getTenantCode()+CacheInit.KEY+entity.getEntityCode()+CacheInit.KEY+entity.getCode()+CacheInit.KEY+entity.getId(),ConvertUtils.sourceToTarget(entity, IotThingDictRelationDTO.class))); |
|
|
entity.getTenantCode()+CacheInit.KEY+entity.getEntityCode()+CacheInit.KEY+entity.getCode()+CacheInit.KEY+entity.getId(),ConvertUtils.sourceToTarget(entity, IotThingDictRelationDTO.class))); |
|
|
} |
|
|
} |
|
|
|