insert into evaluate_submit_record (id, evaluate_manage_id, evaluate_executer_id, create_date, evaluated_object, evaluated_object_id, status) (SELECT UUID(), t.evaluate_manage_id, t.id, NOW(), if(t2.evaluate_type='dm_evaluate_class', 'class', 'teacher'), t.evaluate_object_id, 0 FROM evaluate_executer t LEFT JOIN evaluate_manage t1 ON (t1.id = t.evaluate_manage_id) LEFT JOIN evaluate_template t2 ON (t2.id = t1.evaluate_template_id) WHERE t.delete_mark = 0 AND t.evaluate_manage_id = #{evaluateManageId})