fix 数据权限语句null bug
This commit is contained in:
parent
3012bf0a31
commit
dfcd84c2bc
|
@ -53,7 +53,8 @@ public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${C
|
||||||
#end
|
#end
|
||||||
lqw.$mpMethod($condition, ${ClassName}::get$AttrName, bo.get$AttrName());
|
lqw.$mpMethod($condition, ${ClassName}::get$AttrName, bo.get$AttrName());
|
||||||
#else
|
#else
|
||||||
lqw.apply(bo.getParams().get("dataScope") != null,bo.getParams().get("dataScope").toString());
|
Object dataScope = bo.getParams().get("dataScope");
|
||||||
|
lqw.apply(dataScope != null, dataScope != null ? dataScope.toString() : null);
|
||||||
Map<String, Object> params = bo.getParams();
|
Map<String, Object> params = bo.getParams();
|
||||||
if (params.get("begin$AttrName") != null && params.get("end$AttrName") != null) {
|
if (params.get("begin$AttrName") != null && params.get("end$AttrName") != null) {
|
||||||
lqw.between(${ClassName}::get$AttrName ,params.get("begin$AttrName"), params.get("end$AttrName"));
|
lqw.between(${ClassName}::get$AttrName ,params.get("begin$AttrName"), params.get("end$AttrName"));
|
||||||
|
|
Loading…
Reference in New Issue