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
2d11c98b
Commit
2d11c98b
authored
Jun 01, 2020
by
yangshuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
292f37b3
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
28 additions
and
18 deletions
+28
-18
CmptScoreRuleMapper.xml
...idge/jadp/plugins/cmpt/dao/mapper/CmptScoreRuleMapper.xml
+4
-3
FuncSettingMapper.xml
...bridge/jadp/plugins/cmpt/dao/mapper/FuncSettingMapper.xml
+4
-3
RemoteService.java
...com/dlbridge/jadp/plugins/cmpt/service/RemoteService.java
+1
-1
MicroApiController.java
...om/dlbridge/jadp/plugins/cmpt/web/MicroApiController.java
+4
-1
ScoreController.java
...a/com/dlbridge/jadp/plugins/cmpt/web/ScoreController.java
+5
-0
score.jsp
src/main/webapp/WEB-INF/views/cmpt/score.jsp
+0
-1
score.js
src/main/webapp/static/js/score.js
+4
-4
score_review.js
src/main/webapp/static/js/score_review.js
+5
-4
ContextTest.java
src/test/java/com/dlbridge/jadp/ContextTest.java
+1
-1
No files found.
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/mapper/CmptScoreRuleMapper.xml
View file @
2d11c98b
...
@@ -142,8 +142,9 @@
...
@@ -142,8 +142,9 @@
</select>
</select>
<update
id=
"deleteBatch"
>
<update
id=
"deleteBatch"
>
update gk_cmpt_score_rule_scoreinfo
update gk_cmpt_score_rule_scoreinfo a
set isDelete=1,updateTime=now()
left join gk_cmpt_score_field_value b on a.cmptId=b.cmptId and a.mark_no=b.markNo and a.rule_id=b.rule_id
where cmptId=#{cmptId} and insertTime >= #{start} and #{end} >= insertTime
set a.isDelete=1, a.updateTime=now(),b.isDelete=1,b.updateTime=now()
where a.cmptId=#{cmptId} and a.insertTime >= #{start} and #{end} >= a.insertTime
</update>
</update>
</mapper>
</mapper>
\ No newline at end of file
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/mapper/FuncSettingMapper.xml
View file @
2d11c98b
...
@@ -42,9 +42,10 @@
...
@@ -42,9 +42,10 @@
</update>
</update>
<select
id=
"getSettingByCmptId"
resultType=
"com.dlbridge.jadp.plugins.cmpt.bean.FuncSetting"
>
<select
id=
"getSettingByCmptId"
resultType=
"com.dlbridge.jadp.plugins.cmpt.bean.FuncSetting"
>
select cmpt_id cmptId,switch_mobile mobile,
select cmpt_id cmptId,ifnull(switch_mobile,0) mobile,
switch_countdown countdown,switch_customer customer,
ifnull(switch_countdown,0) countdown,ifnull(switch_customer,0) customer,
switch_news news,switch_banner banner,news_alias newsAlias,switch_mileage mileage,switch_scoreReview switchScoreReview
ifnull(switch_news ,0) news,ifnull(switch_banner,0) banner,ifnull(news_alias,0) newsAlias,
ifnull(switch_mileage,0) mileage,ifnull(switch_scoreReview,0) switchScoreReview
from gk_cmpt_func
from gk_cmpt_func
where cmpt_id=#{cmptId}
where cmpt_id=#{cmptId}
</select>
</select>
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/service/RemoteService.java
View file @
2d11c98b
...
@@ -220,7 +220,7 @@ public class RemoteService {
...
@@ -220,7 +220,7 @@ public class RemoteService {
public
List
<
EnrollUser
>
getAllEnrollUser
(
Integer
cmptId
)
{
public
List
<
EnrollUser
>
getAllEnrollUser
(
Integer
cmptId
)
{
ResponseEntity
<
String
>
forEntity
=
restTemplate
.
getForEntity
(
timerURL
+
"getMarkNo.do?cmptId="
ResponseEntity
<
String
>
forEntity
=
restTemplate
.
getForEntity
(
timerURL
+
"getMarkNo.do?cmptId="
+
cmptId
,
String
.
class
);
+
cmptId
+
"&appId=02001_1.0"
,
String
.
class
);
if
(
forEntity
.
getStatusCode
()
==
HttpStatus
.
OK
)
{
if
(
forEntity
.
getStatusCode
()
==
HttpStatus
.
OK
)
{
String
resultString
=
forEntity
.
getBody
();
String
resultString
=
forEntity
.
getBody
();
JSONObject
object
=
JSONObject
.
parseObject
(
resultString
);
JSONObject
object
=
JSONObject
.
parseObject
(
resultString
);
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/MicroApiController.java
View file @
2d11c98b
...
@@ -909,8 +909,11 @@ public class MicroApiController {
...
@@ -909,8 +909,11 @@ public class MicroApiController {
.
setSubsectionscore
(
score
.
getScore
().
getDuration
()).
setSubsectionMileage
(
mileage
).
setCmptPace
(
cmptPace
)
.
setSubsectionscore
(
score
.
getScore
().
getDuration
()).
setSubsectionMileage
(
mileage
).
setCmptPace
(
cmptPace
)
.
setSubsectionTime
(
subsectionTime
)
.
setSubsectionTime
(
subsectionTime
)
.
setCmptId
(
score
.
getCmptId
()).
setRuleId
(
rule
.
getId
()).
setMarkNo
(
score
.
getMarkNo
()).
setCheckStatus
(
0
);
.
setCmptId
(
score
.
getCmptId
()).
setRuleId
(
rule
.
getId
()).
setMarkNo
(
score
.
getMarkNo
()).
setCheckStatus
(
0
);
if
(
settingByCmptId
.
getSwitchScoreReview
()
==
null
){
settingByCmptId
.
setSwitchScoreReview
(
0
);
}
//如果自动审核开启的话,进行单条成绩的审核处理
//如果自动审核开启的话,进行单条成绩的审核处理
if
(
settingByCmptId
.
getSwitchScoreReview
()==
1
){
if
(
settingByCmptId
.
getSwitchScoreReview
()
!=
null
&&
settingByCmptId
.
getSwitchScoreReview
()
==
1
){
//配速小于2"27不能通过审核
//配速小于2"27不能通过审核
if
(
cmptPace
<=(
float
)
147
/
1000
){
if
(
cmptPace
<=(
float
)
147
/
1000
){
cmptScoreRuleScoreInfo
.
setCheckStatus
(
2
);
cmptScoreRuleScoreInfo
.
setCheckStatus
(
2
);
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/ScoreController.java
View file @
2d11c98b
...
@@ -7,6 +7,7 @@ import com.dlbridge.jadp.plugins.cmpt.service.*;
...
@@ -7,6 +7,7 @@ import com.dlbridge.jadp.plugins.cmpt.service.*;
import
com.dlbridge.jadp.plugins.cmpt.utils.date.DateUtil
;
import
com.dlbridge.jadp.plugins.cmpt.utils.date.DateUtil
;
import
com.neusoft.www.utils.web.Result
;
import
com.neusoft.www.utils.web.Result
;
import
lombok.extern.log4j.Log4j2
;
import
lombok.extern.log4j.Log4j2
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.time.DateUtils
;
import
org.apache.commons.lang3.time.DateUtils
;
import
org.apache.poi.hssf.usermodel.HSSFWorkbook
;
import
org.apache.poi.hssf.usermodel.HSSFWorkbook
;
import
org.apache.poi.ss.usermodel.Row
;
import
org.apache.poi.ss.usermodel.Row
;
...
@@ -448,7 +449,11 @@ public class ScoreController {
...
@@ -448,7 +449,11 @@ public class ScoreController {
}
}
String
start
=
request
.
getParameter
(
"start"
);
String
start
=
request
.
getParameter
(
"start"
);
String
end
=
request
.
getParameter
(
"end"
);
String
end
=
request
.
getParameter
(
"end"
);
if
(
StringUtils
.
isBlank
(
start
)
||
StringUtils
.
isBlank
(
end
)){
return
Result
.
fail
().
setMsg
(
"请选择删除数据的时间范围!"
);
}
int
count
=
cmptScoreRuleService
.
deleteBatch
(
cmptId
,
start
,
end
);
int
count
=
cmptScoreRuleService
.
deleteBatch
(
cmptId
,
start
,
end
);
log
.
info
(
"共删除"
+
count
);
return
Result
.
success
().
setContent
(
count
);
return
Result
.
success
().
setContent
(
count
);
}
}
...
...
src/main/webapp/WEB-INF/views/cmpt/score.jsp
View file @
2d11c98b
...
@@ -102,7 +102,6 @@
...
@@ -102,7 +102,6 @@
<span>
删除
</span>
<span>
删除
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"section"
>
<div
class=
"section"
>
<div
style=
"display: flex;justify-content: space-between"
>
<div
style=
"display: flex;justify-content: space-between"
>
...
...
src/main/webapp/static/js/score.js
View file @
2d11c98b
...
@@ -68,10 +68,10 @@ $(document).ready(function () {
...
@@ -68,10 +68,10 @@ $(document).ready(function () {
url
:
"/gk/score/getScore/"
+
getCId
()
+
"/"
+
param
,
url
:
"/gk/score/getScore/"
+
getCId
()
+
"/"
+
param
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
var
result
=
data
.
content
;
var
result
=
data
.
content
;
if
(
!
result
.
user
){
layer
.
msg
(
"未查到人员信息"
);
$
(
'#data thead'
).
hide
();
$
(
'#data thead'
).
hide
();
$
(
'#score-body'
).
empty
();
$
(
'#score-body'
).
empty
();
if
(
!
result
.
user
){
layer
.
msg
(
"未查到人员信息"
);
return
;
return
;
}
}
if
(
result
.
scores
.
length
>
0
){
if
(
result
.
scores
.
length
>
0
){
...
@@ -212,8 +212,8 @@ $(document).ready(function () {
...
@@ -212,8 +212,8 @@ $(document).ready(function () {
return
;
return
;
}
}
var
value
=
$
(
this
).
val
();
var
value
=
$
(
this
).
val
();
if
(
value
>
10
){
if
(
value
>
=
61
){
layer
.
msg
(
'最多只能设置
9
次!'
);
layer
.
msg
(
'最多只能设置
60
次!'
);
return
;
return
;
}
}
if
(
value
<=
0
){
if
(
value
<=
0
){
...
...
src/main/webapp/static/js/score_review.js
View file @
2d11c98b
...
@@ -160,6 +160,10 @@ var reviewPage = {
...
@@ -160,6 +160,10 @@ var reviewPage = {
score
.
$data
.
reviewCount
.
nopass
=
data
.
total
;
score
.
$data
.
reviewCount
.
nopass
=
data
.
total
;
}
}
reviewPage
.
getStatistic
();
reviewPage
.
getStatistic
();
$
.
each
(
$
(
'input:checked'
),
function
(
i
,
e
)
{
e
.
checked
=
false
})
},
},
complete
:
function
()
{
complete
:
function
()
{
layer
.
closeAll
();
layer
.
closeAll
();
...
@@ -172,7 +176,6 @@ var reviewPage = {
...
@@ -172,7 +176,6 @@ var reviewPage = {
score
.
$data
.
selectedRoadId
score
.
$data
.
selectedRoadId
+
'&ruleId='
+
score
.
$data
.
selectedRuleId
,
+
'&ruleId='
+
score
.
$data
.
selectedRuleId
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
console
.
log
(
data
);
var
result
=
data
.
content
;
var
result
=
data
.
content
;
score
.
$data
.
reviewCount
.
waiting
=
result
.
Unprocessed
;
score
.
$data
.
reviewCount
.
waiting
=
result
.
Unprocessed
;
score
.
$data
.
reviewCount
.
pass
=
result
.
pass
;
score
.
$data
.
reviewCount
.
pass
=
result
.
pass
;
...
@@ -204,7 +207,6 @@ var reviewPage = {
...
@@ -204,7 +207,6 @@ var reviewPage = {
var
param
=
{
cmptId
:
getCId
(),
'checkstatus'
:
score
.
$data
.
param
.
checkstatus
,
var
param
=
{
cmptId
:
getCId
(),
'checkstatus'
:
score
.
$data
.
param
.
checkstatus
,
roadId
:
score
.
$data
.
selectedRoadId
,
ruleId
:
score
.
$data
.
selectedRuleId
,
roadId
:
score
.
$data
.
selectedRoadId
,
ruleId
:
score
.
$data
.
selectedRuleId
,
passedIds
:
passedIds
.
join
(
','
),
noPassedIds
:
noPassedIds
.
join
(
','
)};
passedIds
:
passedIds
.
join
(
','
),
noPassedIds
:
noPassedIds
.
join
(
','
)};
console
.
log
(
JSON
.
stringify
(
param
))
$
.
ajax
({
$
.
ajax
({
url
:
'/gk/scoreReview/uploadCmptScoreRuleScoreInfo'
,
url
:
'/gk/scoreReview/uploadCmptScoreRuleScoreInfo'
,
data
:
param
,
data
:
param
,
...
@@ -213,7 +215,7 @@ var reviewPage = {
...
@@ -213,7 +215,7 @@ var reviewPage = {
},
},
success
:
function
(
data
)
{
success
:
function
(
data
)
{
reviewPage
.
reloadPage
();
reviewPage
.
reloadPage
();
score
.
$data
.
checked
=
!
score
.
$data
.
checked
},
},
complete
:
function
()
{
complete
:
function
()
{
layer
.
closeAll
();
layer
.
closeAll
();
...
@@ -239,7 +241,6 @@ $(document).ready(function () {
...
@@ -239,7 +241,6 @@ $(document).ready(function () {
url
:
"/setting/upSwitchScoreReview/"
+
getCmptId
()
+
"/"
+
status
,
url
:
"/setting/upSwitchScoreReview/"
+
getCmptId
()
+
"/"
+
status
,
type
:
'post'
,
type
:
'post'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
console
.
log
(
data
);
}
}
});
});
...
...
src/test/java/com/dlbridge/jadp/ContextTest.java
View file @
2d11c98b
...
@@ -98,7 +98,7 @@ public class ContextTest {
...
@@ -98,7 +98,7 @@ public class ContextTest {
@Test
@Test
public
void
testA
(){
public
void
testA
(){
List
<
EnrollUser
>
allEnrollUser
=
remoteService
.
getAllEnrollUser
(
12
);
remoteService
.
getAllEnrollUser
(
12
);
cmptScoreRuleScoreInfoService
.
scoreReviewByMarkNo
(
14923
,
"A"
,
1
);
cmptScoreRuleScoreInfoService
.
scoreReviewByMarkNo
(
14923
,
"A"
,
1
);
}
}
...
...
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