insert into oa_workflow(
describle,model_id,flow_key,store_id,flow_id,flow_name,flow_type,process_definition_key,state
) values (
#{describle},#{modelId},#{flowKey},#{storeId},#{flowId},#{flowName},#{flowType},#{processDefinitionKey},#{state}
)
update oa_workflow t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.describle= #{describle}
, t.model_id= #{modelId}
, t.flow_key= #{flowKey}
, t.state= #{state}
, t.flow_name= #{flowName}
, t.flow_type= #{flowType}
, t.process_definition_key= #{processDefinitionKey}
where 1=1
and t.flow_id= #{flowId}
and t.store_id= #{storeId}