a.id AS "id",
a.show_main_id AS "showMainId",
a.show_judge_id AS "showJudgeId",
a.show_judge_picture AS "showJudgePicture",
a.create_by AS "createBy.id",
a.create_date AS "createDate",
a.update_by AS "updateBy.id",
a.update_date AS "updateDate",
a.remarks AS "remarks",
a.del_flag AS "delFlag",
sj.judge_name
left join show_judge sj on sj.id =a.show_judge_id
INSERT INTO show_main_judge_info(
id,
show_main_id,
show_judge_id,
show_judge_picture,
create_by,
create_date,
update_by,
update_date,
remarks,
del_flag
) VALUES (
#{id},
#{showMainId},
#{showJudgeId},
#{showJudgePicture},
#{createBy.id},
#{createDate},
#{updateBy.id},
#{updateDate},
#{remarks},
#{delFlag}
)
UPDATE show_main_judge_info SET
show_main_id = #{showMainId},
show_judge_id = #{showJudgeId},
show_judge_picture = #{showJudgePicture},
update_by = #{updateBy.id},
update_date = #{updateDate},
remarks = #{remarks}
WHERE id = #{id}
UPDATE show_main_judge_info SET
del_flag = #{DEL_FLAG_DELETE}
WHERE id = #{id}