fix FromRoute

This commit is contained in:
2025-10-15 18:24:32 +08:00
parent 6615033983
commit 77d56b39b5

View File

@@ -159,7 +159,7 @@ public class AssignmentsController : ControllerBase
[AllowAnonymous]
[IgnoreTenant]
[HttpPost("settlement/supplier/calc/{year:int}/{month:int}")]
public async Task CalcSettlementSupplier(int year, [FromQuery] int month)
public async Task CalcSettlementSupplier([FromRoute] int year, [FromRoute] int month)
{
if (month is < 1 or > 12)
{