Commit 20274c0b authored by dahai's avatar dahai

push

parent e0c9773c
......@@ -30,8 +30,26 @@ public class queryPreproPerson {
public Map<String,Object> printXmlData(@RequestParam("uploadNo") String uploadNo, @RequestParam("IDCard")String IDCard,@RequestParam("oldFile") String oldFile, @RequestParam("newFile")String newFile, @RequestParam("SSXQDM")String SSXQDM, @RequestParam("cardType")String cardType, @RequestParam("state")String state, @RequestParam("uploadDate")String uploadDate,@RequestParam("currPage")String currPage,@RequestParam("pageSize")String pageSize, HttpServletResponse response){
List<PreproPersonEntity> preproPersonEntities = preproPersonService.selectPreproPerson(uploadNo, IDCard, oldFile, newFile, SSXQDM, cardType, state, uploadDate,currPage,pageSize);
Map<String,Object> map = new LinkedHashMap<>();
map.put("tatal",preproPersonService.selectPreproPersonCount(uploadNo, IDCard, oldFile, newFile, SSXQDM, cardType, state, uploadDate).size());
List<PreproPersonEntity> preproPersonEntityList = preproPersonService.selectPreproPersonCount(uploadNo, IDCard, oldFile, newFile, SSXQDM, cardType, state, uploadDate);
map.put("tatal",preproPersonEntityList.size());
int youSum =0;
int puSum=0;
int invaildCount = 0;
for (PreproPersonEntity preproPersonEntity :preproPersonEntityList){
if (preproPersonEntity.getCardTypeId()==9){
youSum++;
}else if (preproPersonEntity.getCardTypeId()==0){
puSum++;
}
if (preproPersonEntity.getIsValid()==0){
invaildCount++;
}
}
map.put("list",preproPersonEntities);
map.put("youSum",youSum);
map.put("puSum",puSum);
map.put("invaildCount",invaildCount);
return map;
}
......
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