insert into product_category(
category_level,parent_category_id,store_id,category_name,category_id,seq,is_show
) values (
#{categoryLevel},#{parentCategoryId},#{storeId},#{categoryName},#{categoryId},#{seq},#{isShow}
)
update product_category t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.category_level= #{categoryLevel}
, t.parent_category_id= #{parentCategoryId}
, t.store_id= #{storeId}
, t.category_name= #{categoryName}
, t.seq= #{seq}
, t.is_show= #{isShow}
where 1=1
and t.category_id= #{categoryId}