Commit 740b3b7e by java-李谡

油量分析权限验证

parent 78ddee6c
......@@ -44,7 +44,10 @@ public class UserRolesService extends BaseService<UserRolesDao> {
public boolean getOilRole(UserRolesBean bean) {
Integer roleCount = dao.getOilRole(bean);
return Objects.nonNull(roleCount);
if (Objects.nonNull(roleCount) && roleCount != 0) {
return true;
}
return false;
}
public List<JSONObject> getList(String userCode, String p) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment