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
539bf154
Commit
539bf154
authored
Jun 17, 2021
by
zhangch
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://129.211.99.254:8088/hg-hubin/long-tern-care-service
parents
9df49315
91e6aad5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
AprOrganController.java
...ungraim/ltc/governance/controller/AprOrganController.java
+18
-0
AprOrganService.java
.../com/hungraim/ltc/governance/service/AprOrganService.java
+2
-0
AprOrganServiceImpl.java
...raim/ltc/governance/service/impl/AprOrganServiceImpl.java
+8
-0
No files found.
governance/src/main/java/com/hungraim/ltc/governance/controller/AprOrganController.java
View file @
539bf154
...
@@ -4,8 +4,11 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -4,8 +4,11 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.hungraim.ltc.governance.service.AprOrganService
;
import
com.hungraim.ltc.governance.service.AprOrganService
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganVO
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.ResultCode
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
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.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -41,4 +44,19 @@ public class AprOrganController {
...
@@ -41,4 +44,19 @@ public class AprOrganController {
return
Result
.
success
(
page
);
return
Result
.
success
(
page
);
}
}
/**
* 更改评定机构状态
*
* @param aprOrganId 监管机构id
* @param status 状态 有效:0;失效:1
*/
@DeleteMapping
(
"/updateAprOrganStatus"
)
public
Result
updateAprOrganStatus
(
String
aprOrganId
,
Short
status
)
{
if
(
StringUtils
.
isBlank
(
aprOrganId
)
||
status
==
null
||
(
status
!=
1
&&
status
!=
0
))
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
aprOrganService
.
updateAprOrganStatus
(
aprOrganId
,
status
);
return
Result
.
success
();
}
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/AprOrganService.java
View file @
539bf154
...
@@ -12,4 +12,6 @@ import org.springframework.stereotype.Service;
...
@@ -12,4 +12,6 @@ import org.springframework.stereotype.Service;
@Service
@Service
public
interface
AprOrganService
{
public
interface
AprOrganService
{
Page
<
AprOrganVO
>
aprOrganList
(
Page
<
AprOrganVO
>
page
,
Long
organId
,
Boolean
isIncluded
,
String
organName
,
String
code
);
Page
<
AprOrganVO
>
aprOrganList
(
Page
<
AprOrganVO
>
page
,
Long
organId
,
Boolean
isIncluded
,
String
organName
,
String
code
);
void
updateAprOrganStatus
(
String
aprOrganId
,
Short
status
);
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/AprOrganServiceImpl.java
View file @
539bf154
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.hungraim.ltc.api.OrganFeignService
;
import
com.hungraim.ltc.api.OrganFeignService
;
import
com.hungraim.ltc.governance.dao.AprOrganMapper
;
import
com.hungraim.ltc.governance.dao.AprOrganMapper
;
import
com.hungraim.ltc.governance.service.AprOrganService
;
import
com.hungraim.ltc.governance.service.AprOrganService
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChAprOrgan
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganVO
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
...
@@ -34,4 +35,11 @@ public class AprOrganServiceImpl implements AprOrganService {
...
@@ -34,4 +35,11 @@ public class AprOrganServiceImpl implements AprOrganService {
}
}
return
aprOrganMapper
.
aprOrganList
(
page
,
organIds
,
organName
,
code
);
return
aprOrganMapper
.
aprOrganList
(
page
,
organIds
,
organName
,
code
);
}
}
@Override
public
void
updateAprOrganStatus
(
String
aprOrganId
,
Short
status
)
{
ChAprOrgan
chAprOrgan
=
aprOrganMapper
.
selectById
(
aprOrganId
);
chAprOrgan
.
setStatus
(
status
);
aprOrganMapper
.
updateById
(
chAprOrgan
);
}
}
}
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