package net.vtstar.zhongtong.avi.global.web.service;

import net.vtstar.zhongtong.avi.global.web.domain.ShowField;
import org.springframework.cache.Cache;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

@Service
public class ShowFieldService {

    @Resource(name = "showFieldCache")
    private Cache showFieldCache;

    public List<ShowField> findShowFieldBySearchCode(String searchCode) {
        List<ShowField> showFields = showFieldCache.get(searchCode, ArrayList<ShowField>::new);
        return showFields;
    }
}
