This commit is contained in:
mashuai 2024-04-17 10:38:02 +08:00
parent 9a7e4f0dc2
commit b0e00b40a3
2 changed files with 3 additions and 3 deletions

View File

@ -173,7 +173,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectByName" resultType="java.lang.Integer">
select count(*) from bm_unit_info
where
<if test="unitName != null and unitName != '' ">and unit_name = #{unitName}</if>
<if test="unitName != null and unitName != '' ">unit_name = #{unitName}</if>
</select>

View File

@ -65,8 +65,8 @@
</select>
<select id="selectByName" resultType="java.lang.Integer">
select count(*) from sys_dic
where
<if test="name != null and name != ''">and name = #{name}</if>
where
<if test="name != null and name != ''">name = #{name}</if>
</select>
<insert id="insertSysDic" parameterType="com.bonus.sgzb.base.api.domain.SysDic">
insert into sys_dic