Commit 278cb7a4 authored by suichenguang's avatar suichenguang

新包日志查询

parent 3a5f07c4
...@@ -29,14 +29,14 @@ public class LogApi { ...@@ -29,14 +29,14 @@ public class LogApi {
* @param newFileName 新文件名 * @param newFileName 新文件名
* @param cardId 身份证号 * @param cardId 身份证号
* @param createDate 生成时间 * @param createDate 生成时间
* @param uploadCountyName 上传地区 * @param uploadCountyCode 上传地区
* @param currPage 页数 * @param currPage 页数
* @param pageSize 行数 * @param pageSize 行数
* @return * @return
*/ */
@RequestMapping("selectNewFilesLog") @RequestMapping("selectNewFilesLog")
public List<Map<String,Object>> selectNewFilesLog (@RequestParam("newFileName")String newFileName, @RequestParam("cardId")String cardId, @RequestParam("createDate")String createDate, @RequestParam("uploadCountyName")String uploadCountyName, @RequestParam("currPage")String currPage, @RequestParam("pageSize")String pageSize){ public List<Map<String,Object>> selectNewFilesLog (@RequestParam("newFileName")String newFileName, @RequestParam("cardId")String cardId, @RequestParam("createDate")String createDate, @RequestParam("uploadCountyCode")String uploadCountyCode, @RequestParam("currPage")String currPage, @RequestParam("pageSize")String pageSize){
List<Map<String,Object>> result = logService.selectNewFilesLog(newFileName,cardId,createDate,uploadCountyName, Long.valueOf(currPage),Long.valueOf(pageSize)); List<Map<String,Object>> result = logService.selectNewFilesLog(newFileName,cardId,createDate,uploadCountyCode, Long.valueOf(currPage),Long.valueOf(pageSize));
return result; return result;
} }
......
...@@ -14,6 +14,7 @@ public interface LogMapper { ...@@ -14,6 +14,7 @@ public interface LogMapper {
@Insert("") @Insert("")
public boolean insertAnalysisLog(); public boolean insertAnalysisLog();
@Select("") @Select("")
public List<Map<String,Object>> selectAnalysisLog(String fileName,String analysisDate); public List<Map<String,Object>> selectAnalysisLog(String fileName,String analysisDate);
...@@ -27,21 +28,21 @@ public interface LogMapper { ...@@ -27,21 +28,21 @@ public interface LogMapper {
" <if test='newFileName !=\"\"' >" + " <if test='newFileName !=\"\"' >" +
" and NEW_FILES.NEW_FILE_NAME=#{newFileName} " + " and NEW_FILES.NEW_FILE_NAME=#{newFileName} " +
" </if>" + " </if>" +
" <if test='cardId !=\"\"' >" + " <if test='uploadCountyCode !=\"\"' >" +
" and NEW_FILES.DWMC=#{cardId}" + " and NEW_FILES.DWDM=#{uploadCountyCode}" +
" </if>" + " </if>" +
" <if test='createDate !=\"\"' >" + " <if test='createDate !=\"\"' >" +
" and substr(NEW_FILES.CREATE_DATE,0,8)=#{createDate}" + " and substr(NEW_FILES.CREATE_DATE,0,8)=#{createDate}" +
" </if>" + " </if>" +
" <if test='uploadCountyName !=\"\"' >" + " <if test='cardId !=\"\"' >" +
" and PREPRO_PERSON.GMSFHM=#{uploadCountyName} " + " and PREPRO_PERSON.GMSFHM=#{cardId} " +
" </if>" + " </if>" +
" ) " + " ) " +
" A" + " A" +
" )" + " )" +
" WHERE RN BETWEEN #{end} AND #{begin}" + " WHERE RN BETWEEN #{end} AND #{begin}" +
"</script>") "</script>")
public List<Map<String,Object>> selectNewFilesLog(@Param("newFileName") String newFileName, @Param("cardId") String cardId, @Param("createDate") String createDate,@Param("uploadCountyName") String uploadCountyName, @Param("begin") long begin, @Param("end") long end); 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);
} }
...@@ -6,5 +6,5 @@ import java.util.Map; ...@@ -6,5 +6,5 @@ import java.util.Map;
public interface LogService { public interface LogService {
public List<Map<String,Object>> selectNewFilesLog(String newFileName,String cardId,String createDate,String uploadCountyName,long currPage,long pageSize); public List<Map<String,Object>> selectNewFilesLog(String newFileName,String cardId,String createDate,String uploadCountyCode,long currPage,long pageSize);
} }
...@@ -13,8 +13,8 @@ public class LogServiceImpl implements LogService { ...@@ -13,8 +13,8 @@ public class LogServiceImpl implements LogService {
@Autowired @Autowired
private LogMapper logMapper; private LogMapper logMapper;
@Override @Override
public List<Map<String, Object>> selectNewFilesLog(String newFileName, String cardId, String createDate, String uploadCountyName, long currPage, long pageSize) { public List<Map<String, Object>> selectNewFilesLog(String newFileName, String cardId, String createDate, String uploadCountyCode, long currPage, long pageSize) {
List<Map<String, Object>> resultMap= logMapper.selectNewFilesLog(newFileName,cardId,createDate,uploadCountyName,currPage * pageSize, (currPage - 1) * pageSize + 1); List<Map<String, Object>> resultMap= logMapper.selectNewFilesLog(newFileName,cardId,createDate,uploadCountyCode,currPage * pageSize, (currPage - 1) * pageSize + 1);
return resultMap; return resultMap;
} }
} }
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