更新限额配置时更新缓存
This commit is contained in:
@@ -23,6 +23,7 @@ using YLErp.BLL.Calculation;
|
||||
using YLErp.BLL.Eod;
|
||||
using YLErp.BLL.EodSettlement;
|
||||
using YLErp.BLL.Hedge;
|
||||
using YLErp.Cache;
|
||||
using YLErp.Commons;
|
||||
using YLErp.DataBase;
|
||||
using YLErp.DBModels;
|
||||
@@ -3789,15 +3790,15 @@ namespace YLErp.Modules.RiskModule
|
||||
return settings;
|
||||
}
|
||||
|
||||
public void ApprovalQuotaSetting(List<ApprovalReqq> req)
|
||||
public void ApprovalQuotaSetting(List<ApprovalReqq> req,IYLCache yLCache)
|
||||
{
|
||||
foreach (var item in req)
|
||||
{
|
||||
ApprovalQuotaSetting(item);
|
||||
ApprovalQuotaSetting(item,yLCache);
|
||||
}
|
||||
}
|
||||
|
||||
public void ApprovalQuotaSetting(ApprovalReqq req)
|
||||
public void ApprovalQuotaSetting(ApprovalReqq req, IYLCache yLCache)
|
||||
{
|
||||
var obj = DbContext.quotaSetting.Where(O => O.id == req.id).FirstOrDefault();
|
||||
if (obj.Status == QuotaSettingApprovalStatus.Pending_Approval)
|
||||
@@ -3847,6 +3848,10 @@ namespace YLErp.Modules.RiskModule
|
||||
CreateTime = DateTime.Now
|
||||
});
|
||||
}
|
||||
|
||||
//删除限额监控设置缓存
|
||||
var redisKey = RiskCfgRedisKey.GetKey(obj.QuotaType,obj.QuotaIndex);
|
||||
yLCache.DeleteKey(redisKey);
|
||||
break;
|
||||
case "reject":
|
||||
obj.Status = QuotaSettingApprovalStatus.Rejected;
|
||||
|
||||
Reference in New Issue
Block a user