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
1fee7b49
Commit
1fee7b49
authored
Mar 06, 2025
by
luben
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-lb' into 'dev'
Dev lb See merge request
!28
parents
2a1494fa
5b8c2cfa
Changes
5
Show 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 @
1fee7b49
...
@@ -59,8 +59,15 @@ public class Labels implements Serializable {
...
@@ -59,8 +59,15 @@ public class Labels implements Serializable {
private
String
ylzd5
;
private
String
ylzd5
;
//适用范围
private
String
scope
;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
public
String
getScope
(){
return
scope
;}
public
void
setScope
(
String
scope
){
this
.
scope
=
scope
;}
public
String
getId
()
{
public
String
getId
()
{
return
id
;
return
id
;
}
}
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/other/LabelsExample.java
View file @
1fee7b49
...
@@ -598,6 +598,11 @@ public class LabelsExample implements Serializable {
...
@@ -598,6 +598,11 @@ public class LabelsExample implements Serializable {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andScopeLike
(
String
value
)
{
addCriterion
(
"scope like"
,
value
,
"scope"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd1IsNull
()
{
public
Criteria
andYlzd1IsNull
()
{
addCriterion
(
"ylzd1 is null"
);
addCriterion
(
"ylzd1 is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/other/vo/LabelsVO.java
View file @
1fee7b49
...
@@ -11,6 +11,11 @@ public class LabelsVO {
...
@@ -11,6 +11,11 @@ public class LabelsVO {
private
String
code
;
private
String
code
;
private
Integer
pageNum
;
private
Integer
pageNum
;
private
Integer
pageSize
;
private
Integer
pageSize
;
private
String
scope
;
public
String
getScope
(){
return
scope
;}
public
void
setScope
(
String
scope
){
this
.
scope
=
scope
;}
public
String
getId
()
{
public
String
getId
()
{
return
Id
;
return
Id
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/other/LabelsFacadeService.java
View file @
1fee7b49
...
@@ -86,6 +86,7 @@ public class LabelsFacadeService {
...
@@ -86,6 +86,7 @@ public class LabelsFacadeService {
bsCommon
.
setParentId
(
body
.
getParentId
());
bsCommon
.
setParentId
(
body
.
getParentId
());
bsCommon
.
setIsValid
(
body
.
getIsValid
());
bsCommon
.
setIsValid
(
body
.
getIsValid
());
bsCommon
.
setSort
(
body
.
getSort
());
bsCommon
.
setSort
(
body
.
getSort
());
bsCommon
.
setScope
(
body
.
getScope
());
bsCommon
.
setYlzd1
(
body
.
getYlzd1
());
bsCommon
.
setYlzd1
(
body
.
getYlzd1
());
bsCommon
.
setYlzd2
(
body
.
getYlzd2
());
bsCommon
.
setYlzd2
(
body
.
getYlzd2
());
bsCommon
.
setYlzd3
(
body
.
getYlzd3
());
bsCommon
.
setYlzd3
(
body
.
getYlzd3
());
...
@@ -200,12 +201,25 @@ public class LabelsFacadeService {
...
@@ -200,12 +201,25 @@ public class LabelsFacadeService {
if
(
StringUtils
.
isNotBlank
(
bsCommonVO
.
getCode
())){
if
(
StringUtils
.
isNotBlank
(
bsCommonVO
.
getCode
())){
criteria
.
andCodeLike
(
"%"
+
bsCommonVO
.
getCode
()+
"%"
);
criteria
.
andCodeLike
(
"%"
+
bsCommonVO
.
getCode
()+
"%"
);
}
}
// if(StringUtils.isNotBlank(bsCommonVO.getScope())){
// criteria.andScopeLike("%"+bsCommonVO.getScope()+"%");
// }
}
}
bsCommonExample
.
setOrderByClause
(
" sort + 0 "
);
bsCommonExample
.
setOrderByClause
(
" sort + 0 "
);
List
<
Labels
>
bsCommons
=
bsCommonService
.
selectByExample
(
bsCommonExample
);
List
<
Labels
>
bsCommons
=
bsCommonService
.
selectByExample
(
bsCommonExample
);
List
<
Map
<
String
,
Object
>>
jsTreeModels
=
convertFrBomsCommon
(
bsCommons
);
List
<
Map
<
String
,
Object
>>
jsTreeModels
=
convertFrBomsCommon
(
bsCommons
);
if
(
bsCommonVO
==
null
||
StringUtils
.
isBlank
(
bsCommonVO
.
getScope
())){
return
AjaxResult
.
success
(
"success"
,
jsTreeModels
);
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
)
{
private
List
<
Map
<
String
,
Object
>>
convertFrBomsCommon
(
List
<
Labels
>
bsCommons
)
{
List
<
Map
<
String
,
Object
>>
models
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
models
=
new
ArrayList
<>();
...
@@ -221,6 +235,7 @@ public class LabelsFacadeService {
...
@@ -221,6 +235,7 @@ public class LabelsFacadeService {
model
.
put
(
"parentId"
,
bsCommon
.
getParentId
());
model
.
put
(
"parentId"
,
bsCommon
.
getParentId
());
model
.
put
(
"isValid"
,
bsCommon
.
getIsValid
());
model
.
put
(
"isValid"
,
bsCommon
.
getIsValid
());
model
.
put
(
"sort"
,
bsCommon
.
getSort
());
model
.
put
(
"sort"
,
bsCommon
.
getSort
());
model
.
put
(
"scope"
,
bsCommon
.
getScope
());
List
<
Map
<
String
,
Object
>>
childrenDocTypes
=
convertFromWgCodeByParent
(
bsCommons
,
bsCommon
.
getId
());
List
<
Map
<
String
,
Object
>>
childrenDocTypes
=
convertFromWgCodeByParent
(
bsCommons
,
bsCommon
.
getId
());
model
.
put
(
"child"
,
childrenDocTypes
);
model
.
put
(
"child"
,
childrenDocTypes
);
models
.
add
(
model
);
models
.
add
(
model
);
...
...
ruoyi-system/src/main/resources/mapper/other/LabelsMapper.xml
View file @
1fee7b49
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
<result
column=
"parent_id"
jdbcType=
"VARCHAR"
property=
"parentId"
/>
<result
column=
"parent_id"
jdbcType=
"VARCHAR"
property=
"parentId"
/>
<result
column=
"is_valid"
jdbcType=
"VARCHAR"
property=
"isValid"
/>
<result
column=
"is_valid"
jdbcType=
"VARCHAR"
property=
"isValid"
/>
<result
column=
"sort"
jdbcType=
"VARCHAR"
property=
"sort"
/>
<result
column=
"sort"
jdbcType=
"VARCHAR"
property=
"sort"
/>
<result
column=
"scope"
jdbcType=
"VARCHAR"
property=
"scope"
/>
<result
column=
"ylzd1"
jdbcType=
"VARCHAR"
property=
"ylzd1"
/>
<result
column=
"ylzd1"
jdbcType=
"VARCHAR"
property=
"ylzd1"
/>
<result
column=
"ylzd2"
jdbcType=
"VARCHAR"
property=
"ylzd2"
/>
<result
column=
"ylzd2"
jdbcType=
"VARCHAR"
property=
"ylzd2"
/>
<result
column=
"ylzd3"
jdbcType=
"VARCHAR"
property=
"ylzd3"
/>
<result
column=
"ylzd3"
jdbcType=
"VARCHAR"
property=
"ylzd3"
/>
...
@@ -75,7 +76,7 @@
...
@@ -75,7 +76,7 @@
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, code, name, description, parent_id, is_valid, sort, ylzd1, ylzd2, ylzd3,
id, code, name, description, parent_id, is_valid, sort, ylzd1, ylzd2, ylzd3,
ylzd4, ylzd5
ylzd4, ylzd5
, scope
</sql>
</sql>
<select
id=
"selectByExample"
parameterType=
"com.ruoyi.system.domain.other.BsCommonExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByExample"
parameterType=
"com.ruoyi.system.domain.other.BsCommonExample"
resultMap=
"BaseResultMap"
>
select
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