From 52bfb3576bea611d33014913bf3e2a03a53e6399 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=90=A6=E6=B6=9B?= Date: Wed, 8 Mar 2023 17:55:12 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=20sonar=E3=80=91SysDictMapper?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/system/mapper/SysDictMapper.java | 30 +++++++++++++++---- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/mapper/SysDictMapper.java b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/mapper/SysDictMapper.java index 39884b41..53346ece 100644 --- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/mapper/SysDictMapper.java +++ b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/mapper/SysDictMapper.java @@ -28,10 +28,15 @@ public interface SysDictMapper extends BaseMapper { /** * 重复检查SQL + * @deprecated 不推荐 * @return */ @Deprecated public Long duplicateCheckCountSql(DuplicateCheckVo duplicateCheckVo); + + /** + * @deprecated 不推荐 + */ @Deprecated public Long duplicateCheckCountSqlNoDataId(DuplicateCheckVo duplicateCheckVo); @@ -52,13 +57,19 @@ public interface SysDictMapper extends BaseMapper { * @return */ public List queryDictItemsByCodeList(@Param("dictCodeList") List dictCodeList); - + /** + * @deprecated 不推荐 + */ @Deprecated public List queryTableDictItemsByCode(@Param("table") String table,@Param("text") String text,@Param("code") String code); - + /** + * @deprecated 不推荐 + */ @Deprecated public List queryTableDictItemsByCodeAndFilter(@Param("table") String table,@Param("text") String text,@Param("code") String code,@Param("filterSql") String filterSql); - + /** + * @deprecated 不推荐 + */ @Deprecated @Select("select ${key} as \"label\",${value} as \"value\" from ${table}") public List> getDictByTableNgAlain(@Param("table") String table, @Param("key") String key, @Param("value") String value); @@ -72,7 +83,9 @@ public interface SysDictMapper extends BaseMapper { * @return */ List queryManyDictByKeys(@Param("dictCodeList") List dictCodeList, @Param("keys") List keys); - + /** + * @deprecated 不推荐 + */ @Deprecated public String queryTableDictTextByKey(@Param("table") String table,@Param("text") String text,@Param("code") String code,@Param("key") String key); @@ -83,11 +96,14 @@ public interface SysDictMapper extends BaseMapper { * @param text * @param code * @param keys + * @deprecated 不推荐 * @return */ @Deprecated List queryTableDictTextByKeys(@Param("table") String table, @Param("text") String text, @Param("code") String code, @Param("keys") List keys); - + /** + * @deprecated 不推荐 + */ @Deprecated public List queryTableDictByKeys(@Param("table") String table, @Param("text") String text, @Param("code") String code, @Param("keyArray") String[] keyArray); @@ -109,6 +125,7 @@ public interface SysDictMapper extends BaseMapper { * @param text * @param code * @param keyword + * @deprecated 不推荐 * @return */ @Deprecated @@ -184,6 +201,7 @@ public interface SysDictMapper extends BaseMapper { * 分页查询字典表数据 * @param page * @param query + * @deprecated 不推荐 * @return */ @Deprecated @@ -197,6 +215,7 @@ public interface SysDictMapper extends BaseMapper { * @param text * @param code * @param filterSql + * @deprecated 不推荐 * @return */ @Deprecated @@ -208,6 +227,7 @@ public interface SysDictMapper extends BaseMapper { * @param text * @param code * @param filterSql + * @deprecated 不推荐 * @return */ @Deprecated