更新限额配置时更新缓存
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user