有问题文章留言 看内容决定收费与免费
另外接收数据库质疑 勒索病毒数据恢复等项目。

SRM申请的商品在软件申请不了,新品申请

【问】SRM申请的商品在软件申请不了,新品申请
【适用版本】商锐9 【模块】档案管理 【点击数】39
【知识编号】P2016030900009
【问题描述】SRM申请的商品在软件申请不了

【答】 use hbposev9
go
–如下是查询商品资料里有品牌编号,但是在品牌里没有此品牌
select item_brand,item_brandname,* from t_bd_item_info
where item_brand not in (SELECT code_id FROM t_bd_base_code where type_no=’PP’)–提示:品牌信息可以到营运子系统–档案–基础代码–品牌里添加,
–如不需要,可以通过如下语句批量设置为PP
–如下是批量设置不存在的品牌商品默认为PP.PM
update t_bd_item_info set item_brand=’PP’,item_brandname=’PM’
where item_brand not in (SELECT code_id FROM t_bd_base_code where type_no=’PP’)
go
update t_bd_item_info set item_brand=’PP’,item_brandname=’PM’
where item_brandname=” or item_brandname is null
or item_brandname not in (SELECT code_name FROM t_bd_base_code where type_no=’PP’)
go–如下是批量设置新品申请的商品不存在的品牌默认为PP.PM
update t_bd_appitem_info set item_brand=’PP’,item_brandname=’PM’
where item_brand not in (SELECT code_id FROM t_bd_base_code where type_no=’PP’)
or item_brand is null or item_brand=”
–如下是批量设置商品档案的商品不存在的品牌默认为PP.PM
update t_bd_item_info set item_brand=’PP’,item_brandname=’PM’
where item_brand not in (SELECT code_id FROM t_bd_base_code where type_no=’PP’)
or item_brand is null or item_brand=”

赞(0)
未经允许不得转载:思迅软件知识库 » SRM申请的商品在软件申请不了,新品申请

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址