上传的图像用于项目: 'CST技术支持'
  1. CST技术支持
  2. SLAL2-1548

【华友钴业】审批流Python Code写法

XMLWord打印

    • Icon: 技术问题 技术问题
    • 解决结果: 完成
    • Icon: Medium Medium
    • 202012
    • Y-易路产品-
    • 基础通用功能
    • 隐藏

      department = self.employee_id.department_id
      result = False
      while department:
      if department.code == '10001000':
      result = True
      break
      else:
      department = department.parent_department_id

      while department:
      if department.code == '10009000':
      result = False
      break
      else:
      department = department.parent_department_id

      显示
      department = self.employee_id.department_id result = False while department: if department.code == '10001000': result = True break else: department = department.parent_department_id while department: if department.code == '10009000': result = False break else: department = department.parent_department_id

      需要在审批流场景上添加判断:部门代码为10000004及下属所有部门的员工走当前审批流。但是要排除掉10000028及下属所有部门。

            wenqiang.liu 刘文强
            evan.zhang 张鹏远
            表决:
            0 为这个问题表决

              创建日期:
              已更新:
              已解决: