A.story_id,
A.target_id,
B.target_title,
A.item_id,
C.item_title,
A.point_id,
A.point_content,
A.point_code,
A.point_score,
A.score_criterion,
A.point_desc,
A.sort_no
INSERT INTO assess_story_target_item_point
story_id,
target_id,
item_id,
point_id,
point_content,
point_code,
score_criterion,
point_score,
point_desc,
sort_no,
created_by,
created_at,
#{storyId ,jdbcType=BIGINT},
#{targetId ,jdbcType=BIGINT},
#{itemId ,jdbcType=BIGINT},
#{pointId ,jdbcType=BIGINT},
#{pointContent ,jdbcType=VARCHAR},
#{pointCode ,jdbcType=VARCHAR},
#{scoreCriterion ,jdbcType=VARCHAR},
#{pointScore ,jdbcType=DOUBLE},
#{pointDesc ,jdbcType=VARCHAR},
#{sortNo ,jdbcType=BIGINT},
#{createdBy ,jdbcType=BIGINT},
#{createdAt ,jdbcType=TIMESTAMP},
UPDATE assess_story_target_item_point
point_content = #{pointContent, jdbcType=VARCHAR},
point_code = #{pointCode ,jdbcType=VARCHAR},
score_criterion = #{scoreCriterion ,jdbcType=VARCHAR},
point_score = #{pointScore ,jdbcType=DOUBLE},
point_desc = #{pointDesc, jdbcType=VARCHAR},
sort_no = #{sortNo ,jdbcType=BIGINT},
updated_by = #{updatedBy ,jdbcType=BIGINT},
updated_at = #{updatedAt ,jdbcType=TIMESTAMP},
WHERE story_id = #{storyId ,jdbcType=BIGINT}
AND target_id = #{targetId ,jdbcType=BIGINT}
AND item_id = #{itemId ,jdbcType=BIGINT}
AND point_id = #{pointId ,jdbcType=BIGINT}
UPDATE assess_story_target_item_point
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}
AND item_id = #{itemId ,jdbcType=BIGINT}
AND point_id = #{pointId ,jdbcType=BIGINT}