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
2fe919b6
Commit
2fe919b6
authored
Nov 01, 2021
by
若依
Committed by
Gitee
Nov 01, 2021
Browse files
Options
Browse Files
Download
Plain Diff
!361 优化一些布尔判断语法
Merge pull request !361 from 清溪先生/master
parents
2eb55528
13c770b6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
ruoyi-common/src/main/java/com/ruoyi/common/utils/html/HTMLFilter.java
...src/main/java/com/ruoyi/common/utils/html/HTMLFilter.java
+1
-1
ruoyi-common/src/main/java/com/ruoyi/common/utils/uuid/UUID.java
...ommon/src/main/java/com/ruoyi/common/utils/uuid/UUID.java
+4
-4
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java
...ava/com/ruoyi/system/service/impl/SysDeptServiceImpl.java
+3
-3
No files found.
ruoyi-common/src/main/java/com/ruoyi/common/utils/html/HTMLFilter.java
View file @
2fe919b6
...
@@ -332,7 +332,7 @@ public final class HTMLFilter
...
@@ -332,7 +332,7 @@ public final class HTMLFilter
final
String
name
=
m
.
group
(
1
).
toLowerCase
();
final
String
name
=
m
.
group
(
1
).
toLowerCase
();
if
(
allowed
(
name
))
if
(
allowed
(
name
))
{
{
if
(
false
==
inArray
(
name
,
vSelfClosingTags
))
if
(
!
inArray
(
name
,
vSelfClosingTags
))
{
{
if
(
vTagCounts
.
containsKey
(
name
))
if
(
vTagCounts
.
containsKey
(
name
))
{
{
...
...
ruoyi-common/src/main/java/com/ruoyi/common/utils/uuid/UUID.java
View file @
2fe919b6
...
@@ -343,25 +343,25 @@ public final class UUID implements java.io.Serializable, Comparable<UUID>
...
@@ -343,25 +343,25 @@ public final class UUID implements java.io.Serializable, Comparable<UUID>
final
StringBuilder
builder
=
new
StringBuilder
(
isSimple
?
32
:
36
);
final
StringBuilder
builder
=
new
StringBuilder
(
isSimple
?
32
:
36
);
// time_low
// time_low
builder
.
append
(
digits
(
mostSigBits
>>
32
,
8
));
builder
.
append
(
digits
(
mostSigBits
>>
32
,
8
));
if
(
false
==
isSimple
)
if
(
!
isSimple
)
{
{
builder
.
append
(
'-'
);
builder
.
append
(
'-'
);
}
}
// time_mid
// time_mid
builder
.
append
(
digits
(
mostSigBits
>>
16
,
4
));
builder
.
append
(
digits
(
mostSigBits
>>
16
,
4
));
if
(
false
==
isSimple
)
if
(
!
isSimple
)
{
{
builder
.
append
(
'-'
);
builder
.
append
(
'-'
);
}
}
// time_high_and_version
// time_high_and_version
builder
.
append
(
digits
(
mostSigBits
,
4
));
builder
.
append
(
digits
(
mostSigBits
,
4
));
if
(
false
==
isSimple
)
if
(
!
isSimple
)
{
{
builder
.
append
(
'-'
);
builder
.
append
(
'-'
);
}
}
// variant_and_sequence
// variant_and_sequence
builder
.
append
(
digits
(
leastSigBits
>>
48
,
4
));
builder
.
append
(
digits
(
leastSigBits
>>
48
,
4
));
if
(
false
==
isSimple
)
if
(
!
isSimple
)
{
{
builder
.
append
(
'-'
);
builder
.
append
(
'-'
);
}
}
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java
View file @
2fe919b6
...
@@ -140,7 +140,7 @@ public class SysDeptServiceImpl implements ISysDeptService
...
@@ -140,7 +140,7 @@ public class SysDeptServiceImpl implements ISysDeptService
public
boolean
hasChildByDeptId
(
Long
deptId
)
public
boolean
hasChildByDeptId
(
Long
deptId
)
{
{
int
result
=
deptMapper
.
hasChildByDeptId
(
deptId
);
int
result
=
deptMapper
.
hasChildByDeptId
(
deptId
);
return
result
>
0
?
true
:
false
;
return
result
>
0
;
}
}
/**
/**
...
@@ -153,7 +153,7 @@ public class SysDeptServiceImpl implements ISysDeptService
...
@@ -153,7 +153,7 @@ public class SysDeptServiceImpl implements ISysDeptService
public
boolean
checkDeptExistUser
(
Long
deptId
)
public
boolean
checkDeptExistUser
(
Long
deptId
)
{
{
int
result
=
deptMapper
.
checkDeptExistUser
(
deptId
);
int
result
=
deptMapper
.
checkDeptExistUser
(
deptId
);
return
result
>
0
?
true
:
false
;
return
result
>
0
;
}
}
/**
/**
...
@@ -325,6 +325,6 @@ public class SysDeptServiceImpl implements ISysDeptService
...
@@ -325,6 +325,6 @@ public class SysDeptServiceImpl implements ISysDeptService
*/
*/
private
boolean
hasChild
(
List
<
SysDept
>
list
,
SysDept
t
)
private
boolean
hasChild
(
List
<
SysDept
>
list
,
SysDept
t
)
{
{
return
getChildList
(
list
,
t
).
size
()
>
0
?
true
:
false
;
return
getChildList
(
list
,
t
).
size
()
>
0
;
}
}
}
}
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