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
3124ec5a
Commit
3124ec5a
authored
Dec 22, 2022
by
chenlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
赛客现场助手不显示 '2022-12-12 22:20:00' 以后创建的赛事
parent
b8e83f37
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
6 deletions
+10
-6
CmptMapper.xml
.../com/dlbridge/jadp/plugins/cmpt/dao/mapper/CmptMapper.xml
+3
-0
CmptService.java
...a/com/dlbridge/jadp/plugins/cmpt/service/CmptService.java
+4
-4
CmptController.java
...va/com/dlbridge/jadp/plugins/cmpt/web/CmptController.java
+2
-2
MicroApiController.java
...om/dlbridge/jadp/plugins/cmpt/web/MicroApiController.java
+1
-0
layers.png
src/main/webapp/static/leaflet/images/layers.png
+0
-0
marker-icon-2x.png
src/main/webapp/static/leaflet/images/marker-icon-2x.png
+0
-0
marker-icon.png
src/main/webapp/static/leaflet/images/marker-icon.png
+0
-0
marker-shadow.png
src/main/webapp/static/leaflet/images/marker-shadow.png
+0
-0
No files found.
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/mapper/CmptMapper.xml
View file @
3124ec5a
...
...
@@ -184,6 +184,9 @@
AND c.createUserId NOT IN (SELECT user_id from gksite.gk_app_info WHERE user_id>0)
and a.cmpt_status = 2
</if>
<if
test=
"param.partnerId == 'PRODF4E96E99A2B48AEA' "
>
AND '2022-12-12 22:20:00' > a.create_date
</if>
</sql>
<update
id=
"updateCmpt"
>
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/service/CmptService.java
View file @
3124ec5a
...
...
@@ -156,16 +156,16 @@ public class CmptService {
public
Page
<
List
<
Cmpt
>>
queryCmpt
(
Pageable
page
,
Map
<
String
,
String
>
param
)
{
long
start
=
System
.
currentTimeMillis
();
long
count
=
cmptMapper
.
countCount
(
param
);
log
.
info
(
"耗时1:"
+(
System
.
currentTimeMillis
()-
start
));
//
log.info("耗时1:"+(System.currentTimeMillis()-start));
List
<
Cmpt
>
list
=
cmptMapper
.
queryCmpt
(
page
,
param
);
log
.
info
(
"耗时2:"
+(
System
.
currentTimeMillis
()-
start
));
//
log.info("耗时2:"+(System.currentTimeMillis()-start));
list
.
forEach
(
cmpt
->
{
Object
o
=
valueOperations
.
get
(
"gk:view:"
+
cmpt
.
getCmptId
());
if
(
o
!=
null
){
cmpt
.
setView
((
Integer
)
o
);
}
log
.
info
(
"耗时3:"
+(
System
.
currentTimeMillis
()-
start
));
//
log.info("耗时3:"+(System.currentTimeMillis()-start));
Object
countStr
=
valueOperations
.
get
(
"count:cmptid:"
+
cmpt
.
getCmptId
());
if
(
countStr
!=
null
){
cmpt
.
setEnroll
(
Integer
.
valueOf
(
countStr
.
toString
()));
...
...
@@ -173,7 +173,7 @@ public class CmptService {
int
cmptEnrollCount
=
remoteService
.
getCmptEnrollCount
(
cmpt
.
getCmptId
());
cmpt
.
setEnroll
(
cmptEnrollCount
);
valueOperations
.
set
(
"count:cmptid:"
+
cmpt
.
getCmptId
(),
cmptEnrollCount
+
""
,
30
,
TimeUnit
.
MINUTES
);
log
.
info
(
"耗时4:"
+(
System
.
currentTimeMillis
()-
start
));
//
log.info("耗时4:"+(System.currentTimeMillis()-start));
}
});
return
PageFactory
.
setContent
(
list
,
page
,
count
);
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/CmptController.java
View file @
3124ec5a
...
...
@@ -259,8 +259,8 @@ public class CmptController {
public
com
.
neusoft
.
www
.
utils
.
web
.
Result
updateDayRank
(
@RequestParam
(
"cmptId"
)
int
cmptId
,
@RequestParam
(
"status"
)
int
status
,
@RequestParam
(
"rankName"
)
String
rankName
)
{
cmptService
.
updateDayRank
(
cmptId
,
status
,
rankName
);
return
new
com
.
neusoft
.
www
.
utils
.
web
.
Result
()
.
success
().
setMsg
(
"设置成功!"
);
cmptService
.
updateDayRank
(
cmptId
,
status
,
rankName
);
return
com
.
neusoft
.
www
.
utils
.
web
.
Result
.
success
().
setMsg
(
"设置成功!"
);
}
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/MicroApiController.java
View file @
3124ec5a
...
...
@@ -434,6 +434,7 @@ public class MicroApiController {
param
.
put
(
"creator"
,
creator
);
param
.
put
(
"type"
,
type
+
""
);
param
.
put
(
"keyword"
,
keyword
);
param
.
put
(
"partnerId"
,
partnerId
);
Page
<
List
<
Cmpt
>>
result
=
cmptService
.
queryCmpt
(
page
,
param
);
result
.
setCode
(
200
);
return
result
;
...
...
src/main/webapp/static/leaflet/images/layers.png
0 → 100644
View file @
3124ec5a
696 Bytes
src/main/webapp/static/leaflet/images/marker-icon-2x.png
0 → 100644
View file @
3124ec5a
2.41 KB
src/main/webapp/static/leaflet/images/marker-icon.png
0 → 100644
View file @
3124ec5a
1.43 KB
src/main/webapp/static/leaflet/images/marker-shadow.png
View replaced file @
b8e83f37
View file @
3124ec5a
1.04 KB
|
W:
|
H:
618 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
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