zhaoqingang
2025-01-14 a7c9047450b2ebb8b7e5d2201c3c6b61af580a3c
app/service/organization.py
@@ -113,6 +113,10 @@
    next_dept_list = []
    base_dept = db.query(OrganizationModel).filter(OrganizationModel.id.__eq__(dept_id)).first()
    if status == DEPT_STATUS_ON:
        print(11)
        print(base_dept.name)
        if base_dept.parent and base_dept.parent.status != DEPT_STATUS_ON:
            return '上级节点状态异常!'
        try:
            base_dept.status=status
            db.commit()