insert into oa_workflow_data(
data_id,business_key,context,staff_name,start_time,pre_data_id,end_time,store_id,event,staff_id,flow_id
) values (
#{dataId},#{businessKey},#{context},#{staffName},#{startTime},#{preDataId},#{endTime},#{storeId},#{event},#{staffId},#{flowId}
)
update oa_workflow_data t set t.status_cd = #{statusCd}
, t.business_key= #{businessKey}
, t.context= #{context}
, t.staff_name= #{staffName}
, t.start_time= #{startTime}
, t.pre_data_id= #{preDataId}
, t.end_time= #{endTime}
, t.event= #{event}
, t.staff_id= #{staffId}
where 1=1
and t.data_id= #{dataId}
and t.store_id= #{storeId}