Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
an-plus-hr
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
anjia-hr
an-plus-hr
Commits
d1104dad
Commit
d1104dad
authored
Dec 05, 2025
by
刘斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 增加家庭成员5
parent
a55e0959
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
EmployeeBaseInfoForH5Ctrl.java
...a/com/anplus/hr/controller/EmployeeBaseInfoForH5Ctrl.java
+7
-0
EmployeeInfoCtrl.java
.../main/java/com/anplus/hr/controller/EmployeeInfoCtrl.java
+7
-0
EmployeeInfoServImpl.java
...java/com/anplus/hr/service/impl/EmployeeInfoServImpl.java
+1
-1
No files found.
admin/src/main/java/com/anplus/hr/controller/EmployeeBaseInfoForH5Ctrl.java
View file @
d1104dad
...
...
@@ -3,6 +3,7 @@ package com.anplus.hr.controller;
import
cn.dev33.satoken.annotation.SaIgnore
;
import
com.alibaba.cola.dto.Response
;
import
com.anplus.hr.domain.params.EmployeeBaseInfoParam
;
import
com.anplus.hr.domain.params.EmployeeInfoParam
;
import
com.anplus.hr.service.EmployeeInfoServ
;
import
jakarta.annotation.Resource
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
...
@@ -10,6 +11,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
top.binfast.common.core.constant.BusinessType
;
import
top.binfast.common.core.enums.ResultCode
;
import
top.binfast.common.core.util.ResponseUtils
;
import
top.binfast.common.idempotent.annotation.NoRepeatSubmit
;
import
top.binfast.common.log.annotation.PinSysLog
;
...
...
@@ -35,6 +37,11 @@ public class EmployeeBaseInfoForH5Ctrl {
@PinSysLog
(
value
=
"基础员工信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
()
public
Response
addBaseInfo
(
@RequestBody
EmployeeBaseInfoParam
param
)
{
EmployeeInfoParam
employeeInfoParam
=
new
EmployeeInfoParam
();
employeeInfoParam
.
setIdCardNumber
(
param
.
getIdCardNumber
());
if
(
employeeInfoServ
.
checkEmployeeIdCardNumberUnique
(
employeeInfoParam
))
{
return
Response
.
buildFailure
(
ResultCode
.
FAIL
.
getCode
(),
"员工身份证号已存在"
);
}
return
ResponseUtils
.
ofResult
(
employeeInfoServ
.
insertBaseInfoForH5
(
param
));
}
}
admin/src/main/java/com/anplus/hr/controller/EmployeeInfoCtrl.java
View file @
d1104dad
...
...
@@ -27,6 +27,7 @@ import top.binfast.app.biz.sysapi.bean.vo.sysDept.SysDeptDTO;
import
top.binfast.app.biz.sysapi.bean.vo.sysOss.SysOssVo
;
import
top.binfast.common.core.constant.BusinessType
;
import
top.binfast.common.core.enums.ResultCode
;
import
top.binfast.common.core.exception.PlatformException
;
import
top.binfast.common.core.util.ResponseUtils
;
import
top.binfast.common.core.validate.AddGroup
;
import
top.binfast.common.core.validate.EditGroup
;
...
...
@@ -143,6 +144,9 @@ public class EmployeeInfoCtrl {
@PinSysLog
(
value
=
"员工信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
()
public
Response
add
(
@Validated
(
AddGroup
.
class
)
@RequestBody
EmployeeInfoParam
param
)
{
if
(
employeeInfoServ
.
checkEmployeeIdCardNumberUnique
(
param
))
{
return
Response
.
buildFailure
(
ResultCode
.
FAIL
.
getCode
(),
"员工身份证号已存在"
);
}
return
ResponseUtils
.
ofResult
(
employeeInfoServ
.
insertByParam
(
param
));
}
...
...
@@ -154,6 +158,9 @@ public class EmployeeInfoCtrl {
@PinSysLog
(
value
=
"员工信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
()
public
Response
edit
(
@Validated
(
EditGroup
.
class
)
@RequestBody
EmployeeInfoParam
param
)
{
if
(
employeeInfoServ
.
checkEmployeeIdCardNumberUnique
(
param
))
{
return
Response
.
buildFailure
(
ResultCode
.
FAIL
.
getCode
(),
"员工身份证号已存在"
);
}
return
ResponseUtils
.
ofResult
(
employeeInfoServ
.
updateByParam
(
param
));
}
...
...
admin/src/main/java/com/anplus/hr/service/impl/EmployeeInfoServImpl.java
View file @
d1104dad
...
...
@@ -489,7 +489,7 @@ public class EmployeeInfoServImpl extends ServiceImpl<EmployeeInfoMapper, Employ
familyMembersCmdExe
.
updateEmergencyInfo
(
param
.
getFamilyMembers
(),
employeeInfo
);
boolean
flag
=
this
.
updateById
(
employeeInfo
);
if
(
flag
)
{
familyMembersCmdExe
.
update
ByEmployee
(
param
.
getFamilyMembers
(),
employeeInfo
);
familyMembersCmdExe
.
insert
ByEmployee
(
param
.
getFamilyMembers
(),
employeeInfo
);
}
return
flag
;
}
...
...
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