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.b_id = #{newBId}
, t.spec_id= #{specId}
, t.detail_name= #{detailName}
, t.detail_value= #{detailValue}
, t.store_id= #{storeId}
where 1=1
and t.detail_id= #{detailId}