package com.qianwen.smartman.common.cache; import com.qianwen.core.tool.utils.SpringUtil; import com.qianwen.smartman.common.utils.Lambda; import com.qianwen.smartman.modules.system.entity.MetaRefObjectType; import com.qianwen.smartman.modules.system.service.IMetaRefObjectTypeService; public class MetaRefObjectTypeCache { private static IMetaRefObjectTypeService metaRefObjectTypeService = (IMetaRefObjectTypeService)SpringUtil.getBean(IMetaRefObjectTypeService.class); public static MetaRefObjectType getByTypeAndFCode(String objectTypeId, String fieldName) { return metaRefObjectTypeService.getOne( Lambda.eq(MetaRefObjectType::getObjectTypeId, objectTypeId) .eq(MetaRefObjectType::getFieldName, fieldName)); } }