id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, name AS name, manager_ids AS managerIds, dep_ids AS depIds, staff_ids AS staffIds, out_ids AS outIds, copy_id AS copyId, start_id AS startId
insert into lz_evaluation_group(
name,
manager_ids,
dep_ids,
staff_ids,
out_ids,
copy_id,
start_id,
is_delete,
gmt_create,
gmt_modified
)values(
#{ name},
#{ managerIds},
#{ depIds},
#{ staffIds},
#{ outIds},
#{ copyId},
#{ startId},
0,
now(),
now()
)
update
lz_evaluation_group
is_delete = #{isDelete},
gmt_create = #{gmtCreate},
name = #{name},
manager_ids = #{managerIds},
dep_ids = #{depIds},
staff_ids = #{staffIds},
out_ids = #{outIds},
copy_id = #{copyId},
start_id = #{startId}
,gmt_modified = now()
where id = #{id}
update
lz_evaluation_group
set
is_delete = #{isDelete},
gmt_create = #{gmtCreate},
name = #{name},
manager_ids = #{managerIds},
dep_ids = #{depIds},
staff_ids = #{staffIds},
out_ids = #{outIds},
copy_id = #{copyId},
start_id = #{startId}
,gmt_modified = now()
where id = #{id}
update lz_evaluation_group set is_delete = 1 where id=#{id} limit 1
update lz_evaluation_group set is_delete = 1 where is_delete=0
and start_id = #{startId}
and copy_id in (
#{id}
)