id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, flow_id AS flowId, opt AS opt, opt_desc AS optDesc, role_id AS roleId, chart_id AS chartId, weight AS weight, start_id AS startId
insert into lz_flow(
flow_id,
opt,
opt_desc,
role_id,
chart_id,
weight,
start_id,
is_delete,
gmt_create,
gmt_modified
)values(
#{ flowId},
#{ opt},
#{ optDesc},
#{ roleId},
#{ chartId},
#{ weight},
#{ startId},
0,
now(),
now()
)
update
lz_flow
is_delete = #{isDelete},
gmt_create = #{gmtCreate},
flow_id = #{flowId},
opt = #{opt},
opt_desc = #{optDesc},
role_id = #{roleId},
chart_id = #{chartId},
weight = #{weight},
start_id = #{startId}
,gmt_modified = now()
where id = #{id}
update
lz_flow
set
is_delete = #{isDelete},
gmt_create = #{gmtCreate},
flow_id = #{flowId},
opt = #{opt},
opt_desc = #{optDesc},
role_id = #{roleId},
chart_id = #{chartId},
weight = #{weight},
start_id = #{startId}
,gmt_modified = now()
where id = #{id}
update lz_flow set is_delete = 1 where id=#{id} limit 1