<update id="updateMethod" parameterType="com.zjl.domain">
update table_name
<set>
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
<if test="creater != null">
creater = #{creater,jdbcType=VARCHAR},
</if>
<if test="modifiedDate != null">
modified_date = #{modifiedDate,jdbcType=TIMESTAMP},
</if>
</set>
where task_id = #{taskId,jdbcType=BIGINT}
</update>
<insert id="insertSelective" parameterType="com.zjl.domain">
insert into table_name
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="createDate != null">
create_date,
</if>
<if test="modifiedDate != null">
modified_date,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="createDate != null">
#{createDate,jdbcType=TIMESTAMP},
</if>
<if test="modifiedDate != null">
#{modifiedDate,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>