SELECT 
  tmall_product_prices.product_id, 
  COALESCE(
    tmall_master_products_storefront_min_price.price, 
    MIN(
      IF(
        tmall_product_prices.percentage_discount = 0, 
        tmall_product_prices.price, 
        tmall_product_prices.price - (
          tmall_product_prices.price * tmall_product_prices.percentage_discount
        )/ 100
      )
    )
  ) AS price 
FROM 
  tmall_product_prices 
  LEFT JOIN tmall_master_products_storefront_min_price ON tmall_master_products_storefront_min_price.product_id = tmall_product_prices.product_id 
  AND tmall_master_products_storefront_min_price.storefront_id = 1 
WHERE 
  tmall_product_prices.product_id IN (
    278, 280, 282, 247, 248, 241, 244, 245, 
    246, 240, 6, 66, 166, 214, 219, 221, 223, 
    192, 194, 195
  ) 
  AND tmall_product_prices.lower_limit = 1 
  AND tmall_product_prices.usergroup_id IN (0, 1) 
GROUP BY 
  tmall_product_prices.product_id

Query time 0.00876

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.053298241,
    "nested_loop": [
      {
        "table": {
          "table_name": "tmall_master_products_storefront_min_price",
          "access_type": "system",
          "possible_keys": ["PRIMARY"],
          "rows": 0,
          "filtered": 0,
          "const_row_not_found": true
        }
      },
      {
        "table": {
          "table_name": "tmall_product_prices",
          "access_type": "range",
          "possible_keys": [
            "usergroup",
            "product_id",
            "lower_limit",
            "usergroup_id"
          ],
          "key": "product_id",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "loops": 1,
          "rows": 22,
          "cost": 0.0396149,
          "filtered": 97.28681946,
          "index_condition": "tmall_product_prices.product_id in (278,280,282,247,248,241,244,245,246,240,6,66,166,214,219,221,223,192,194,195)",
          "attached_condition": "tmall_product_prices.lower_limit = 1 and tmall_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
6 329.99000000
66 389.95000000
166 749.95000000
192 15.00000000
194 10.60000000
195 29.99000000
214 972.00000000
219 529.99000000
221 2049.00000000
223 499.99000000
240 499.00000000
241 499.00000000
244 729.99000000
245 699.00000000
246 399.99000000
247 329.49000000
248 372.27000000
278 75.00000000
280 50.00000000
282 75.00000000