select cljc_id                                                                                     AS id,
       cljc_cp                                                                                     AS brand_model,
       CASE cljc_cllx WHEN '油车' THEN '1' when '挂车' THEN '4' WHEN '电车' THEN '2' ELSE NULL END AS vehicle_type,
       cljc_ys                                                                                     AS body_color,
       cljc_cpys                                                                                   AS plate_color,
       cljc_dl                                                                                     AS fuel_type,
       cljc_zmc                                                                                    AS manufacturer_name,
       -- 货箱长度（INT类型）
       CASE
           WHEN TRIM(cljc_xnc) = '' THEN NULL
           WHEN cljc_xnc REGEXP '^[0-9]+$' THEN CAST(cljc_xnc AS UNSIGNED)
           ELSE NULL END                                                                           AS cargo_length_mm,
       -- 货箱宽度（INT类型）
       CASE
           WHEN TRIM(cljc_xnk) = '' THEN NULL
           WHEN cljc_xnk REGEXP '^[0-9]+$' THEN CAST(cljc_xnk AS UNSIGNED)
           ELSE NULL END                                                                           AS cargo_width_mm,
       -- 货箱高度（INT类型）
       CASE
           WHEN TRIM(cljc_xng) = '' THEN NULL
           WHEN cljc_xng REGEXP '^[0-9]+$' THEN CAST(cljc_xng AS UNSIGNED)
           ELSE NULL END                                                                           AS cargo_height_mm,
       -- 发动机排量（INT类型）
       CASE
           WHEN TRIM(cljc_dpl) = '' THEN NULL
           WHEN cljc_dpl REGEXP '^[0-9]+$' THEN CAST(cljc_dpl AS UNSIGNED)
           ELSE NULL END                                                                           AS engine_displacement,
       -- 发动机功率（新增INT类型转换）
       CASE
           WHEN TRIM(cljc_gl) = '' THEN NULL
           WHEN cljc_gl REGEXP '^[0-9]+$' THEN CAST(cljc_gl AS UNSIGNED)
           ELSE NULL END                                                                           AS engine_power_kw,
       -- 电机功率（INT类型）
       CASE
           WHEN TRIM(cljc_jgl) = '' THEN NULL
           WHEN cljc_jgl REGEXP '^[0-9]+$' THEN CAST(cljc_jgl AS UNSIGNED)
           ELSE NULL END                                                                           AS motor_power_kw,
       cljc_dxh                                                                                    AS drive_motor_model,
       cljc_lt                                                                                     AS tire_count,
       cljc_ltgg                                                                                   AS tire_spec,
       -- 轴距（INT类型）
       CASE
           WHEN TRIM(cljc_zj) = '' THEN NULL
           WHEN cljc_zj REGEXP '^[0-9]+$' THEN CAST(cljc_zj AS UNSIGNED)
           ELSE NULL END                                                                           AS wheelbase_mm,
       cljc_czs                                                                                    AS axle_count,
       cljc_dp                                                                                     AS chassis_model,
       cljc_bsq                                                                                    AS transmission,
       cljc_hsq                                                                                    AS retarder,
       -- 货箱容积（DECIMAL类型）
       CASE
           WHEN TRIM(cljc_xrj) = '' THEN NULL
           WHEN cljc_xrj REGEXP '^[0-9.]+$' THEN CAST(cljc_xrj AS DECIMAL(10, 2))
           ELSE NULL END                                                                           AS cargo_volume,
       cljc_pf                                                                                     AS emission_standard,
       cljc_dlx                                                                                    AS battery_type,
       -- 承保座位数（INT类型）
       CASE
           WHEN TRIM(cljc_zw) = '' THEN NULL
           WHEN cljc_zw REGEXP '^[0-9]+$' THEN CAST(cljc_zw AS UNSIGNED)
           ELSE NULL END                                                                           AS insured_seat_count,
       cljc_zdfs                                                                                   AS service_brake_type,
       cljc_qlzd                                                                                   AS front_brake_type,
       cljc_hlzd                                                                                   AS rear_brake_type,
       cljc_zdbs                                                                                   AS abs_system,
       cljc_kt                                                                                     AS air_conditioning,
       cljc_gc                                                                                     AS domestic_flag,
       cljc_clxh                                                                                   AS vehicle_model
from sy_pzclxx;