UPDATE epc_cost_from_template SET f_name = #{fName}, f_id = #{fId} WHERE ct_id = #{ctId} and type = #{type} UPDATE epc_cost_from_template SET data_start = 99 where ct_id = #{id} delete from epc_cost_from_template where ct_id = #{id}