set java sum and select for tariff_price