id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, evaluation_id AS evaluationId, start_id AS startId, staff_id AS staffId, type AS type, score AS score, evaluation_name AS evaluationName, department_id AS departmentId insert into lz_evaluation_start_staff( evaluation_id, start_id, staff_id, type, score, evaluation_name, department_id, is_delete, gmt_create, gmt_modified )values( #{ evaluationId}, #{ startId}, #{ staffId}, #{ type}, #{ score}, #{ evaluationName}, #{ departmentId}, 0, now(), now() ) update lz_evaluation_start_staff is_delete = #{isDelete}, gmt_create = #{gmtCreate}, evaluation_id = #{evaluationId}, start_id = #{startId}, staff_id = #{staffId}, type = #{type}, score = #{score}, evaluation_name = #{evaluationName}, department_id = #{departmentId} ,gmt_modified = now() where id = #{id} update lz_evaluation_start_staff set is_delete = #{isDelete}, gmt_create = #{gmtCreate}, evaluation_id = #{evaluationId}, start_id = #{startId}, staff_id = #{staffId}, type = #{type}, score = #{score}, evaluation_name = #{evaluationName}, department_id = #{departmentId} ,gmt_modified = now() where id = #{id} update lz_evaluation_start_staff set is_delete = 1 where id=#{id} limit 1 insert into lz_evaluation_start_staff( evaluation_id, start_id, staff_id, type, evaluation_name, department_id, is_delete )values ( #{ item.evaluationId}, #{ item.startId}, #{ item.staffId}, #{ item.type}, #{ item.evaluationName}, #{ item.departmentId}, 0 ) ; update lz_evaluation_start_staff set score = 1, gmt_modified = now() where is_delete = 0 and score = 0 and type = 0 and evaluation_id = #{evaluationId} and start_id = #{startId} update lz_evaluation_start_staff set is_delete = 1, gmt_modified = now() where is_delete = 0 and type = 0 and start_id = #{startId} and staff_id in ( #{staff_id} ) UPDATE lz_evaluation_start_staff SET is_delete = 1 where is_delete = 0 and start_id = #{startId}