| | |
| | | import com.yeshi.buwan.domain.jump.JumpDetail; |
| | | import com.yeshi.buwan.domain.jump.JumpTypeEnum; |
| | | import com.yeshi.buwan.service.inter.jump.JumpDetailService; |
| | | import org.springframework.cache.annotation.Cacheable; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | public JumpDetail selectByType(JumpTypeEnum type) { |
| | | return jumpDetailDao.selectByType(type); |
| | | } |
| | | |
| | | @Cacheable(value = "configCache", key = "'jumpDetail-selectByTypeCache-'+#type") |
| | | @Override |
| | | public JumpDetail selectByTypeCache(JumpTypeEnum type) { |
| | | return selectByType(type); |
| | | } |
| | | } |