From f4f19929877f8ec24769501164279c0907a59bbc Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 31 十月 2022 09:23:52 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/config/InitConfig.java | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/lf/server/config/InitConfig.java b/src/main/java/com/lf/server/config/InitConfig.java index c5a998d..43dda52 100644 --- a/src/main/java/com/lf/server/config/InitConfig.java +++ b/src/main/java/com/lf/server/config/InitConfig.java @@ -13,6 +13,7 @@ import com.lf.server.mapper.bd.DlgAgnpMapper; import com.lf.server.service.all.BaseQueryService; import com.lf.server.service.all.PermsService; +import com.lf.server.service.show.LocateService; import com.lf.server.service.sys.ArgsService; import com.lf.server.service.sys.BlacklistService; import org.apache.commons.logging.Log; @@ -53,6 +54,9 @@ @Autowired BaseQueryService baseQueryService; + @Autowired + LocateService locateService; + @Override public void run(ApplicationArguments args) { // noinspection AlibabaRemoveCommentedCode @@ -85,11 +89,13 @@ } private void testMybatisPlus() { + String s1 = locateService.selectWktById(1); + String tabName = baseQueryService.getTabName(dlgAgnpMapper); - List<String> list0 = dlgAgnpMapper.selectFuzzy(tabName, "name", "%鍘�%"); + List<String> list0 = dlgAgnpMapper.selectFieldFuzzy(tabName, "name", "%鍘�%"); DlgAgnpEntity dlg = dlgAgnpMapper.selectById(1); - String wkt = dlgAgnpMapper.selectWktById("bd.dlg_agnp", 2); + String wkt = dlgAgnpMapper.selectWktById(tabName, 2); Map<String, Object> map = new HashMap<String, Object>(3); map.put("gid", 2); -- Gitblit v1.9.3