|
@@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<insert id="insertZxFj" parameterType="ZxFj" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="insertZxFj" parameterType="ZxFj" useGeneratedKeys="true" keyProperty="id">
|
|
insert into zx_fj
|
|
insert into zx_fj
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
- <if test="mainId != null "> main_id </if>
|
|
|
|
|
|
+ <if test="mainId != null "> main_id, </if>
|
|
<if test="sourceId != null">source_id,</if>
|
|
<if test="sourceId != null">source_id,</if>
|
|
<if test="name != null and name != ''">name,</if>
|
|
<if test="name != null and name != ''">name,</if>
|
|
<if test="url != null">url,</if>
|
|
<if test="url != null">url,</if>
|
|
@@ -48,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="remark != null">remark,</if>
|
|
<if test="remark != null">remark,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
- <if test="mainId != null "> #{mainId}</if>
|
|
|
|
|
|
+ <if test="mainId != null "> #{mainId},</if>
|
|
<if test="sourceId != null">#{sourceId},</if>
|
|
<if test="sourceId != null">#{sourceId},</if>
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
<if test="url != null">#{url},</if>
|
|
<if test="url != null">#{url},</if>
|
|
@@ -67,7 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<update id="updateZxFj" parameterType="ZxFj">
|
|
<update id="updateZxFj" parameterType="ZxFj">
|
|
update zx_fj
|
|
update zx_fj
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
- <if test="mainId != null ">main_id = #{mainId}</if>
|
|
|
|
|
|
+ <if test="mainId != null ">main_id = #{mainId},</if>
|
|
<if test="sourceId != null">source_id = #{sourceId},</if>
|
|
<if test="sourceId != null">source_id = #{sourceId},</if>
|
|
<if test="name != null and name != ''">name = #{name},</if>
|
|
<if test="name != null and name != ''">name = #{name},</if>
|
|
<if test="url != null">url = #{url},</if>
|
|
<if test="url != null">url = #{url},</if>
|