更新限额配置时更新缓存

This commit is contained in:
yexuzhong
2025-08-19 15:55:52 +08:00
parent 86aafef2de
commit b3ddc1c898
5 changed files with 96 additions and 4 deletions
+9 -1
View File
@@ -1,5 +1,6 @@
using Microsoft.AspNetCore.Authorization;
using YLErp.BLL.Eod;
using YLErp.Cache;
using YLErp.Enums;
using YLErp.Model.HengTaiModel;
using YLErp.Modules.ApiModule;
@@ -18,6 +19,13 @@ namespace YLErp.Web.Controllers
{
public class riskController : BaseController
{
private IYLCache _yLCache;
public riskController(IYLCache yLCache)
{
_yLCache = yLCache;
}
[MyAuthorize("风险控制-市场风险")]
public ActionResult RiskExposureReport()
{
@@ -571,7 +579,7 @@ namespace YLErp.Web.Controllers
{
try
{
new QuotaMonitorService(CurUser).ApprovalQuotaSetting(req);
new QuotaMonitorService(CurUser).ApprovalQuotaSetting(req,_yLCache);
return JsonSuccess("操作成功");
}
catch (ServiceException ex)