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 fa86790f
authored
Aug 04, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
当前用户信息获取test
1 parent
8e99b457
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
project-order/src/main/java/com/dituhui/pea/order/controller/EngineerCalendarController.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerCalendarServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/controller/EngineerCalendarController.java
View file @
fa86790
...
...
@@ -7,10 +7,9 @@ import com.dituhui.pea.order.service.EngineerCalendarService;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
@Slf4j
@RestController
...
...
@@ -20,6 +19,9 @@ public class EngineerCalendarController {
@Autowired
EngineerCalendarService
engineerCalendarService
;
@Autowired
private
HttpServletRequest
request
;
@GetMapping
(
"/engineer/calendar"
)
public
Result
<?>
getEngineerCalendar
(
@Validated
EngineerCalendarDTO
.
Request
reqDTO
)
{
Result
<?>
res
=
null
;
...
...
@@ -44,6 +46,7 @@ public class EngineerCalendarController {
@GetMapping
(
"/engineer/calendar/plan/detail"
)
public
Result
<?>
getCalendarPlanDetail
(
@Validated
CalendarDetailDTO
.
Request
reqDTO
)
{
log
.
info
(
"==== request ===> {}"
,
request
);
Result
<?>
res
=
null
;
try
{
res
=
engineerCalendarService
.
getPlanDetail
(
reqDTO
);
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerCalendarServiceImpl.java
View file @
fa86790
...
...
@@ -108,6 +108,9 @@ public class EngineerCalendarServiceImpl implements EngineerCalendarService {
rs
.
setTypeName
(
entity
.
getReason
());
rs
.
setStartTime
(
DateUtils
.
formatDateTime
(
entity
.
getStartTime
()));
rs
.
setEndTime
(
DateUtils
.
formatDateTime
(
entity
.
getEndTime
()));
rs
.
setRemark
(
entity
.
getMemo
());
// todo 操作员
// rs.setOperator()
return
Result
.
success
(
rs
);
}
...
...
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