insert into resource_store(
sh_id,description,remark,store_id,res_id,parent_rst_id,warning_stock,rss_id,res_name,rst_id,out_low_price,price,mini_unit_stock,unit_code,res_code,mini_unit_code,average_price,stock,out_high_price,show_mobile,is_fixed,mini_stock
) values (
#{shId},#{description},#{remark},#{storeId},#{resId},#{parentRstId},#{warningStock},#{rssId},#{resName},#{rstId},#{outLowPrice},#{price},#{miniUnitStock},#{unitCode},#{resCode},#{miniUnitCode},#{averagePrice},#{stock},#{outHighPrice},#{showMobile},#{isFixed},#{miniStock}
)
update resource_store t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.sh_id= #{shId}
, t.description= #{description}
, t.remark= #{remark}
, t.store_id= #{storeId}
, t.parent_rst_id= #{parentRstId}
, t.warning_stock= #{warningStock}
, t.rss_id= #{rssId}
, t.res_name= #{resName}
, t.rst_id= #{rstId}
, t.out_low_price= #{outLowPrice}
, t.price= #{price}
, t.mini_unit_stock= #{miniUnitStock}
, t.unit_code= #{unitCode}
, t.res_code= #{resCode}
, t.mini_unit_code= #{miniUnitCode}
, t.average_price= #{averagePrice}
, t.stock= #{stock}
, t.out_high_price= #{outHighPrice}
, t.show_mobile= #{showMobile}
, t.is_fixed= #{isFixed}
, t.mini_stock= #{miniStock}
where 1=1
and t.res_id= #{resId}