id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, name AS name, process_id AS processId, status AS status, type AS type, step_index AS stepIndex, flow_process AS flowProcess, desc AS desc insert into lz_flow_chart( name, process_id, status, type, step_index, flow_process, desc, is_delete, gmt_create, gmt_modified )values( #{ name}, #{ processId}, #{ status}, #{ type}, #{ stepIndex}, #{ flowProcess}, #{ desc}, 0, now(), now() ) update lz_flow_chart is_delete = #{isDelete}, gmt_create = #{gmtCreate}, name = #{name}, process_id = #{processId}, status = #{status}, type = #{type}, step_index = #{stepIndex}, flow_process = #{flowProcess}, desc = #{desc} ,gmt_modified = now() where id = #{id} update lz_flow_chart set is_delete = #{isDelete}, gmt_create = #{gmtCreate}, name = #{name}, process_id = #{processId}, status = #{status}, type = #{type}, step_index = #{stepIndex}, flow_process = #{flowProcess}, desc = #{desc} ,gmt_modified = now() where id = #{id} update lz_flow_chart set is_delete = 1 where id=#{id} limit 1