insert into workflow(
skip_level,describle,community_id,store_id,flow_id,flow_name,flow_type,process_definition_key,start_node_finish
) values (
#{skipLevel},#{describle},#{communityId},#{storeId},#{flowId},#{flowName},#{flowType},#{processDefinitionKey},#{startNodeFinish}
)
update workflow t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.skip_level= #{skipLevel}
, t.describle= #{describle}
, t.community_id= #{communityId}
, t.store_id= #{storeId}
, t.flow_name= #{flowName}
, t.flow_type= #{flowType}
, t.start_node_finish= #{startNodeFinish}
, t.process_definition_key= #{processDefinitionKey}
where 1=1
and t.flow_id= #{flowId}