This commit is contained in:
admin
2026-01-22 01:16:54 +09:00
parent 86020ada5c
commit 3d91356877
16 changed files with 1862 additions and 494 deletions

View File

@@ -262,7 +262,7 @@ def approve_payroll(payroll_id: int, request: schemas.PayrollApprovalRequest):
return result
@router.delete("/{payroll_id}", status_code=status.HTTP_204_NO_CONTENT)
@router.delete("/{payroll_id}")
def delete_payroll(payroll_id: int):
"""給与データを削除"""
with get_connection() as conn:
@@ -282,3 +282,5 @@ def delete_payroll(payroll_id: int):
cur.execute("DELETE FROM monthly_payroll WHERE payroll_id = %s", (payroll_id,))
conn.commit()
return {"message": "給与データを削除しました", "payroll_id": payroll_id}