id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, staff_id AS staffId, flow_ids AS flowIds, department_level AS departmentLevel, parent_id AS parentId
insert into lz_flow_department(
staff_id,
flow_ids,
department_level,
parent_id,
is_delete,
gmt_create,
gmt_modified
)values(
#{ staffId},
#{ flowIds},
#{ departmentLevel},
#{ parentId},
0,
now(),
now()
)
update
lz_flow_department
is_delete = #{isDelete},
gmt_create = #{gmtCreate},
staff_id = #{staffId},
flow_ids = #{flowIds},
department_level = #{departmentLevel},
parent_id = #{parentId}
,gmt_modified = now()
where id = #{id}
update
lz_flow_department
set
is_delete = #{isDelete},
gmt_create = #{gmtCreate},
staff_id = #{staffId},
flow_ids = #{flowIds},
department_level = #{departmentLevel},
parent_id = #{parentId}
,gmt_modified = now()
where id = #{id}
update lz_flow_department set is_delete = 1 where id=#{id} limit 1