add 增加数据权限注入

This commit is contained in:
疯狂的狮子li
2021-04-02 14:15:10 +08:00
parent 4a1ff5a5ac
commit 85e9534fae
2 changed files with 10 additions and 4 deletions

View File

@ -53,6 +53,7 @@ public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${C
#end
lqw.$mpMethod($condition, ${ClassName}::get$AttrName, bo.get$AttrName());
#else
lqw.apply(bo.getParams().get("dataScope") != null,bo.getParams().get("dataScope").toString());
Map<String, Object> params = bo.getParams();
if (params.get("begin$AttrName") != null && params.get("end$AttrName") != null) {
lqw.between(${ClassName}::get$AttrName ,params.get("begin$AttrName"), params.get("end$AttrName"));