Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
zlmy-cloud
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
zlmy
zlmy-cloud
Commits
7f25b1ba
Commit
7f25b1ba
authored
May 29, 2025
by
鲁鸿波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
值班导入日期格式问题
parent
b9d3c53a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
DutyServiceImpl.java
.../com/testor/module/duty/service/impl/DutyServiceImpl.java
+12
-1
No files found.
zlmy-modules/zlmy-boot/src/main/java/com/testor/module/duty/service/impl/DutyServiceImpl.java
View file @
7f25b1ba
...
...
@@ -1260,7 +1260,18 @@ public class DutyServiceImpl extends ServiceImpl<DutyDao, TSysDuty> implements D
@SneakyThrows
public
Person
saveDuty
(
Map
<
Integer
,
Object
>
item
,
TSysDuty
duty
,
SysOrg
sysOrg
,
UserInfo
loginUser
,
String
monthId
)
{
TSysDuty
tSysDuty
=
BeanHelper
.
beanToBean
(
duty
,
TSysDuty
.
class
);
String
dateStr
=
item
.
get
(
2
)
+
"-"
+
item
.
get
(
3
)
+
"-"
+
item
.
get
(
4
);
String
month
=
item
.
get
(
3
)+
""
;
String
day
=
item
.
get
(
4
)+
""
;
if
(
month
.
length
()
==
1
)
{
month
=
"0"
+
month
;
}
// Add leading zero to day if it's a single digit
if
(
day
.
length
()
==
1
)
{
day
=
"0"
+
day
;
}
String
dateStr
=
item
.
get
(
2
)
+
"-"
+
month
+
"-"
+
day
;
//String dateStr = item.get(2) + "-" + item.get(3) + "-" + item.get(4);
tSysDuty
.
setDutyDate
(
dateStr
);
tSysDuty
.
setClasses
(
item
.
get
(
6
).
toString
());
String
id
=
IdHelper
.
getId32bit
();
...
...
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