【脚本】总部更新与门店不统一的工单客户编号
2018-08-24    易林江
1308 0
由于历史原因,可能会出现某些门店工单、结算单的客户编号与总部的单据客户信息存在异常,可通过此脚本完成更新修正
  • 查询指令

    select * from PPM_JobBill  where customercode='客户编号'

    select * from RSM_GatheringBill where customercode='客户编号'

  • 更新指令

    Update PPM_JobBill Set customercode = '客户编号' Where customercode='客户编号'

    Update RSM_GatheringBill Set customercode = '客户编号' Where customercode='客户编号'

  • 同步指令

    EXEC SYS_SyncPushToShop_InsertAsSQL
        101,
        '
            Update PPM_JobBill Set customercode = ''客户编号'' Where customercode=''客户编号''
        ',
        1001,10


    EXEC SYS_SyncPushToShop_InsertAsSQL
        101,
        '
            Update RSM_GatheringBill Set customercode = ''客户编号'' Where customercode=''客户编号''
        ',
        1002,10

该文章对您有用吗?

非常感谢,您的反馈对我们很有价值!

客服电话

4006757966

微信公众号

联系我们

印特3系演示版

申请

印特5系演示版

申请

免费试用

印特软件标准演示版下载申请

请您填写您的一些信息,提交您的申请后,我们会在两个工作日内进行处理,并回复您一封邮件,内附下载链接,请您注意查收。
*
请输入正确的公司名称
*
请输入正确的联络人员
*
请输入正确的联络电话
提交申请
关闭