xuyonghao
2025-02-13 da4dce0801ed3ee1d3cec0f6938892ea7154a346
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()