yangys
2024-03-27 e48aa2ac8dea1be5db11c63edf0b912c4ad5ce65
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/common/cache/MetaRefObjectTypeCache.class */
public class MetaRefObjectTypeCache {
    private static IMetaRefObjectTypeService metaRefObjectTypeService = (IMetaRefObjectTypeService)SpringUtil.getBean(IMetaRefObjectTypeService.class);
    
    public static MetaRefObjectType getByTypeAndFCode(String objectTypeId, String fieldName) {
      return metaRefObjectTypeService.getOne(
          Lambda.<MetaRefObjectType>eq(MetaRefObjectType::getObjectTypeId, objectTypeId)
          .eq(MetaRefObjectType::getFieldName, fieldName));
    }
    
}