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
b5bf95ed
Commit
b5bf95ed
authored
Mar 19, 2025
by
luben
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'main'
Dev See merge request
!153
parents
4d5ab03b
d5255f80
Pipeline
#143439
passed with stages
in 6 minutes and 38 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
MapEntityController.java
...a/com/ruoyi/web/controller/other/MapEntityController.java
+2
-2
MapEntityService.java
...java/com/ruoyi/system/service/other/MapEntityService.java
+1
-1
MapEntityServiceImpl.java
...ruoyi/system/service/other/impl/MapEntityServiceImpl.java
+7
-2
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/other/MapEntityController.java
View file @
b5bf95ed
...
@@ -19,8 +19,8 @@ public class MapEntityController extends BaseController {
...
@@ -19,8 +19,8 @@ public class MapEntityController extends BaseController {
@RequestMapping
(
value
=
"/getAllMapEntities"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getAllMapEntities"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
@ResponseBody
public
List
<
MapEntity
>
getAllMapEntities
()
{
public
List
<
MapEntity
>
getAllMapEntities
(
@RequestParam
(
name
=
"level"
)
String
level
)
{
return
mapEntityService
.
getAllMapEntities
(
);
return
mapEntityService
.
getAllMapEntities
ByLevel
(
level
);
}
}
@RequestMapping
(
value
=
"/getMapEntityById"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getMapEntityById"
,
method
=
RequestMethod
.
GET
)
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/other/MapEntityService.java
View file @
b5bf95ed
...
@@ -6,7 +6,7 @@ import java.util.List;
...
@@ -6,7 +6,7 @@ import java.util.List;
public
interface
MapEntityService
{
public
interface
MapEntityService
{
// 获取所有实体
// 获取所有实体
List
<
MapEntity
>
getAllMapEntities
(
);
List
<
MapEntity
>
getAllMapEntities
ByLevel
(
String
level
);
// 根据 ID 获取实体
// 根据 ID 获取实体
MapEntity
getMapEntityById
(
String
id
);
MapEntity
getMapEntityById
(
String
id
);
// 更新实体
// 更新实体
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/other/impl/MapEntityServiceImpl.java
View file @
b5bf95ed
package
com
.
ruoyi
.
system
.
service
.
other
.
impl
;
package
com
.
ruoyi
.
system
.
service
.
other
.
impl
;
import
cn.hutool.core.lang.UUID
;
import
cn.hutool.core.lang.UUID
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.ruoyi.system.domain.other.MapEntity
;
import
com.ruoyi.system.domain.other.MapEntity
;
import
com.ruoyi.system.mapper.other.MapEntityMapper
;
import
com.ruoyi.system.mapper.other.MapEntityMapper
;
import
com.ruoyi.system.service.other.MapEntityService
;
import
com.ruoyi.system.service.other.MapEntityService
;
...
@@ -16,8 +17,12 @@ public class MapEntityServiceImpl implements MapEntityService {
...
@@ -16,8 +17,12 @@ public class MapEntityServiceImpl implements MapEntityService {
private
MapEntityMapper
mapEntityMapper
;
private
MapEntityMapper
mapEntityMapper
;
@Override
@Override
public
List
<
MapEntity
>
getAllMapEntities
()
{
public
List
<
MapEntity
>
getAllMapEntitiesByLevel
(
String
level
)
{
return
mapEntityMapper
.
selectList
(
null
);
QueryWrapper
<
MapEntity
>
queryWrapper
=
new
QueryWrapper
<>();
if
(
level
!=
null
&&
!
level
.
isEmpty
()){
queryWrapper
.
eq
(
"entity_level"
,
level
);
}
return
mapEntityMapper
.
selectList
(
queryWrapper
);
}
}
@Override
@Override
...
...
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