insert into product(
product_id,unit_name,is_postage,sort,store_id,bar_code,postage,prod_name,state,keyword,prod_desc,category_id
) values (
#{productId},#{unitName},#{isPostage},#{sort},#{storeId},#{barCode},#{postage},#{prodName},#{state},#{keyword},#{prodDesc},#{categoryId}
)
update product t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.unit_name= #{unitName}
, t.is_postage= #{isPostage}
, t.sort= #{sort}
, t.store_id= #{storeId}
, t.bar_code= #{barCode}
, t.postage= #{postage}
, t.prod_name= #{prodName}
, t.state= #{state}
, t.keyword= #{keyword}
, t.prod_desc= #{prodDesc}
, t.category_id= #{categoryId}
where 1=1
and t.product_id= #{productId}