insert into report_custom_component_footer( footer_id,component_id,java_script,name,remark,query_model,component_sql ) values ( #{footerId},#{componentId},#{javaScript},#{name},#{remark},#{queryModel},#{componentSql} ) update report_custom_component_footer t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.component_id= #{componentId} , t.java_script= #{javaScript} , t.name= #{name} , t.remark= #{remark} , t.query_model= #{queryModel} , t.component_sql= #{componentSql} where 1=1 and t.footer_id= #{footerId}