Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8369dfe3
authored
Jul 13, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
date类型由string2LocalDate
1 parent
fd91bff0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
project-order/src/main/java/com/dituhui/pea/order/controller/ScheduleController.java
project-order/src/main/java/com/dituhui/pea/order/service/ScheduleService.java
project-order/src/main/java/com/dituhui/pea/order/controller/ScheduleController.java
View file @
8369dfe
...
...
@@ -36,8 +36,9 @@ public class ScheduleController {
public
Result
<?>
getScheduleOverview
(
@RequestParam
long
page
,
@RequestParam
long
size
,
@RequestParam
String
date
,
@RequestParam
String
levelType
,
@RequestParam
(
"levelValue"
)
List
<
String
>
levelIds
)
{
Result
<?>
res
=
null
;
LocalDate
localDate
=
TimeUtils
.
IsoDate2LocalDate
(
date
);
try
{
res
=
scheduleService
.
getScheduleOverview
(
page
,
size
,
d
ate
,
levelType
,
levelIds
);
res
=
scheduleService
.
getScheduleOverview
(
page
,
size
,
localD
ate
,
levelType
,
levelIds
);
}
catch
(
BusinessException
e
)
{
return
Result
.
failed
(
e
.
getMessage
());
}
...
...
@@ -47,8 +48,9 @@ public class ScheduleController {
@GetMapping
(
"/schedule/engineer/overview"
)
public
Result
<?>
getScheduleEngineerOverview
(
@RequestParam
String
date
,
@RequestParam
String
engineerCode
)
{
Result
<?>
res
=
null
;
LocalDate
localDate
=
TimeUtils
.
IsoDate2LocalDate
(
date
);
try
{
res
=
scheduleService
.
getScheduleEngineerOverview
(
d
ate
,
engineerCode
);
res
=
scheduleService
.
getScheduleEngineerOverview
(
localD
ate
,
engineerCode
);
}
catch
(
BusinessException
e
)
{
return
Result
.
failed
(
e
.
getMessage
());
}
...
...
project-order/src/main/java/com/dituhui/pea/order/service/ScheduleService.java
View file @
8369dfe
...
...
@@ -9,7 +9,7 @@ public interface ScheduleService {
Result
<?>
getScheduleSummary
(
LocalDate
date
,
String
levelType
,
List
<
String
>
levelIds
);
Result
<?>
getScheduleOverview
(
long
page
,
long
size
,
String
date
,
String
levelType
,
List
<
String
>
levelIds
);
Result
<?>
getScheduleOverview
(
long
page
,
long
size
,
LocalDate
date
,
String
levelType
,
List
<
String
>
levelIds
);
Result
<?>
getScheduleEngineerOverview
(
String
date
,
String
engineerCode
);
Result
<?>
getScheduleEngineerOverview
(
LocalDate
date
,
String
engineerCode
);
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment