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
8eb732d2
Commit
8eb732d2
authored
Apr 20, 2022
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统允许新增两条一模一样的数据,正常应该报错
parent
29177879
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
DisableController.java
...n/java/com/hungraim/ltc/controller/DisableController.java
+8
-0
SrvOrganController.java
.../java/com/hungraim/ltc/controller/SrvOrganController.java
+5
-1
SrvOrganServiceImpl.java
...va/com/hungraim/ltc/service/impl/SrvOrganServiceImpl.java
+8
-1
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/controller/DisableController.java
View file @
8eb732d2
...
@@ -236,6 +236,14 @@ public class DisableController {
...
@@ -236,6 +236,14 @@ public class DisableController {
}
}
/**
/**
* 获取审核人信息
*/
@RequestMapping
(
"/disableExamine"
)
public
Result
getReviewer
()
{
return
Result
.
success
();
}
/**
* 修改失能申请
* 修改失能申请
*/
*/
@RequestMapping
(
"/updateDisable"
)
@RequestMapping
(
"/updateDisable"
)
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/controller/SrvOrganController.java
View file @
8eb732d2
...
@@ -88,7 +88,11 @@ public class SrvOrganController {
...
@@ -88,7 +88,11 @@ public class SrvOrganController {
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
}
// 参数校验通过,调用service添加护理机构
// 参数校验通过,调用service添加护理机构
srvOrganService
.
saveOrUpdateSrvOrgan
(
srvOrganVo
);
try
{
srvOrganService
.
saveOrUpdateSrvOrgan
(
srvOrganVo
);
}
catch
(
RuntimeException
e
)
{
return
Result
.
failed
(
e
.
getMessage
());
}
return
Result
.
success
();
return
Result
.
success
();
}
}
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/SrvOrganServiceImpl.java
View file @
8eb732d2
package
com
.
hungraim
.
ltc
.
service
.
impl
;
package
com
.
hungraim
.
ltc
.
service
.
impl
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.baomidou.mybatisplus.core.
metadata.OrderItem
;
import
com.baomidou.mybatisplus.core.
conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.api.AttachFeignService
;
import
com.hungraim.ltc.api.AttachFeignService
;
import
com.hungraim.ltc.dao.*
;
import
com.hungraim.ltc.dao.*
;
...
@@ -104,6 +104,13 @@ public class SrvOrganServiceImpl implements SrvOrganService {
...
@@ -104,6 +104,13 @@ public class SrvOrganServiceImpl implements SrvOrganService {
}
}
}
else
{
}
else
{
// 添加操作
// 添加操作
//校验服务机构是否已存在
ChSrvOrgan
selectOrgan
=
srvOrganMapper
.
selectOne
(
new
LambdaQueryWrapper
<
ChSrvOrgan
>()
.
eq
(
ChSrvOrgan:
:
getOrganId
,
srvOrganVo
.
getOrganId
())
.
eq
(
ChSrvOrgan:
:
getStatus
,
0
));
if
(
selectOrgan
!=
null
)
{
throw
new
RuntimeException
(
"服务机构已存在,请不要重复添加"
);
}
chSrvOrgan
.
setStatus
(
0
);
chSrvOrgan
.
setStatus
(
0
);
chSrvOrgan
.
setEffTime
(
new
Date
());
chSrvOrgan
.
setEffTime
(
new
Date
());
srvOrganMapper
.
insert
(
chSrvOrgan
);
srvOrganMapper
.
insert
(
chSrvOrgan
);
...
...
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