UPDATE epc_cost_from_mapping_{rule} SET f_name = #{fName}, f_id = #{fId} WHERE ct_id = #{ctId} and type = #{type} UPDATE epc_cost_from_mapping_{rule} SET data_start = 99 where ct_id = #{id} DELETE FROM epc_cost_from_mapping_{rule} WHERE ct_id = #{ctId} AND type = #{type}