story_id,
target_id,
target_title,
target_code,
target_desc
INSERT INTO assess_story_target
story_id,
target_id,
target_title,
target_code,
target_desc,
created_by,
created_at,
#{storyId,jdbcType=BIGINT},
#{targetId ,jdbcType=BIGINT},
#{targetTitle ,jdbcType=VARCHAR},
#{targetCode ,jdbcType=VARCHAR},
#{targetDesc ,jdbcType=VARCHAR},
#{createdBy ,jdbcType=BIGINT},
#{createdAt ,jdbcType=TIMESTAMP},
UPDATE assess_story_target
target_title = #{targetTitle, jdbcType=VARCHAR},
target_code = #{targetCode ,jdbcType=VARCHAR},
target_desc = #{targetDesc, jdbcType=VARCHAR},
updated_by = #{updatedBy ,jdbcType=BIGINT},
updated_at = #{updatedAt ,jdbcType=TIMESTAMP},
WHERE 1 = 1
AND target_id = #{targetId ,jdbcType=BIGINT}
UPDATE assess_story_target
deleted_flag = #{deletedFlag,jdbcType=BIGINT},
deleted_time = #{deletedTime,jdbcType=TIMESTAMP},
deleted_by = #{deletedBy,jdbcType=BIGINT},
WHERE story_id = #{storyId ,jdbcType=BIGINT} AND target_id = #{targetId ,jdbcType=BIGINT}