select id,
score,
tcs.dept_id,
template_id,
examine_tag,
examine_category,
tcs.create_time,
tcs.update_time,
tcs.update_user,
publish
from t_check_score tcs
left join sys_dept d on tcs.dept_id = d.dept_id
insert into t_check_score
score,dept_id,template_id,examine_tag,examine_category,create_time,update_time,update_user,publish,#{score},#{deptId},#{templateId},#{examineTag},#{examineCategory},#{createTime},#{updateTime},#{updateUser},#{publish},
update t_check_score
score = #{score},dept_id = #{deptId},template_id = #{templateId},examine_tag = #{examineTag},examine_category = #{examineCategory},create_time = #{createTime},update_time = #{updateTime},update_user = #{updateUser},publish = #{publish},
where id = #{id}
delete
from t_check_score
where id = #{id}
delete from t_check_score where id in
#{id}
update t_check_score set publish = #{publish},update_time =#{updateTime},update_user= #{updateUser} where id in
#{id}
insert into t_check_score (score,dept_id,template_id,index_id,examine_tag,examine_category,create_time) values
(#{score.score},#{score.deptId},#{score.templateId},#{score.indexId},#{score.examineTag},#{score.examineCategory},#{score.createTime})