Commit dce66875 authored by dahai's avatar dahai

push

parent 3490d37f
...@@ -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 !=\"\"' >" +
......
...@@ -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();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment