| | |
| | | import com.yeshi.fanli.dao.mybatis.common.JumpDetailV2Mapper;
|
| | | import com.yeshi.fanli.entity.common.JumpDetailV2;
|
| | | import com.yeshi.fanli.service.inter.common.JumpDetailV2Service;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | |
|
| | | @Service
|
| | | public class JumpDetailV2ServiceImpl implements JumpDetailV2Service {
|
| | | |
| | |
|
| | | @Resource
|
| | | private JumpDetailV2Mapper jumpDetailV2Mapper;
|
| | |
|
| | | |
| | | @Override
|
| | | public int deleteByPrimaryKey(Long id) {
|
| | | return jumpDetailV2Mapper.deleteByPrimaryKey(id);
|
| | |
| | | public JumpDetailV2 selectByPrimaryKey(Long id) {
|
| | | return jumpDetailV2Mapper.selectByPrimaryKey(id);
|
| | | }
|
| | | |
| | |
|
| | | @Override
|
| | | public int updateByPrimaryKeySelective(JumpDetailV2 record) {
|
| | |
| | | public List<JumpDetailV2> listByType(String type) {
|
| | | return jumpDetailV2Mapper.listByType(type);
|
| | | }
|
| | | |
| | | |
| | |
|
| | | @Cacheable(value = "configCache", key = "'getByTypeCache-'+#type")
|
| | | @Override
|
| | | public JumpDetailV2 getByTypeCache(String type) {
|
| | | |
| | |
|
| | | JumpDetailV2 jumpDetailV2 = null;
|
| | | |
| | |
|
| | | List<JumpDetailV2> listByType = listByType(type);
|
| | | |
| | | if (listByType !=null && listByType.size() > 0) {
|
| | |
|
| | | if (listByType != null && listByType.size() > 0) {
|
| | | jumpDetailV2 = listByType.get(0);
|
| | | } else {
|
| | | jumpDetailV2 = new JumpDetailV2();
|
| | | }
|
| | | |
| | |
|
| | | return jumpDetailV2;
|
| | | }
|
| | | |
| | |
|
| | | @Cacheable(value = "configCache", key = "'getByTypeCache-'+#type+'-'+#platform+'-'+#version")
|
| | | @Override
|
| | | public JumpDetailV2 getByTypeCache(String type, int platform, int version) {
|
| | | if (platform == 1) {
|
| | | return jumpDetailV2Mapper.selectAndroidByTypeAndVersion(type, version);
|
| | | } else {
|
| | | return jumpDetailV2Mapper.selectIOSByTypeAndVersion(type, version);
|
| | | }
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<JumpDetailV2> listJump() {
|
| | | return this.jumpDetailV2Mapper.listJump();
|
| | | return jumpDetailV2Mapper.listJump();
|
| | | }
|
| | |
|
| | | @Override
|
| | |
| | | public long countListQuery(String key) {
|
| | | return jumpDetailV2Mapper.countListQuery(key);
|
| | | }
|
| | | |
| | |
|
| | | }
|