apkconfig
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.peanut.modules.common.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.peanut.modules.common.dao.ApkConfigDao;
|
||||
import com.peanut.modules.common.entity.ApkConfigEntity;
|
||||
@@ -22,4 +23,10 @@ public class ApkConfigServiceImpl extends ServiceImpl<ApkConfigDao, ApkConfigEnt
|
||||
flag.put("configs",apkConfigEntities);
|
||||
return flag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getApkUrl(int type) {
|
||||
ApkConfigEntity apkConfigEntity = this.baseMapper.selectOne(new LambdaQueryWrapper<ApkConfigEntity>().eq(ApkConfigEntity::getType, type));
|
||||
return apkConfigEntity.getUrl();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user