Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
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
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
4ab967e2
Commit
4ab967e2
authored
Mar 07, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解析日志查询
parent
c16f2a49
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
6 deletions
+25
-6
LogApi.java
src/main/java/com/yxproject/start/api/LogApi.java
+17
-0
LogMapper.java
src/main/java/com/yxproject/start/mapper/LogMapper.java
+1
-2
TaskListMapper.java
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
+0
-4
LogService.java
src/main/java/com/yxproject/start/service/LogService.java
+1
-0
LogServiceImpl.java
...java/com/yxproject/start/service/impl/LogServiceImpl.java
+6
-0
No files found.
src/main/java/com/yxproject/start/api/LogApi.java
View file @
4ab967e2
...
...
@@ -3,6 +3,7 @@ package com.yxproject.start.api;
import
com.yxproject.start.entity.CountyDicEntity
;
import
com.yxproject.start.service.LogService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -61,6 +62,22 @@ public class LogApi {
return
total
;
}
/**
* 查询解析日志
* @param fileName
* @param analysisTime
* @return
*/
@RequestMapping
(
"selectByAnalysisLog"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
List
<
Map
<
String
,
Object
>>
selectByAnalysisLog
(
@RequestParam
(
"fileName"
)
String
fileName
,
@RequestParam
(
"analysisTime"
)
String
analysisTime
,
@RequestParam
(
"currPage"
)
String
currPage
,
@RequestParam
(
"pageSize"
)
String
pageSize
){
List
<
Map
<
String
,
Object
>>
resultList
=
logService
.
selectAnalysisLog
(
fileName
,
analysisTime
,
Long
.
valueOf
(
currPage
),
Long
.
valueOf
(
pageSize
));
return
resultList
;
}
/**
* 去除字符串中中线
* @param str
...
...
src/main/java/com/yxproject/start/mapper/LogMapper.java
View file @
4ab967e2
...
...
@@ -13,8 +13,7 @@ import java.util.Map;
public
interface
LogMapper
{
@Insert
(
""
)
public
boolean
insertAnalysisLog
();
@Select
(
"<script> "
+
"SELECT * FROM "
+
...
...
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
View file @
4ab967e2
...
...
@@ -138,8 +138,4 @@ public interface TaskListMapper {
public
boolean
updateState
(
@Param
(
"taskId"
)
String
taskId
);
}
src/main/java/com/yxproject/start/service/LogService.java
View file @
4ab967e2
...
...
@@ -12,6 +12,7 @@ public interface LogService {
public
String
selectNewFileLogCount
(
String
newFileName
,
String
cardId
,
String
createDate
,
String
uploadCountyCode
);
public
List
<
Map
<
String
,
Object
>>
selectAnalysisLog
(
String
fileName
,
String
analysisDate
,
long
currPage
,
long
pageSize
);
public
List
<
CountyDicEntity
>
getCountyList
();
...
...
src/main/java/com/yxproject/start/service/impl/LogServiceImpl.java
View file @
4ab967e2
...
...
@@ -25,6 +25,12 @@ public class LogServiceImpl implements LogService {
return
count
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
selectAnalysisLog
(
String
fileName
,
String
analysisDate
,
long
currPage
,
long
pageSize
)
{
List
<
Map
<
String
,
Object
>>
resultList
=
logMapper
.
selectAnalysisLog
(
fileName
,
analysisDate
,
currPage
*
pageSize
,
(
currPage
-
1
)
*
pageSize
+
1
);
return
resultList
;
}
@Override
public
List
<
CountyDicEntity
>
getCountyList
()
{
...
...
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