From f06a592dd1a7e995bf313ccb5efe7dff73ccfc4e Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 12 四月 2023 18:25:52 +0800
Subject: [PATCH] 增加本地获取IP归属地/广告优化

---
 src/main/java/com/yeshi/buwan/dao/system/DetailSystemConfigDao.java |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/dao/system/DetailSystemConfigDao.java b/src/main/java/com/yeshi/buwan/dao/system/DetailSystemConfigDao.java
index 4d24c98..30d194e 100644
--- a/src/main/java/com/yeshi/buwan/dao/system/DetailSystemConfigDao.java
+++ b/src/main/java/com/yeshi/buwan/dao/system/DetailSystemConfigDao.java
@@ -5,6 +5,7 @@
 
 import com.yeshi.buwan.domain.system.DetailSystemConfig;
 
+import java.math.BigInteger;
 import java.util.List;
 
 @Repository
@@ -30,4 +31,14 @@
         return null;
     }
 
+    public List<DetailSystemConfig> list(Long systemId, String searchKey) {
+        return list("from DetailSystemConfig c where c.systemId=? and c.beizhu like ?", new BigInteger( systemId+""), "%" + searchKey + "%");
+    }
+
+
+
+    public List<DetailSystemConfig> listByValue(Long systemId, String searchKey) {
+        return list("from DetailSystemConfig c where c.systemId=? and c.value like ?", new BigInteger( systemId+""), "%" + searchKey + "%");
+    }
+
 }
\ No newline at end of file

--
Gitblit v1.8.0