Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
Project
Project
Details
Activity
Releases
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
micro_app
gk
Commits
2345c41a
Commit
2345c41a
authored
Apr 30, 2020
by
yangshuxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
b2a6e626
525d6b71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
RemoteService.java
...com/dlbridge/jadp/plugins/cmpt/service/RemoteService.java
+1
-2
MicroApiController.java
...om/dlbridge/jadp/plugins/cmpt/web/MicroApiController.java
+3
-2
No files found.
src/main/java/com/dlbridge/jadp/plugins/cmpt/service/RemoteService.java
View file @
2345c41a
...
@@ -330,9 +330,8 @@ public class RemoteService {
...
@@ -330,9 +330,8 @@ public class RemoteService {
HashMap
<
String
,
String
>
resultMap
=
new
HashMap
<
String
,
String
>();
HashMap
<
String
,
String
>
resultMap
=
new
HashMap
<
String
,
String
>();
ResponseEntity
<
String
>
forEntity
=
restTemplate
.
getForEntity
(
timerURL
+
"/cmpt/recordUpload.do?cmptId="
+
cmptId
+
"&records="
+
records
,
String
.
class
);
ResponseEntity
<
String
>
forEntity
=
restTemplate
.
getForEntity
(
timerURL
+
"/cmpt/recordUpload.do?cmptId="
+
cmptId
+
"&records="
+
records
,
String
.
class
);
if
(
forEntity
.
getStatusCode
()
==
HttpStatus
.
OK
)
{
if
(
forEntity
.
getStatusCode
()
==
HttpStatus
.
OK
)
{
List
<
RoadStatistic
>
users
=
new
ArrayList
<>();
String
resultString
=
forEntity
.
getBody
();
String
resultString
=
forEntity
.
getBody
();
log
.
info
(
"
报名
的信息:"
+
resultString
);
log
.
info
(
"
上传成绩
的信息:"
+
resultString
);
/**
/**
* 返回值:
* 返回值:
* {"message":"00011230001122000000","status":"success"}
* {"message":"00011230001122000000","status":"success"}
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/MicroApiController.java
View file @
2345c41a
...
@@ -969,13 +969,14 @@ public class MicroApiController {
...
@@ -969,13 +969,14 @@ public class MicroApiController {
* @param scoreTime
* @param scoreTime
* @return
* @return
*/
*/
@
Pos
tMapping
(
value
=
"/uploadGpsCheckPointScore/{cmptId}/{markNo}/{checkPointId}/{scoreTime}"
)
@
Ge
tMapping
(
value
=
"/uploadGpsCheckPointScore/{cmptId}/{markNo}/{checkPointId}/{scoreTime}"
)
@ApiResponses
({
@ApiResponses
({
@ApiResponse
(
code
=
-
1
,
message
=
"失败"
),
@ApiResponse
(
code
=
-
1
,
message
=
"失败"
),
@ApiResponse
(
code
=
200
,
message
=
"成功"
,
response
=
Result
.
class
)})
@ApiResponse
(
code
=
200
,
message
=
"成功"
,
response
=
Result
.
class
)})
@ApiOperation
(
value
=
"带经纬度坐标的打卡点上传成绩"
,
notes
=
"带经纬度坐标的打卡点上传成绩"
,
response
=
Result
.
class
,
tags
=
"带经纬度坐标的打卡点上传成绩"
)
@ApiOperation
(
value
=
"带经纬度坐标的打卡点上传成绩"
,
notes
=
"带经纬度坐标的打卡点上传成绩"
,
response
=
Result
.
class
,
tags
=
"带经纬度坐标的打卡点上传成绩"
)
public
Result
uploadGpsCheckPointScore
(
@PathVariable
(
"cmptId"
)
int
cmptId
,
@PathVariable
(
"markNo"
)
String
markNo
,
@PathVariable
(
"checkPointId"
)
int
checkPointId
,
@PathVariable
(
"scoreTime"
)
String
scoreTime
){
public
Result
uploadGpsCheckPointScore
(
@PathVariable
(
"cmptId"
)
int
cmptId
,
@PathVariable
(
"markNo"
)
String
markNo
,
@PathVariable
(
"checkPointId"
)
int
checkPointId
,
@PathVariable
(
"scoreTime"
)
String
scoreTime
){
String
records
=
markNo
+
","
+
scoreTime
+
",2,"
+
checkPointId
;
String
records
=
markNo
+
","
+
scoreTime
+
",1,"
+
checkPointId
;
log
.
info
(
"上传成绩的记录="
+
records
);
HashMap
<
String
,
String
>
results
=
remoteService
.
uploadGpsCheckpointScore
(
cmptId
,
records
);
HashMap
<
String
,
String
>
results
=
remoteService
.
uploadGpsCheckpointScore
(
cmptId
,
records
);
if
(
results
.
isEmpty
())
{
if
(
results
.
isEmpty
())
{
...
...
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