select detail_id, evaluation_id, dimension_id, score, option_value, text_content, create_time from evaluation_detail
select ed.detail_id, ed.evaluation_id, ed.dimension_id, ed.score, ed.option_value, ed.text_content, ed.create_time,
edim.dimension_name, edim.dimension_desc, edim.dimension_type, edim.options, edim.sort_order, edim.is_required
from evaluation_detail ed
left join evaluation_dimension edim on ed.dimension_id = edim.dimension_id
insert into evaluation_detail
evaluation_id,
dimension_id,
score,
option_value,
text_content,
create_time,
#{evaluationId},
#{dimensionId},
#{score},
#{optionValue},
#{textContent},
#{createTime},
insert into evaluation_detail (evaluation_id, dimension_id, score, option_value, text_content, create_time)
values
(#{item.evaluationId}, #{item.dimensionId}, #{item.score}, #{item.optionValue}, #{item.textContent}, #{item.createTime})
update evaluation_detail
evaluation_id = #{evaluationId},
dimension_id = #{dimensionId},
score = #{score},
option_value = #{optionValue},
text_content = #{textContent},
where detail_id = #{detailId}
delete from evaluation_detail where detail_id = #{detailId}
delete from evaluation_detail where evaluation_id = #{evaluationId}
delete from evaluation_detail where detail_id in
#{detailId}