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
8acfe3f3
Commit
8acfe3f3
authored
Jun 17, 2021
by
zhangch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监管机构详情页面相关接口调试
parent
539bf154
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
5 deletions
+30
-5
SuperviseOrganEmpController.java
...tc/governance/controller/SuperviseOrganEmpController.java
+17
-5
SuperviseOrganEmpService.java
...raim/ltc/governance/service/SuperviseOrganEmpService.java
+8
-0
SuperviseOrganServiceImpl.java
...tc/governance/service/impl/SuperviseOrganServiceImpl.java
+5
-0
No files found.
governance/src/main/java/com/hungraim/ltc/governance/controller/SuperviseOrganEmpController.java
View file @
8acfe3f3
...
...
@@ -10,10 +10,7 @@ import com.hungraim.ltc.util.ResultCode;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
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.*
;
/**
* 监管机构及监管机构人员信息管理Controller
...
...
@@ -140,7 +137,7 @@ public class SuperviseOrganEmpController {
* bankAccName 银行开户行名称
* bankNo 银行账号
*/
@
Delete
Mapping
(
"/insertOrUpdateSpvInfo"
)
@
Post
Mapping
(
"/insertOrUpdateSpvInfo"
)
public
Result
insertOrUpdateSpvInfo
(
ChSuperviseOrgan
spvOrgan
)
{
//参数校验
if
(
StringUtils
.
isBlank
(
spvOrgan
.
getOrganId
()))
{
//适用机构id
...
...
@@ -161,4 +158,19 @@ public class SuperviseOrganEmpController {
superviseOrganEmpService
.
insertOrUpdateSpvInfo
(
spvOrgan
);
return
Result
.
success
();
}
/**
* 获取监管机构相关信息
*
* @param spvOrganId 监管机构id
* @return 返回相关信息
*/
@GetMapping
(
"/superviseOrgan"
)
public
Result
<
ChSuperviseOrgan
>
getSuperviseOrgan
(
Long
spvOrganId
)
{
if
(
null
==
spvOrganId
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
ChSuperviseOrgan
superviseOrgan
=
superviseOrganEmpService
.
getSuperviseOrgan
(
spvOrganId
);
return
Result
.
success
(
superviseOrgan
);
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/SuperviseOrganEmpService.java
View file @
8acfe3f3
...
...
@@ -24,4 +24,12 @@ public interface SuperviseOrganEmpService {
void
updateSpvStatus
(
String
spvOrganId
,
Short
isLock
);
void
insertOrUpdateSpvInfo
(
ChSuperviseOrgan
spvOrgan
);
/**
* 获取监管机构相关信息
*
* @param spvOrganId 监管机构id
* @return 返回相关信息
*/
ChSuperviseOrgan
getSuperviseOrgan
(
Long
spvOrganId
);
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SuperviseOrganServiceImpl.java
View file @
8acfe3f3
...
...
@@ -114,4 +114,9 @@ public class SuperviseOrganServiceImpl implements SuperviseOrganEmpService {
superviseOrganMapper
.
insert
(
spvOrgan
);
}
}
@Override
public
ChSuperviseOrgan
getSuperviseOrgan
(
Long
spvOrganId
)
{
return
superviseOrganMapper
.
selectById
(
spvOrganId
);
}
}
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