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
71430389
Commit
71430389
authored
Apr 23, 2022
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校验服务机构是否已存在
parent
91e1ec55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
SrvOrganServiceImpl.java
...va/com/hungraim/ltc/service/impl/SrvOrganServiceImpl.java
+6
-5
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/SrvOrganServiceImpl.java
View file @
71430389
...
@@ -22,7 +22,6 @@ import com.hungraim.ltc.util.ResultCode;
...
@@ -22,7 +22,6 @@ import com.hungraim.ltc.util.ResultCode;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -47,8 +46,7 @@ public class SrvOrganServiceImpl implements SrvOrganService {
...
@@ -47,8 +46,7 @@ public class SrvOrganServiceImpl implements SrvOrganService {
private
final
AttachFeignService
attachFeignService
;
private
final
AttachFeignService
attachFeignService
;
@Autowired
private
final
ChSrvorganRiskLevelMapper
chSrvorganRiskLevelMapper
;
private
ChSrvorganRiskLevelMapper
chSrvorganRiskLevelMapper
;
@Override
@Override
...
@@ -106,9 +104,12 @@ public class SrvOrganServiceImpl implements SrvOrganService {
...
@@ -106,9 +104,12 @@ public class SrvOrganServiceImpl implements SrvOrganService {
// 添加操作
// 添加操作
//校验服务机构是否已存在
//校验服务机构是否已存在
ChSrvOrgan
selectOrgan
=
srvOrganMapper
.
selectOne
(
new
LambdaQueryWrapper
<
ChSrvOrgan
>()
ChSrvOrgan
selectOrgan
=
srvOrganMapper
.
selectOne
(
new
LambdaQueryWrapper
<
ChSrvOrgan
>()
.
eq
(
ChSrvOrgan:
:
get
OrganId
,
srvOrganVo
.
getOrganId
())
.
eq
(
ChSrvOrgan:
:
get
UnifiedSocialCreditCode
,
srvOrganVo
.
getUnifiedSocialCreditCode
())
.
eq
(
ChSrvOrgan:
:
getStatus
,
0
));
.
eq
(
ChSrvOrgan:
:
getStatus
,
0
));
if
(
selectOrgan
!=
null
)
{
ChSrvOrgan
selectOrgan1
=
srvOrganMapper
.
selectOne
(
new
LambdaQueryWrapper
<
ChSrvOrgan
>()
.
eq
(
ChSrvOrgan:
:
getPermitId
,
srvOrganVo
.
getPermitId
())
.
eq
(
ChSrvOrgan:
:
getStatus
,
0
));
if
(
selectOrgan
!=
null
||
selectOrgan1
!=
null
)
{
throw
new
RuntimeException
(
"服务机构已存在,请不要重复添加"
);
throw
new
RuntimeException
(
"服务机构已存在,请不要重复添加"
);
}
}
chSrvOrgan
.
setStatus
(
0
);
chSrvOrgan
.
setStatus
(
0
);
...
...
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