Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yichengstreet-be
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yichengstreet
yichengstreet-be
Commits
7a340506
Commit
7a340506
authored
Mar 06, 2025
by
luben
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'main'
Dev See merge request
!29
parents
33c95ee7
1fee7b49
Pipeline
#142929
failed with stages
in 2 minutes and 41 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
2 deletions
+35
-2
Labels.java
...m/src/main/java/com/ruoyi/system/domain/other/Labels.java
+7
-0
LabelsExample.java
...ain/java/com/ruoyi/system/domain/other/LabelsExample.java
+5
-0
LabelsVO.java
.../main/java/com/ruoyi/system/domain/other/vo/LabelsVO.java
+5
-0
LabelsFacadeService.java
...a/com/ruoyi/system/service/other/LabelsFacadeService.java
+16
-1
LabelsMapper.xml
...i-system/src/main/resources/mapper/other/LabelsMapper.xml
+2
-1
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/other/Labels.java
View file @
7a340506
...
...
@@ -59,8 +59,15 @@ public class Labels implements Serializable {
private
String
ylzd5
;
//适用范围
private
String
scope
;
private
static
final
long
serialVersionUID
=
1L
;
public
String
getScope
(){
return
scope
;}
public
void
setScope
(
String
scope
){
this
.
scope
=
scope
;}
public
String
getId
()
{
return
id
;
}
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/other/LabelsExample.java
View file @
7a340506
...
...
@@ -598,6 +598,11 @@ public class LabelsExample implements Serializable {
return
(
Criteria
)
this
;
}
public
Criteria
andScopeLike
(
String
value
)
{
addCriterion
(
"scope like"
,
value
,
"scope"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd1IsNull
()
{
addCriterion
(
"ylzd1 is null"
);
return
(
Criteria
)
this
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/other/vo/LabelsVO.java
View file @
7a340506
...
...
@@ -11,6 +11,11 @@ public class LabelsVO {
private
String
code
;
private
Integer
pageNum
;
private
Integer
pageSize
;
private
String
scope
;
public
String
getScope
(){
return
scope
;}
public
void
setScope
(
String
scope
){
this
.
scope
=
scope
;}
public
String
getId
()
{
return
Id
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/other/LabelsFacadeService.java
View file @
7a340506
...
...
@@ -86,6 +86,7 @@ public class LabelsFacadeService {
bsCommon
.
setParentId
(
body
.
getParentId
());
bsCommon
.
setIsValid
(
body
.
getIsValid
());
bsCommon
.
setSort
(
body
.
getSort
());
bsCommon
.
setScope
(
body
.
getScope
());
bsCommon
.
setYlzd1
(
body
.
getYlzd1
());
bsCommon
.
setYlzd2
(
body
.
getYlzd2
());
bsCommon
.
setYlzd3
(
body
.
getYlzd3
());
...
...
@@ -200,11 +201,24 @@ public class LabelsFacadeService {
if
(
StringUtils
.
isNotBlank
(
bsCommonVO
.
getCode
())){
criteria
.
andCodeLike
(
"%"
+
bsCommonVO
.
getCode
()+
"%"
);
}
// if(StringUtils.isNotBlank(bsCommonVO.getScope())){
// criteria.andScopeLike("%"+bsCommonVO.getScope()+"%");
// }
}
bsCommonExample
.
setOrderByClause
(
" sort + 0 "
);
List
<
Labels
>
bsCommons
=
bsCommonService
.
selectByExample
(
bsCommonExample
);
List
<
Map
<
String
,
Object
>>
jsTreeModels
=
convertFrBomsCommon
(
bsCommons
);
return
AjaxResult
.
success
(
"success"
,
jsTreeModels
);
if
(
bsCommonVO
==
null
||
StringUtils
.
isBlank
(
bsCommonVO
.
getScope
())){
return
AjaxResult
.
success
(
"success"
,
jsTreeModels
);
}
List
<
Map
<
String
,
Object
>>
res
=
new
ArrayList
<>();
for
(
Map
<
String
,
Object
>
map
:
jsTreeModels
)
{
String
scope
=
(
String
)
map
.
get
(
"scope"
);
if
(
scope
.
contains
(
bsCommonVO
.
getScope
())){
res
.
add
(
map
);
}
}
return
AjaxResult
.
success
(
"success"
,
res
);
}
private
List
<
Map
<
String
,
Object
>>
convertFrBomsCommon
(
List
<
Labels
>
bsCommons
)
{
...
...
@@ -221,6 +235,7 @@ public class LabelsFacadeService {
model
.
put
(
"parentId"
,
bsCommon
.
getParentId
());
model
.
put
(
"isValid"
,
bsCommon
.
getIsValid
());
model
.
put
(
"sort"
,
bsCommon
.
getSort
());
model
.
put
(
"scope"
,
bsCommon
.
getScope
());
List
<
Map
<
String
,
Object
>>
childrenDocTypes
=
convertFromWgCodeByParent
(
bsCommons
,
bsCommon
.
getId
());
model
.
put
(
"child"
,
childrenDocTypes
);
models
.
add
(
model
);
...
...
ruoyi-system/src/main/resources/mapper/other/LabelsMapper.xml
View file @
7a340506
...
...
@@ -9,6 +9,7 @@
<result
column=
"parent_id"
jdbcType=
"VARCHAR"
property=
"parentId"
/>
<result
column=
"is_valid"
jdbcType=
"VARCHAR"
property=
"isValid"
/>
<result
column=
"sort"
jdbcType=
"VARCHAR"
property=
"sort"
/>
<result
column=
"scope"
jdbcType=
"VARCHAR"
property=
"scope"
/>
<result
column=
"ylzd1"
jdbcType=
"VARCHAR"
property=
"ylzd1"
/>
<result
column=
"ylzd2"
jdbcType=
"VARCHAR"
property=
"ylzd2"
/>
<result
column=
"ylzd3"
jdbcType=
"VARCHAR"
property=
"ylzd3"
/>
...
...
@@ -75,7 +76,7 @@
</sql>
<sql
id=
"Base_Column_List"
>
id, code, name, description, parent_id, is_valid, sort, ylzd1, ylzd2, ylzd3,
ylzd4, ylzd5
ylzd4, ylzd5
, scope
</sql>
<select
id=
"selectByExample"
parameterType=
"com.ruoyi.system.domain.other.BsCommonExample"
resultMap=
"BaseResultMap"
>
select
...
...
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