insert into product_spec_detail(
spec_id,detail_name,detail_value,detail_id,store_id
) values (
#{specId},#{detailName},#{detailValue},#{detailId},#{storeId}
)
update product_spec_detail t set t.status_cd = #{statusCd}
, t.detail_name= #{detailName}
, t.detail_value= #{detailValue}
where 1=1
and t.detail_id= #{detailId}
and t.spec_id= #{specId}
and t.store_id= #{storeId}