This commit is contained in:
mashuai 2024-04-18 17:27:47 +08:00
parent de7d8a3351
commit 4dc7d58e72
2 changed files with 4 additions and 2 deletions

View File

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

View File

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