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
7bca886f
Commit
7bca886f
authored
Dec 16, 2025
by
刘斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 编制计划记录,修改增加校验记录日期
parent
b70f019d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
StaffingPlanRecordsCtrl.java
...ava/com/anplus/hr/controller/StaffingPlanRecordsCtrl.java
+3
-0
StaffingPlanRecordsServImpl.java
...m/anplus/hr/service/impl/StaffingPlanRecordsServImpl.java
+3
-3
No files found.
admin/src/main/java/com/anplus/hr/controller/StaffingPlanRecordsCtrl.java
View file @
7bca886f
...
@@ -89,6 +89,9 @@ public class StaffingPlanRecordsCtrl {
...
@@ -89,6 +89,9 @@ public class StaffingPlanRecordsCtrl {
@PinSysLog
(
value
=
"编制规划记录"
,
businessType
=
BusinessType
.
UPDATE
)
@PinSysLog
(
value
=
"编制规划记录"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
()
@PutMapping
()
public
Response
edit
(
@Validated
(
EditGroup
.
class
)
@RequestBody
StaffingPlanRecordsParam
param
)
{
public
Response
edit
(
@Validated
(
EditGroup
.
class
)
@RequestBody
StaffingPlanRecordsParam
param
)
{
if
(!
staffingPlanRecordsServ
.
checkRecordDateUnique
(
param
))
{
return
Response
.
buildFailure
(
ResultCode
.
FAIL
.
getCode
(),
"新增编制规划'"
+
param
.
getRecordDate
()
+
"'失败,记录时间已存在"
);
}
return
ResponseUtils
.
ofResult
(
staffingPlanRecordsServ
.
updateByParam
(
param
));
return
ResponseUtils
.
ofResult
(
staffingPlanRecordsServ
.
updateByParam
(
param
));
}
}
...
...
admin/src/main/java/com/anplus/hr/service/impl/StaffingPlanRecordsServImpl.java
View file @
7bca886f
...
@@ -94,9 +94,9 @@ public class StaffingPlanRecordsServImpl extends ServiceImpl<StaffingPlanRecords
...
@@ -94,9 +94,9 @@ public class StaffingPlanRecordsServImpl extends ServiceImpl<StaffingPlanRecords
StaffingPlanRecords
staffingPlanRecords
=
MapstructUtils
.
convert
(
param
,
StaffingPlanRecords
.
class
);
StaffingPlanRecords
staffingPlanRecords
=
MapstructUtils
.
convert
(
param
,
StaffingPlanRecords
.
class
);
String
recordDate
=
staffingPlanRecords
.
getRecordDate
();
String
recordDate
=
staffingPlanRecords
.
getRecordDate
();
Integer
recordYear
=
Convert
.
toInt
(
recordDate
);
Integer
recordYear
=
Convert
.
toInt
(
recordDate
);
staffingPlanRecords
.
setLastYearTitle
(
StrUtil
.
sub
Pre
((
recordYear
-
1
)
+
"年编制"
,
2
));
staffingPlanRecords
.
setLastYearTitle
(
StrUtil
.
sub
Suf
((
recordYear
-
1
)
+
"年编制"
,
2
));
staffingPlanRecords
.
setCurrentYearTitle
(
StrUtil
.
sub
Pre
(
recordDate
+
"年编制"
,
2
));
staffingPlanRecords
.
setCurrentYearTitle
(
StrUtil
.
sub
Suf
(
recordDate
+
"年编制"
,
2
));
staffingPlanRecords
.
setNextYearTitle
(
StrUtil
.
sub
Pre
((
recordYear
+
1
)
+
"年编制"
,
2
));
staffingPlanRecords
.
setNextYearTitle
(
StrUtil
.
sub
Suf
((
recordYear
+
1
)
+
"年编制"
,
2
));
return
this
.
save
(
staffingPlanRecords
);
return
this
.
save
(
staffingPlanRecords
);
}
}
...
...
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