Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
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
hubin
long-tern-care-service
Commits
c93df271
Commit
c93df271
authored
Mar 08, 2022
by
liuxun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge
parent
4929aca2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
OrganController.java
...ain/java/com/hungraim/ltc/controller/OrganController.java
+5
-1
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/controller/OrganController.java
View file @
c93df271
...
@@ -4,12 +4,15 @@ import com.hungraim.ltc.service.OrganService;
...
@@ -4,12 +4,15 @@ import com.hungraim.ltc.service.OrganService;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.ResultCode
;
import
com.hungraim.ltc.util.ResultCode
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
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
java.util.List
;
import
java.util.List
;
@Slf4j
@RestController
@RestController
@RequestMapping
(
"/api.apply/organ"
)
@RequestMapping
(
"/api.apply/organ"
)
@AllArgsConstructor
@AllArgsConstructor
...
@@ -26,10 +29,11 @@ public class OrganController {
...
@@ -26,10 +29,11 @@ public class OrganController {
* @return 返回一个ids集合
* @return 返回一个ids集合
*/
*/
@GetMapping
(
"/child"
)
@GetMapping
(
"/child"
)
public
Result
<
List
<
Long
>>
getOrganChild
(
Long
organId
,
Boolean
isInvolveChild
)
{
public
Result
<
List
<
Long
>>
getOrganChild
(
@RequestParam
(
"organId"
)
Long
organId
,
@RequestParam
(
"isInvolveChild"
)
Boolean
isInvolveChild
)
{
if
(
null
==
organId
||
null
==
isInvolveChild
)
{
if
(
null
==
organId
||
null
==
isInvolveChild
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
}
log
.
info
(
"getOrganChild:{},{}"
,
organId
,
isInvolveChild
);
return
Result
.
success
(
organService
.
getOrganIds
(
organId
,
isInvolveChild
));
return
Result
.
success
(
organService
.
getOrganIds
(
organId
,
isInvolveChild
));
}
}
}
}
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