Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ToCacheList方法,Key的获取方法有BUG #176

Closed
willtoto opened this issue Aug 7, 2020 · 2 comments
Closed

ToCacheList方法,Key的获取方法有BUG #176

willtoto opened this issue Aug 7, 2020 · 2 comments
Labels
Bug 🐛 有虫,来捉虫 Fixed ✔️ bug已修复

Comments

@willtoto
Copy link
Contributor

willtoto commented Aug 7, 2020

ToCacheList方法,Key的获取方法有BUG
var json = _sysResourceContract.VIPGoodss.ToCacheList<VIPGoods, VIPGoodsListOutputDto>(predicate);

读取缓存数据的时候,当其他参数全相同时,只有某一个参数的值变动,会读取缓存里面的数据,如下参数,Value=11改为21,读取的缓存key相同,导致返回的数据错误
{"Rules":[{"Field":"VIPType","Operate":3,"Value":21}],"Operate":1,"Groups":[],"Level":1}

@gmf520
Copy link
Member

gmf520 commented Aug 8, 2020

我这边测试没有重现,切换不同参数,能生成不同的key的

@gmf520
Copy link
Member

gmf520 commented Aug 9, 2020

已确认Bug,在OutputDto实现了IDataAuthEnabled之后可重现

@gmf520 gmf520 added the Bug 🐛 有虫,来捉虫 label Aug 9, 2020
@gmf520 gmf520 added the Fixed ✔️ bug已修复 label Aug 9, 2020
@gmf520 gmf520 closed this as completed Aug 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 有虫,来捉虫 Fixed ✔️ bug已修复
Projects
None yet
Development

No branches or pull requests

2 participants