【脚本】填充员工的默认班组信息
2018-08-23    
1527 0
通过数据库脚本方式填充班组为空的员工默认班组信息
  • 执行脚本

    Update HRM_User
        Set
            GroupEnumItemCode = (Select TOP 1 Code From BDC_EnumItem Where Code LIKE (Select CodePre From BDC_EnumSpec Where Code = 'PPM_ProduceGroup')+'%'  and IsDefault = '1' Order By Code)
    Where
        1=1
        and GroupEnumItemCode = '' OR LEN(GroupEnumItemCode)<7 OR (GroupEnumItemCode = (Select TOp 1 Code From CRM_CustomerGroupSpec Order By Code ASC))
        and ((Select TOP 1 Code From BDC_EnumItem Where Code LIKE (Select CodePre From BDC_EnumSpec Where Code = 'PPM_ProduceGroup')+'%'  and IsDefault = '1' Order By Code)) IS NOT NULL
    GO

章节

该文章对您有用吗?

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

客服电话

4006757966

微信公众号

联系我们

印特3系演示版

申请

印特5系演示版

申请

免费试用

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

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