From 1618b864a7db55e541fa5b73022f305aae4cf1e1 Mon Sep 17 00:00:00 2001 From: ZQN <364596817@qq.com> Date: 星期二, 25 三月 2025 17:39:30 +0800 Subject: [PATCH] 脱敏 --- project-system/src/main/resources/mapper/system/SysDictDataMapper.xml | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/project-system/src/main/resources/mapper/system/SysDictDataMapper.xml b/project-system/src/main/resources/mapper/system/SysDictDataMapper.xml index 301892e..29a9fb6 100644 --- a/project-system/src/main/resources/mapper/system/SysDictDataMapper.xml +++ b/project-system/src/main/resources/mapper/system/SysDictDataMapper.xml @@ -126,4 +126,14 @@ ) </insert> + <select id="countByDictTypeAndValue" resultType="Integer"> + select count(1) from sys_dict_data where dict_type=#{dictType} and dict_value=#{dictValue} + <if test="dictCode != null"> and dict_code != #{dictCode} </if> + </select> + + <select id="countByDictTypeAndLabel" resultType="Integer"> + select count(1) from sys_dict_data where dict_type=#{dictType} and dict_label=#{dictLabel} + <if test="dictCode != null"> and dict_code != #{dictCode} </if> + </select> + </mapper> -- Gitblit v1.9.1