Files
zszq-trs/YLErpWeb/Controllers/BondController.cs
T
2024-05-09 14:06:26 +08:00

22 lines
578 B
C#

using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace YLErp.Web.Controllers
{
public class BondController : BaseController
{
[AllowAnonymous]
public JsonResult CalcBond(string underlyingCode, int positionType, decimal price, string valueDate)
{
var obj = HTCalcHepler.BondCalc(underlyingCode, positionType, price, valueDate);
if (obj == null)
{
return JsonError("计算价格失败");
}
return JsonSuccess("", obj);
}
}
}