insert into invoice_apply( apply_id,oi_id,create_user_id,owner_name,invoice_type,apply_tel,invoice_amount,create_user_name,remark,state,community_id ) values ( #{applyId},#{oiId},#{createUserId},#{ownerName},#{invoiceType},#{applyTel},#{invoiceAmount},#{createUserName},#{remark},#{state},#{communityId} ) update invoice_apply t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.oi_id= #{oiId} , t.create_user_id= #{createUserId} , t.owner_name= #{ownerName} , t.invoice_type= #{invoiceType} , t.apply_tel= #{applyTel} , t.invoice_amount= #{invoiceAmount} , t.create_user_name= #{createUserName} , t.remark= #{remark} , t.state= #{state} , t.community_id= #{communityId} where 1=1 and t.apply_id= #{applyId}