id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, department_id AS departmentId, taff_id AS taffId, child_flow_id AS childFlowId, self_flow_id AS selfFlowId, department_level AS departmentLevel
insert into lz_flow_department(
department_id,
taff_id,
child_flow_id,
self_flow_id,
department_level,
is_delete,
gmt_create,
gmt_modified
)values(
#{ departmentId},
#{ taffId},
#{ childFlowId},
#{ selfFlowId},
#{ departmentLevel},
0,
now(),
now()
)
update
lz_flow_department
is_delete = #{isDelete},
gmt_create = #{gmtCreate},
department_id = #{departmentId},
taff_id = #{taffId},
child_flow_id = #{childFlowId},
self_flow_id = #{selfFlowId},
department_level = #{departmentLevel}
,gmt_modified = now()
where id = #{id}
update
lz_flow_department
set
is_delete = #{isDelete},
gmt_create = #{gmtCreate},
department_id = #{departmentId},
taff_id = #{taffId},
child_flow_id = #{childFlowId},
self_flow_id = #{selfFlowId},
department_level = #{departmentLevel}
,gmt_modified = now()
where id = #{id}
update lz_flow_department set is_delete = 1 where id=#{id} limit 1