|
@@ -14,7 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="isDel" column="is_del" />
|
|
|
<result property="name" column="name" />
|
|
|
<result property="address" column="address" />
|
|
|
- <result property="idCode" column="idcode" />
|
|
|
+ <result property="idcode" column="idcode" />
|
|
|
<result property="phone" column="phone" />
|
|
|
</resultMap>
|
|
|
|
|
@@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isDel != null "> and is_del = #{isDel}</if>
|
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
<if test="address != null and address != ''"> and address = #{address}</if>
|
|
|
- <if test="idCode != null and idCode != ''"> and idcode = #{idCode}</if>
|
|
|
+ <if test="idcode != null and idcode != ''"> and idcode = #{idcode}</if>
|
|
|
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
|
|
</where>
|
|
|
</select>
|
|
@@ -51,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isDel != null">is_del,</if>
|
|
|
<if test="name != null">name,</if>
|
|
|
<if test="address != null">address,</if>
|
|
|
- <if test="idCode != null">idcode,</if>
|
|
|
+ <if test="idcode != null">idcode,</if>
|
|
|
<if test="phone != null">phone,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
@@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isDel != null">#{isDel},</if>
|
|
|
<if test="name != null">#{name},</if>
|
|
|
<if test="address != null">#{address},</if>
|
|
|
- <if test="idCode != null">#{idCode},</if>
|
|
|
+ <if test="idcode != null">#{idcode},</if>
|
|
|
<if test="phone != null">#{phone},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
@@ -79,7 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isDel != null">is_del = #{isDel},</if>
|
|
|
<if test="name != null">name = #{name},</if>
|
|
|
<if test="address != null">address = #{address},</if>
|
|
|
- <if test="idCode != null">idcode = #{idCode},</if>
|
|
|
+ <if test="idcode != null">idcode = #{idcode},</if>
|
|
|
<if test="phone != null">phone = #{phone},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|