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
a4e0b506
Commit
a4e0b506
authored
Jul 05, 2020
by
yangshuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整成绩规则,默认排序
parent
1ee67fa6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
13 deletions
+19
-13
RoadService.java
...a/com/dlbridge/jadp/plugins/cmpt/service/RoadService.java
+3
-6
scoreSetting.jsp
src/main/webapp/WEB-INF/views/cmpt/scoreSetting.jsp
+6
-6
menu.jsp
src/main/webapp/WEB-INF/views/common/menu.jsp
+3
-0
road-new.js
src/main/webapp/static/js/road-new.js
+7
-1
No files found.
src/main/java/com/dlbridge/jadp/plugins/cmpt/service/RoadService.java
View file @
a4e0b506
...
@@ -6,7 +6,6 @@ import com.dlbridge.jadp.plugins.cmpt.bean.RoadGpsPoint;
...
@@ -6,7 +6,6 @@ import com.dlbridge.jadp.plugins.cmpt.bean.RoadGpsPoint;
import
com.dlbridge.jadp.plugins.cmpt.dao.mapper.RoadMapper
;
import
com.dlbridge.jadp.plugins.cmpt.dao.mapper.RoadMapper
;
import
com.dlbridge.jadp.plugins.cmpt.utils.gps.GpxParserUtil
;
import
com.dlbridge.jadp.plugins.cmpt.utils.gps.GpxParserUtil
;
import
com.dlbridge.jadp.plugins.cmpt.utils.gps.KmlParserUtil
;
import
com.dlbridge.jadp.plugins.cmpt.utils.gps.KmlParserUtil
;
import
lombok.extern.log4j.Log4j
;
import
lombok.extern.log4j.Log4j2
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -50,8 +49,7 @@ public class RoadService {
...
@@ -50,8 +49,7 @@ public class RoadService {
log
.
info
(
"RoadService api接口 getName:"
+
road
.
getName
()
+
" getRoadId:"
+
road
.
getRoadId
()
+
" getFileName:"
+
road
.
getFileName
()
+
" getFileUrl:"
+
road
.
getFileUrl
());
log
.
info
(
"RoadService api接口 getName:"
+
road
.
getName
()
+
" getRoadId:"
+
road
.
getRoadId
()
+
" getFileName:"
+
road
.
getFileName
()
+
" getFileUrl:"
+
road
.
getFileUrl
());
}
}
List
<
Road
>
localRoads
=
roadMapper
.
queryRoads
(
cmptId
);
List
<
Road
>
localRoads
=
roadMapper
.
queryRoads
(
cmptId
);
for
(
Road
road
:
for
(
Road
road
:
localRoads
)
{
localRoads
)
{
log
.
info
(
"RoadService 数据库接口 getName:"
+
road
.
getName
()
+
" getRoadId:"
+
road
.
getRoadId
()
+
" getFileName:"
+
road
.
getFileName
()
+
" getFileUrl:"
+
road
.
getFileUrl
());
log
.
info
(
"RoadService 数据库接口 getName:"
+
road
.
getName
()
+
" getRoadId:"
+
road
.
getRoadId
()
+
" getFileName:"
+
road
.
getFileName
()
+
" getFileUrl:"
+
road
.
getFileUrl
());
}
}
for
(
Road
road
:
roads
)
{
// 更新 插入操作
for
(
Road
road
:
roads
)
{
// 更新 插入操作
...
@@ -73,11 +71,10 @@ public class RoadService {
...
@@ -73,11 +71,10 @@ public class RoadService {
}
}
}
}
for
(
Road
road
:
for
(
Road
road
:
localRoads
)
{
localRoads
)
{
log
.
info
(
"RoadService 接口和api更新后数据 getName:"
+
road
.
getName
()
+
" getRoadId:"
+
road
.
getRoadId
()
+
" getFileName:"
+
road
.
getFileName
()
+
" getFileUrl:"
+
road
.
getFileUrl
());
log
.
info
(
"RoadService 接口和api更新后数据 getName:"
+
road
.
getName
()
+
" getRoadId:"
+
road
.
getRoadId
()
+
" getFileName:"
+
road
.
getFileName
()
+
" getFileUrl:"
+
road
.
getFileUrl
());
}
}
return
localRoads
;
return
roadMapper
.
queryRoads
(
cmptId
)
;
}
}
/**
/**
...
...
src/main/webapp/WEB-INF/views/cmpt/scoreSetting.jsp
View file @
a4e0b506
...
@@ -109,12 +109,12 @@
...
@@ -109,12 +109,12 @@
<input
type=
"radio"
name=
"rule"
value=
"2"
${
currentRuleType =
=
2
?
'
checked
'
:
''}
>
<input
type=
"radio"
name=
"rule"
value=
"2"
${
currentRuleType =
=
2
?
'
checked
'
:
''}
>
<span
style=
"font-size:20px;color: #333;margin-left: 75px;"
>
允许记录多次成绩,取所有成绩中的最佳成绩作为最终成绩。
</span>
<span
style=
"font-size:20px;color: #333;margin-left: 75px;"
>
允许记录多次成绩,取所有成绩中的最佳成绩作为最终成绩。
</span>
</div>
</div>
<
div
class=
"setting-item
"
>
<
c:if
test=
"
${
cmpt
.
cmptType
!=
7
}
"
>
<
input
type=
"radio"
name=
"rule"
value=
"1"
${
currentRuleType =
=
1
?
'
checked
'
:
''}
>
<
div
class=
"setting-item"
>
<span
style=
"font-size:20px;color: #333;margin-left: 75px;"
>
允许记录多次成绩,取所有成绩之和,即总跑量,作为最终成绩。
</span
>
<input
type=
"radio"
name=
"rule"
value=
"1"
${
currentRuleType =
=
1
?
'
checked
'
:
''}
>
</div
>
<span
style=
"font-size:20px;color: #333;margin-left: 75px;"
>
允许记录多次成绩,取所有成绩之和,即总跑量,作为最终成绩。
</span
>
</div>
</c:if>
</div>
</div>
</div>
</div>
...
...
src/main/webapp/WEB-INF/views/common/menu.jsp
View file @
a4e0b506
<%@ page
language=
"java"
contentType=
"text/html; charset=utf-8"
pageEncoding=
"utf-8"
%>
<%@ page
language=
"java"
contentType=
"text/html; charset=utf-8"
pageEncoding=
"utf-8"
%>
<%@ taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%>
<style>
<style>
.menu-txt
{
.menu-txt
{
font-size
:
18px
;
font-size
:
18px
;
...
@@ -217,12 +218,14 @@
...
@@ -217,12 +218,14 @@
<span
class=
"menu-txt"
>
相册设置
</span>
<span
class=
"menu-txt"
>
相册设置
</span>
</a>
</a>
</li>
</li>
<li
class=
"rule menu-sub-item"
>
<li
class=
"rule menu-sub-item"
>
<a
href=
"/gk/rule/index/${cmpt.cmptId}?uId=${uId}&cId=${cId}×tamp=${timestamp}&sign=${sign}"
>
<a
href=
"/gk/rule/index/${cmpt.cmptId}?uId=${uId}&cId=${cId}×tamp=${timestamp}&sign=${sign}"
>
<span
class=
"left-arrow"
></span>
<span
class=
"left-arrow"
></span>
<span
class=
"menu-txt"
>
成绩规则
</span>
<span
class=
"menu-txt"
>
成绩规则
</span>
</a>
</a>
</li>
</li>
<li
class=
"review menu-sub-item"
>
<li
class=
"review menu-sub-item"
>
<a
href=
"/gk/review/index/${cmpt.cmptId}?uId=${uId}&cId=${cId}×tamp=${timestamp}&sign=${sign}"
>
<a
href=
"/gk/review/index/${cmpt.cmptId}?uId=${uId}&cId=${cId}×tamp=${timestamp}&sign=${sign}"
>
<span
class=
"left-arrow"
></span>
<span
class=
"left-arrow"
></span>
...
...
src/main/webapp/static/js/road-new.js
View file @
a4e0b506
...
@@ -35,15 +35,17 @@ $(document).ready(function () {
...
@@ -35,15 +35,17 @@ $(document).ready(function () {
var
obj
=
$
(
this
);
var
obj
=
$
(
this
);
var
param
=
[];
var
param
=
[];
var
flag
=
true
;
var
flag
=
true
;
var
timerCount
=
0
;
$
.
each
(
$
(
'.markers-edit .marker'
),
function
(
i
,
e
)
{
$
.
each
(
$
(
'.markers-edit .marker'
),
function
(
i
,
e
)
{
var
obj
=
{};
var
obj
=
{};
obj
.
checkpointId
=
$
(
e
).
attr
(
'data-checkpointid'
);
obj
.
checkpointId
=
$
(
e
).
attr
(
'data-checkpointid'
);
obj
.
distance
=
$
(
e
).
find
(
'input[type=number]'
).
val
();
obj
.
distance
=
$
(
e
).
find
(
'input[type=number]'
).
val
();
obj
.
isTime
=
$
(
e
).
find
(
'input[type=checkbox]'
).
get
(
0
).
checked
;
obj
.
isTime
=
$
(
e
).
find
(
'input[type=checkbox]'
).
get
(
0
).
checked
;
obj
.
name
=
$
(
e
).
find
(
'input[type=text]'
).
val
();
obj
.
name
=
$
(
e
).
find
(
'input[type=text]'
).
val
();
if
(
obj
.
isTime
)
timerCount
++
;
if
(
obj
.
isTime
&&
!
obj
.
distance
&&
obj
.
distance
<=
0
){
if
(
obj
.
isTime
&&
!
obj
.
distance
&&
obj
.
distance
<=
0
){
flag
=
false
;
flag
=
false
;
layer
.
msg
(
'请用计时点的里程,为必填项,请填入合法数据'
);
layer
.
msg
(
'请用计时点的里程,为必填项,请填入合法数据'
,{
icon
:
5
}
);
console
.
log
(
obj
)
console
.
log
(
obj
)
return
true
;
return
true
;
}
}
...
@@ -51,6 +53,10 @@ $(document).ready(function () {
...
@@ -51,6 +53,10 @@ $(document).ready(function () {
param
.
push
(
obj
);
param
.
push
(
obj
);
})
})
if
(
timerCount
<
3
){
layer
.
msg
(
'保存用于计时的打卡点不能少于三个!'
,{
icon
:
5
});
return
;
}
if
(
flag
){
if
(
flag
){
$
.
ajax
({
$
.
ajax
({
url
:
'/gk/road/saveCheckPoint'
,
url
:
'/gk/road/saveCheckPoint'
,
...
...
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