Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
Overview
Overview
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
huluobin
gogirl-miniapp-backend
Commits
a77a7c1d
Commit
a77a7c1d
authored
Apr 07, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台访问请求头
parent
be56b461
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
GetTechnicianPageRequest.java
...n/java/com/gogirl/dto/admin/GetTechnicianPageRequest.java
+2
-0
Schedule.java
...ain/java/com/gogirl/infrastructure/schedule/Schedule.java
+6
-3
No files found.
src/main/java/com/gogirl/dto/admin/GetTechnicianPageRequest.java
View file @
a77a7c1d
...
...
@@ -42,4 +42,6 @@ public class GetTechnicianPageRequest {
private
List
<
LocalDateTime
>
date_utc
;
private
Integer
technician_id
;
}
src/main/java/com/gogirl/infrastructure/schedule/Schedule.java
View file @
a77a7c1d
...
...
@@ -48,7 +48,9 @@ import lombok.AllArgsConstructor;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.core.ParameterizedTypeReference
;
import
org.springframework.http.HttpEntity
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.HttpMethod
;
import
org.springframework.http.MediaType
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
...
...
@@ -362,8 +364,9 @@ public class Schedule {
.
status
(
1
)
.
technician_id
(
storeTechnician
.
getId
())
.
build
();
HttpEntity
<
GetTechnicianPageRequest
>
allHttpEntity
=
new
HttpEntity
<>(
allRequest
);
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
setContentType
(
MediaType
.
APPLICATION_JSON
);
HttpEntity
<
GetTechnicianPageRequest
>
allHttpEntity
=
new
HttpEntity
<>(
allRequest
,
headers
);
AdminTechnicianScore
monthAdminResult
=
restTemplate
.
exchange
(
gogirlProperties
.
getAdminBackendUrl
(),
HttpMethod
.
POST
,
allHttpEntity
,
responseBodyType
)
.
getBody
()
...
...
@@ -384,7 +387,7 @@ public class Schedule {
.
technician_id
(
storeTechnician
.
getId
())
.
build
();
HttpEntity
<
GetTechnicianPageRequest
>
monthHttpEntity
=
new
HttpEntity
<>(
monthRequest
);
HttpEntity
<
GetTechnicianPageRequest
>
monthHttpEntity
=
new
HttpEntity
<>(
monthRequest
,
headers
);
AdminTechnicianScore
allAdminResult
=
restTemplate
.
exchange
(
gogirlProperties
.
getAdminBackendUrl
(),
HttpMethod
.
POST
,
monthHttpEntity
,
responseBodyType
)
.
getBody
()
...
...
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