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
61706f28
Commit
61706f28
authored
Apr 08, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时任务
parent
386c4f57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
Schedule.java
...ain/java/com/gogirl/infrastructure/schedule/Schedule.java
+7
-4
No files found.
src/main/java/com/gogirl/infrastructure/schedule/Schedule.java
View file @
61706f28
...
@@ -375,7 +375,7 @@ public class Schedule {
...
@@ -375,7 +375,7 @@ public class Schedule {
headers
.
setContentType
(
MediaType
.
APPLICATION_JSON
);
headers
.
setContentType
(
MediaType
.
APPLICATION_JSON
);
HttpEntity
<
GetTechnicianPageRequest
>
allHttpEntity
=
new
HttpEntity
<>(
allRequest
,
headers
);
HttpEntity
<
GetTechnicianPageRequest
>
allHttpEntity
=
new
HttpEntity
<>(
allRequest
,
headers
);
AdminTechnicianScore
month
AdminResult
=
restTemplate
.
exchange
(
gogirlProperties
.
getAdminBackendUrl
(),
HttpMethod
.
POST
,
allHttpEntity
,
responseBodyType
)
AdminTechnicianScore
all
AdminResult
=
restTemplate
.
exchange
(
gogirlProperties
.
getAdminBackendUrl
(),
HttpMethod
.
POST
,
allHttpEntity
,
responseBodyType
)
.
getBody
()
.
getBody
()
.
getData
()
.
getData
()
.
getItems
()
.
getItems
()
...
@@ -394,9 +394,10 @@ public class Schedule {
...
@@ -394,9 +394,10 @@ public class Schedule {
.
technician_id
(
storeTechnician
.
getId
())
.
technician_id
(
storeTechnician
.
getId
())
.
build
();
.
build
();
HttpEntity
<
GetTechnicianPageRequest
>
monthHttpEntity
=
new
HttpEntity
<>(
monthRequest
,
headers
);
HttpEntity
<
GetTechnicianPageRequest
>
monthHttpEntity
=
new
HttpEntity
<>(
monthRequest
,
headers
);
log
.
debug
(
JsonUtilByJackson
.
writeValueAsString
(
monthRequest
));
log
.
debug
(
JsonUtilByJackson
.
writeValueAsString
(
monthRequest
));
AdminTechnicianScore
all
AdminResult
=
restTemplate
.
exchange
(
gogirlProperties
.
getAdminBackendUrl
(),
HttpMethod
.
POST
,
monthHttpEntity
,
responseBodyType
)
AdminTechnicianScore
month
AdminResult
=
restTemplate
.
exchange
(
gogirlProperties
.
getAdminBackendUrl
(),
HttpMethod
.
POST
,
monthHttpEntity
,
responseBodyType
)
.
getBody
()
.
getBody
()
.
getData
()
.
getData
()
.
getItems
()
.
getItems
()
...
@@ -462,8 +463,10 @@ public class Schedule {
...
@@ -462,8 +463,10 @@ public class Schedule {
career
.
setTotalBalanceCardNum
(
allAdminResult
.
getCard_count
());
career
.
setTotalBalanceCardNum
(
allAdminResult
.
getCard_count
());
//总信息录入完整度
//总信息录入完整度
career
.
setTotalInfoPercent
(
allAdminResult
.
getAvg_data_integrity
().
divide
(
new
BigDecimal
(
100
),
2
,
BigDecimal
.
ROUND_HALF_UP
));
BigDecimal
totalInfoPercent
=
allAdminResult
.
getAvg_data_integrity
();
if
(
totalInfoPercent
!=
null
)
{
career
.
setTotalInfoPercent
(
totalInfoPercent
.
divide
(
new
BigDecimal
(
100
),
2
,
BigDecimal
.
ROUND_HALF_UP
));
}
//总订单数
//总订单数
Integer
totalOrderNum
=
careerMapper
.
queryTotalOrderNum
(
storeTechnician
.
getId
(),
month
);
Integer
totalOrderNum
=
careerMapper
.
queryTotalOrderNum
(
storeTechnician
.
getId
(),
month
);
career
.
setTotalOrderNum
(
totalOrderNum
);
career
.
setTotalOrderNum
(
totalOrderNum
);
...
...
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