|
|
@@ -9,6 +9,7 @@ import com.kym.entity.common.PageBean;
|
|
|
import com.kym.mapper.admin.PlatformMapper;
|
|
|
import com.kym.service.admin.PlatformService;
|
|
|
import com.kym.service.mybatisplus.MyBaseServiceImpl;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
/**
|
|
|
@@ -22,10 +23,14 @@ import org.springframework.stereotype.Service;
|
|
|
@DS("db-admin")
|
|
|
public class PlatformServiceImpl extends MyBaseServiceImpl<PlatformMapper, Platform> implements PlatformService {
|
|
|
|
|
|
+ @Value("${spring.profiles.active}")
|
|
|
+ private String env;
|
|
|
+
|
|
|
@Override
|
|
|
public PageBean<Platform> listPlatform(CommonQueryParam params) {
|
|
|
PageHelper.startPage(params.getPageNum(), params.getPageSize());
|
|
|
- return new PageBean<>(this.list());
|
|
|
+ var res = lambdaQuery().eq(Platform::getEnv, env).list();
|
|
|
+ return new PageBean<>(res);
|
|
|
}
|
|
|
|
|
|
@Override
|