|
@@ -66,6 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<insert id="insertTOrganization" parameterType="TOrganization" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into t_organization
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">id,</if>
|
|
|
<if test="name != null">name,</if>
|
|
|
<if test="code != null">code,</if>
|
|
|
<if test="type != null">type,</if>
|
|
@@ -90,6 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null">remark,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
<if test="name != null">#{name},</if>
|
|
|
<if test="code != null">#{code},</if>
|
|
|
<if test="type != null">#{type},</if>
|