From 6cc97918a5a42e37a3c3867cc5b78a0b9fd43a24 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 29 四月 2022 19:55:41 +0800 Subject: [PATCH] 功能完善 --- app/src/main/java/com/yeshi/makemoney/app/service/impl/config/SystemConfigServiceImpl.java | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/app/src/main/java/com/yeshi/makemoney/app/service/impl/config/SystemConfigServiceImpl.java b/app/src/main/java/com/yeshi/makemoney/app/service/impl/config/SystemConfigServiceImpl.java index 7f895d6..44fbaa1 100644 --- a/app/src/main/java/com/yeshi/makemoney/app/service/impl/config/SystemConfigServiceImpl.java +++ b/app/src/main/java/com/yeshi/makemoney/app/service/impl/config/SystemConfigServiceImpl.java @@ -41,6 +41,19 @@ } @Override + public SystemConfig getByKey(SystemEnum system, SystemConfigKey key) { + DaoQuery daoQuery = new DaoQuery(); + daoQuery.system = system; + daoQuery.key = key; + daoQuery.count = 1; + List<SystemConfig> list = systemConfigDao.list(daoQuery); + if (list == null || list.size() == 0) { + return null; + } + return list.get(0); + } + + @Override public List<SystemConfig> list(SystemConfigQuery systemConfigQuery, int page, int pageSize) { DaoQuery daoQuery = new DaoQuery(); try { -- Gitblit v1.8.0