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
35514190
Commit
35514190
authored
Mar 25, 2025
by
luben
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'main'
Dev See merge request
!178
parents
ef39f8bd
984ae5fc
Pipeline
#143584
failed with stages
in 34 minutes and 23 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
0 deletions
+32
-0
RegionController.java
.../java/com/ruoyi/web/controller/grid/RegionController.java
+12
-0
GridRegionDetail.java
...n/java/com/ruoyi/system/domain/grid/GridRegionDetail.java
+9
-0
GridRegionMapper.java
...n/java/com/ruoyi/system/mapper/grid/GridRegionMapper.java
+4
-0
GridRegionMapper.xml
...ystem/src/main/resources/mapper/grid/GridRegionMapper.xml
+7
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/grid/RegionController.java
View file @
35514190
...
...
@@ -940,4 +940,16 @@ public class RegionController extends BaseController {
return
AjaxResult
.
success
(
res
);
}
@RequestMapping
(
value
=
"/getRegionDetail"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
public
AjaxResult
getRegionDetail
(
@RequestParam
(
"id"
)
String
id
)
{
return
AjaxResult
.
success
(
gridRegionMapper
.
getRegionDetail
(
id
));
}
@RequestMapping
(
value
=
"/updateRegionDetail"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
AjaxResult
updateRegionDetail
(
@RequestParam
(
"id"
)
String
id
,
@RequestParam
(
"detail"
)
String
detail
)
{
return
AjaxResult
.
success
(
gridRegionMapper
.
updateRegionDetail
(
id
,
detail
));
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/grid/GridRegionDetail.java
0 → 100644
View file @
35514190
package
com
.
ruoyi
.
system
.
domain
.
grid
;
import
lombok.Data
;
@Data
public
class
GridRegionDetail
{
private
String
id
;
private
String
detail
;
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/grid/GridRegionMapper.java
View file @
35514190
...
...
@@ -65,4 +65,8 @@ public interface GridRegionMapper {
List
<
GridRegion
>
selectAllByIdAndWgType
(
@Param
(
"wgType"
)
String
wgType
,
@Param
(
"wgCode"
)
String
wgCode
);
int
changeTreeNodeNameByCode
(
@Param
(
"code"
)
String
code
,
@Param
(
"name"
)
String
name
);
String
getRegionDetail
(
@Param
(
"id"
)
String
id
);
int
updateRegionDetail
(
@Param
(
"id"
)
String
id
,
@Param
(
"detail"
)
String
detail
);
}
\ No newline at end of file
ruoyi-system/src/main/resources/mapper/grid/GridRegionMapper.xml
View file @
35514190
...
...
@@ -708,6 +708,10 @@
and wg_type = #{wgType}
and wg_code = #{wgCode}
</select>
<select
id=
"getRegionDetail"
resultType=
"java.lang.String"
>
select detail from grid_region
where id = #{id}
</select>
<update
id=
"changeTreeNodeName"
>
update grid_region set wg_name=#{name} where id = #{id}
...
...
@@ -715,5 +719,8 @@
<update
id=
"changeTreeNodeNameByCode"
>
update grid_region set wg_name=#{name} where wg_code = #{code}
</update>
<update
id=
"updateRegionDetail"
>
update grid_region set detail=#{detail} where id = #{id}
</update>
</mapper>
\ No newline at end of file
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