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
dce66875
Commit
dce66875
authored
Mar 17, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
3490d37f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
FileNameDicMapper.java
...in/java/com/yxproject/start/mapper/FileNameDicMapper.java
+1
-1
FileNameDicServiceImpl.java
.../yxproject/start/service/impl/FileNameDicServiceImpl.java
+1
-9
No files found.
src/main/java/com/yxproject/start/mapper/FileNameDicMapper.java
View file @
dce66875
...
@@ -60,7 +60,7 @@ public interface FileNameDicMapper {
...
@@ -60,7 +60,7 @@ public interface FileNameDicMapper {
*/
*/
@Select
(
"<script> select FILE_NAME_DIC.*,rownum rn from FILE_NAME_DIC "
+
@Select
(
"<script> select FILE_NAME_DIC.*,rownum rn from FILE_NAME_DIC "
+
"<where> 1=1 "
+
"<where> 1=1 "
+
"<if test='analysisState != -1' >"
+
"<if test='analysisState != -1
' >"
+
" and STATE =#{analysisState}"
+
" and STATE =#{analysisState}"
+
"</if>"
+
"</if>"
+
"<if test='uploadDate !=\"\"' >"
+
"<if test='uploadDate !=\"\"' >"
+
...
...
src/main/java/com/yxproject/start/service/impl/FileNameDicServiceImpl.java
View file @
dce66875
...
@@ -28,18 +28,10 @@ public class FileNameDicServiceImpl implements FileNameDicService {
...
@@ -28,18 +28,10 @@ public class FileNameDicServiceImpl implements FileNameDicService {
@Override
@Override
public
List
<
FileNameDicEntity
>
queryFileNameDic
(
String
uploadDate
,
String
fileName
,
long
analysisState
,
long
currPage
,
long
pageSize
)
{
public
List
<
FileNameDicEntity
>
queryFileNameDic
(
String
uploadDate
,
String
fileName
,
long
analysisState
,
long
currPage
,
long
pageSize
)
{
// if (analysisState<0){
return
fileNameDicMapper
.
queryFileNameDic
(
uploadDate
,
fileName
,
analysisState
,
currPage
*
pageSize
,(
currPage
-
1
)*
pageSize
+
1
);
// analysisState=2;
// }
// List<FileNameDicEntity> fileNameDicEntities = fileNameDicMapper.queryFileNameDic(uploadDate, fileName, -1, currPage * pageSize, (currPage - 1) * pageSize + 1);
return
fileNameDicMapper
.
queryFileNameDic
(
uploadDate
,
fileName
,
-
1
,
currPage
*
pageSize
,(
currPage
-
1
)*
pageSize
+
1
);
// return null;
}
}
@Override
@Override
public
int
queryFileNameDicCount
(
String
uploadDate
,
String
fileName
,
long
analysisState
)
{
public
int
queryFileNameDicCount
(
String
uploadDate
,
String
fileName
,
long
analysisState
)
{
// if (analysisState<0){
// analysisState=2;
// }
return
fileNameDicMapper
.
queryFileNameDicCount
(
uploadDate
,
fileName
,
analysisState
).
size
();
return
fileNameDicMapper
.
queryFileNameDicCount
(
uploadDate
,
fileName
,
analysisState
).
size
();
}
}
...
...
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