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
d7dc695b
Commit
d7dc695b
authored
Mar 06, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新包日志查询
parent
ab5b93eb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
1 deletion
+34
-1
LogApi.java
src/main/java/com/yxproject/start/api/LogApi.java
+5
-1
LogMapper.java
src/main/java/com/yxproject/start/mapper/LogMapper.java
+19
-0
LogService.java
src/main/java/com/yxproject/start/service/LogService.java
+4
-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 @
d7dc695b
...
...
@@ -39,5 +39,9 @@ public class LogApi {
List
<
Map
<
String
,
Object
>>
result
=
logService
.
selectNewFilesLog
(
newFileName
,
cardId
,
createDate
,
uploadCountyCode
,
Long
.
valueOf
(
currPage
),
Long
.
valueOf
(
pageSize
));
return
result
;
}
@RequestMapping
(
"selectNewFileLogCount"
)
public
String
selectNewFileLogCount
(
@RequestParam
(
"newFileName"
)
String
newFileName
,
@RequestParam
(
"cardId"
)
String
cardId
,
@RequestParam
(
"createDate"
)
String
createDate
,
@RequestParam
(
"uploadCountyCode"
)
String
uploadCountyCode
){
String
total
=
logService
.
selectNewFileLogCount
(
newFileName
,
cardId
,
createDate
,
uploadCountyCode
);
return
total
;
}
}
src/main/java/com/yxproject/start/mapper/LogMapper.java
View file @
d7dc695b
...
...
@@ -45,4 +45,23 @@ public interface LogMapper {
public
List
<
Map
<
String
,
Object
>>
selectNewFilesLog
(
@Param
(
"newFileName"
)
String
newFileName
,
@Param
(
"cardId"
)
String
cardId
,
@Param
(
"createDate"
)
String
createDate
,
@Param
(
"uploadCountyCode"
)
String
uploadCountyName
,
@Param
(
"begin"
)
long
begin
,
@Param
(
"end"
)
long
end
);
@Select
(
"<script> "
+
"SELECT COUNT(*) FROM NEW_FILES \n"
+
"LEFT JOIN PREPRO_PERSON ON NEW_FILES.ID = PREPRO_PERSON.NEW_FILE_ID "
+
" where 1=1 "
+
" <if test='newFileName !=\"\"' >"
+
" and NEW_FILES.NEW_FILE_NAME=#{newFileName} "
+
" </if>"
+
" <if test='uploadCountyCode != -1' >"
+
" and NEW_FILES.DWDM=#{uploadCountyCode}"
+
" </if>"
+
" <if test='createDate !=\"\"' >"
+
" and substr(NEW_FILES.CREATE_DATE,0,8)=#{createDate}"
+
" </if>"
+
" <if test='cardId !=\"\"' >"
+
" and PREPRO_PERSON.GMSFHM=#{cardId} "
+
" </if>"
+
"</script>"
)
public
String
selectNewFileLogCount
(
@Param
(
"newFileName"
)
String
newFileName
,
@Param
(
"cardId"
)
String
cardId
,
@Param
(
"createDate"
)
String
createDate
,
@Param
(
"uploadCountyCode"
)
String
uploadCountyName
);
}
src/main/java/com/yxproject/start/service/LogService.java
View file @
d7dc695b
...
...
@@ -7,4 +7,8 @@ import java.util.Map;
public
interface
LogService
{
public
List
<
Map
<
String
,
Object
>>
selectNewFilesLog
(
String
newFileName
,
String
cardId
,
String
createDate
,
String
uploadCountyCode
,
long
currPage
,
long
pageSize
);
public
String
selectNewFileLogCount
(
String
newFileName
,
String
cardId
,
String
createDate
,
String
uploadCountyCode
);
}
src/main/java/com/yxproject/start/service/impl/LogServiceImpl.java
View file @
d7dc695b
...
...
@@ -17,4 +17,10 @@ public class LogServiceImpl implements LogService {
List
<
Map
<
String
,
Object
>>
resultMap
=
logMapper
.
selectNewFilesLog
(
newFileName
,
cardId
,
createDate
,
uploadCountyCode
,
currPage
*
pageSize
,
(
currPage
-
1
)
*
pageSize
+
1
);
return
resultMap
;
}
@Override
public
String
selectNewFileLogCount
(
String
newFileName
,
String
cardId
,
String
createDate
,
String
uploadCountyCode
)
{
String
count
=
logMapper
.
selectNewFileLogCount
(
newFileName
,
cardId
,
createDate
,
uploadCountyCode
);
return
count
;
}
}
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