Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
eab1b450
Commit
eab1b450
authored
Jun 13, 2022
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
98fc3078
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
67 deletions
+66
-67
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java
...ava/com/ruoyi/system/service/impl/SysMenuServiceImpl.java
+2
-2
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java
...ava/com/ruoyi/system/service/impl/SysUserServiceImpl.java
+1
-1
ruoyi-ui/babel.config.js
ruoyi-ui/babel.config.js
+2
-2
ruoyi-ui/src/utils/ruoyi.js
ruoyi-ui/src/utils/ruoyi.js
+1
-1
sql/ry_20220613.sql
sql/ry_20220613.sql
+60
-61
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java
View file @
eab1b450
...
...
@@ -259,7 +259,7 @@ public class SysMenuServiceImpl implements ISysMenuService
public
boolean
hasChildByMenuId
(
Long
menuId
)
{
int
result
=
menuMapper
.
hasChildByMenuId
(
menuId
);
return
result
>
0
?
true
:
false
;
return
result
>
0
;
}
/**
...
...
@@ -272,7 +272,7 @@ public class SysMenuServiceImpl implements ISysMenuService
public
boolean
checkMenuExistRole
(
Long
menuId
)
{
int
result
=
roleMenuMapper
.
checkMenuExistRole
(
menuId
);
return
result
>
0
?
true
:
false
;
return
result
>
0
;
}
/**
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java
View file @
eab1b450
...
...
@@ -381,7 +381,7 @@ public class SysUserServiceImpl implements ISysUserService
*/
public
void
insertUserRole
(
SysUser
user
)
{
this
.
insertUserRole
(
user
.
getUserId
,
user
.
getRoleIds
());
this
.
insertUserRole
(
user
.
getUserId
()
,
user
.
getRoleIds
());
}
/**
...
...
ruoyi-ui/babel.config.js
View file @
eab1b450
...
...
@@ -4,7 +4,7 @@ module.exports = {
'
@vue/cli-plugin-babel/preset
'
],
'
env
'
:
{
'
development
'
:
{
'
production
'
:
{
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
'
plugins
'
:
[
'
dynamic-import-node
'
]
...
...
ruoyi-ui/src/utils/ruoyi.js
View file @
eab1b450
...
...
@@ -210,7 +210,7 @@ export function tansParams(params) {
if
(
value
!==
null
&&
value
!==
""
&&
typeof
(
value
)
!==
"
undefined
"
)
{
if
(
typeof
value
===
'
object
'
)
{
for
(
const
key
of
Object
.
keys
(
value
))
{
if
(
value
[
key
]
!==
null
&&
value
!==
""
&&
typeof
(
value
[
key
])
!==
'
undefined
'
)
{
if
(
value
[
key
]
!==
null
&&
value
[
key
]
!==
""
&&
typeof
(
value
[
key
])
!==
'
undefined
'
)
{
let
params
=
propName
+
'
[
'
+
key
+
'
]
'
;
var
subPart
=
encodeURIComponent
(
params
)
+
"
=
"
;
result
+=
subPart
+
encodeURIComponent
(
value
[
key
])
+
"
&
"
;
...
...
sql/ry_202
10908
.sql
→
sql/ry_202
20613
.sql
View file @
eab1b450
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment