insert into work_pool_file(
path_url,community_id,store_id,work_id,file_id,task_id,file_type
) values (
#{pathUrl},#{communityId},#{storeId},#{workId},#{fileId},#{taskId},#{fileType}
)
update work_pool_file t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.path_url= #{pathUrl}
where 1=1
and t.file_id= #{fileId}
and t.community_id= #{communityId}
and t.store_id= #{storeId}
and t.task_id= #{taskId}
and t.file_type= #{fileType}
and t.work_id= #{workId}