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
e5aa87a6
Commit
e5aa87a6
authored
Jan 13, 2023
by
maqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改校验srvOrganEmpVo.getEmpTypeId()
parent
a1e08d62
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
SrvOrganController.java
.../java/com/hungraim/ltc/controller/SrvOrganController.java
+8
-4
SrvOrganEmpServiceImpl.java
...com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
+5
-1
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/controller/SrvOrganController.java
View file @
e5aa87a6
...
...
@@ -244,10 +244,14 @@ public class SrvOrganController {
*/
@PostMapping
(
"/srvOrganEmp"
)
public
Result
saveOrUpdateSrvOrganEmp
(
SrvOrganEmpVo
srvOrganEmpVo
)
{
if
(
null
==
srvOrganEmpVo
.
getOrganId
()
||
null
==
srvOrganEmpVo
.
getSrvOrganId
()
||
StrUtil
.
isBlank
(
srvOrganEmpVo
.
getEmpName
())
||
StrUtil
.
isBlank
(
srvOrganEmpVo
.
getCertifType
())
||
StrUtil
.
isBlank
(
srvOrganEmpVo
.
getCertifNum
())
||
StrUtil
.
isBlank
(
srvOrganEmpVo
.
getGender
())
||
null
==
srvOrganEmpVo
.
getAge
()
||
StrUtil
.
isBlank
(
srvOrganEmpVo
.
getMobilePhone
())
if
(
null
==
srvOrganEmpVo
.
getOrganId
()
||
null
==
srvOrganEmpVo
.
getSrvOrganId
()
||
StrUtil
.
isBlank
(
srvOrganEmpVo
.
getEmpName
())
||
StrUtil
.
isBlank
(
srvOrganEmpVo
.
getCertifType
())
||
StrUtil
.
isBlank
(
srvOrganEmpVo
.
getCertifNum
())
||
StrUtil
.
isBlank
(
srvOrganEmpVo
.
getGender
())
||
null
==
srvOrganEmpVo
.
getAge
()
||
StrUtil
.
isBlank
(
srvOrganEmpVo
.
getMobilePhone
())
||
null
==
srvOrganEmpVo
.
getEmpType
()
||
null
==
srvOrganEmpVo
.
getEduId
())
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
View file @
e5aa87a6
...
...
@@ -76,11 +76,15 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
SrvOrganEmpVo
srvOrganEmpVo
=
new
SrvOrganEmpVo
();
ChSrvOrganEmp
chSrvOrganEmp
=
chSrvOrganEmpMapper
.
selectById
(
empId
);
Long
empTypeId
=
chSrvOrganEmp
.
getEmpTypeId
();
if
(
empTypeId
!=
null
){
ChCfgSrvEmpType
chCfgSrvEmpType
=
srvEmpTypeMapper
.
selectById
(
empTypeId
);
srvOrganEmpVo
.
setEmpCateId
(
chCfgSrvEmpType
.
getEmpCateId
());
}
else
{
srvOrganEmpVo
.
setEmpCateId
(
0
);
}
Long
srvOrganId
=
chSrvOrganEmp
.
getSrvOrganId
();
ChSrvOrgan
chSrvOrgan
=
srvOrganMapper
.
selectById
(
srvOrganId
);
BeanUtils
.
copyProperties
(
chSrvOrganEmp
,
srvOrganEmpVo
);
srvOrganEmpVo
.
setEmpCateId
(
chCfgSrvEmpType
.
getEmpCateId
());
srvOrganEmpVo
.
setUnifiedSocialCreditCode
(
chSrvOrgan
.
getUnifiedSocialCreditCode
());
try
{
Result
<
List
<
ChFndAttach
>>
listResult
=
attachFeignService
.
selectAttachs
(
empId
,
AttachType
.
SRV_ORGAN_EMP
.
getUploadType
());
...
...
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