Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
govdna
Project
Project
Details
Activity
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
开发共享交流平台
govdna
Commits
31ad8778
Commit
31ad8778
authored
6 years ago
by
Fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
are update
parent
bbe8cb75
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
7 deletions
+4
-7
AreaController.java
...com/govmade/modules/system/controller/AreaController.java
+1
-1
DepartController.java
...m/govmade/modules/system/controller/DepartController.java
+2
-2
AreaEntity.java
...in/java/com/govmade/modules/system/entity/AreaEntity.java
+0
-2
AreaServiceImpl.java
.../govmade/modules/system/service/impl/AreaServiceImpl.java
+1
-2
No files found.
src/main/java/com/govmade/modules/system/controller/AreaController.java
View file @
31ad8778
package
com
.
govmade
.
modules
.
system
.
controller
;
package
com
.
govmade
.
modules
.
system
.
controller
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.Set
;
...
@@ -10,6 +9,7 @@ import org.springframework.web.bind.annotation.GetMapping;
...
@@ -10,6 +9,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.govmade.common.utils.PageUtils
;
import
com.govmade.common.utils.PageUtils
;
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/govmade/modules/system/controller/DepartController.java
View file @
31ad8778
package
com
.
govmade
.
modules
.
system
.
controller
;
package
com
.
govmade
.
modules
.
system
.
controller
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Set
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
@@ -63,7 +63,7 @@ public class DepartController extends AbstractController{
...
@@ -63,7 +63,7 @@ public class DepartController extends AbstractController{
/**
/**
*
批量
删除部门
* 删除部门
*
*
* @param ids
* @param ids
* @return
* @return
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/govmade/modules/system/entity/AreaEntity.java
View file @
31ad8778
...
@@ -32,8 +32,6 @@ public class AreaEntity extends BaseEntity<Long>{
...
@@ -32,8 +32,6 @@ public class AreaEntity extends BaseEntity<Long>{
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
List
<
AreaEntity
>
children
;
private
List
<
AreaEntity
>
children
;
public
Long
getPid
()
{
public
Long
getPid
()
{
return
pid
;
return
pid
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/govmade/modules/system/service/impl/AreaServiceImpl.java
View file @
31ad8778
...
@@ -28,8 +28,7 @@ public class AreaServiceImpl extends ServiceImpl<AreaDao,AreaEntity> implements
...
@@ -28,8 +28,7 @@ public class AreaServiceImpl extends ServiceImpl<AreaDao,AreaEntity> implements
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
String
name
=
(
String
)
params
.
get
(
"name"
);
String
name
=
(
String
)
params
.
get
(
"name"
);
List
<
AreaEntity
>
allList
=
this
.
baseMapper
.
listTree
(
name
);
List
<
AreaEntity
>
list
=
buildAreaTree
(
this
.
baseMapper
.
listTree
(
name
),
0
);
List
<
AreaEntity
>
list
=
buildAreaTree
(
allList
,
0
);
Page
<
AreaEntity
>
page
=
new
Page
<
AreaEntity
>();
Page
<
AreaEntity
>
page
=
new
Page
<
AreaEntity
>();
page
.
setRecords
(
list
);
page
.
setRecords
(
list
);
return
new
PageUtils
(
page
);
return
new
PageUtils
(
page
);
...
...
This diff is collapsed.
Click to expand it.
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