Commit d6eab145 authored by dahai's avatar dahai

push

parent cd688f4c
...@@ -36,9 +36,9 @@ public class queryPreproPerson { ...@@ -36,9 +36,9 @@ public class queryPreproPerson {
int puSum=0; int puSum=0;
int invaildCount = 0; int invaildCount = 0;
for (PreproPersonEntity preproPersonEntity :preproPersonEntityList){ for (PreproPersonEntity preproPersonEntity :preproPersonEntityList){
if (preproPersonEntity.getCardTypeId()==9){ if (preproPersonEntity.getCardTypeId()!=null&&preproPersonEntity.getCardTypeId()==9){
youSum++; youSum++;
}else if (preproPersonEntity.getCardTypeId()==0){ }else if (preproPersonEntity.getCardTypeId()!=null&&preproPersonEntity.getCardTypeId()==0){
puSum++; puSum++;
} }
if (preproPersonEntity.getIsValid()==0){ if (preproPersonEntity.getIsValid()==0){
......
...@@ -50,7 +50,7 @@ public interface PreproPersonMapper { ...@@ -50,7 +50,7 @@ public interface PreproPersonMapper {
" and PREPRO_PERSON.state = #{state}"+ " and PREPRO_PERSON.state = #{state}"+
" </if> "+ " </if> "+
" <if test='uploadDate != null '>"+ " <if test='uploadDate != null '>"+
" and substr(files.CREATE_TIME,0,8) = #{uploadDate}"+ " and to_char(UPLOAD_DATE,'yyyyMMdd') = #{uploadDate}"+
" </if> </where>"+ " </if> </where>"+
") a ) where rn between #{minNum} and #{maxNum} </script>"}) ") a ) where rn between #{minNum} and #{maxNum} </script>"})
public List<PreproPersonEntity> selectPreproPerson(@Param("uploadNo") String uploadNo, @Param("IDCard") String IDCard, @Param("oldFile") String oldFile, @Param("newFile") String newFile, @Param("SSXQDM") String SSXQDM, @Param("cardType") String cardType, @Param("state") String state, @Param("uploadDate") String uploadDate, @Param("minNum") long minNum, @Param("maxNum") long maxNum); public List<PreproPersonEntity> selectPreproPerson(@Param("uploadNo") String uploadNo, @Param("IDCard") String IDCard, @Param("oldFile") String oldFile, @Param("newFile") String newFile, @Param("SSXQDM") String SSXQDM, @Param("cardType") String cardType, @Param("state") String state, @Param("uploadDate") String uploadDate, @Param("minNum") long minNum, @Param("maxNum") long maxNum);
...@@ -81,7 +81,7 @@ public interface PreproPersonMapper { ...@@ -81,7 +81,7 @@ public interface PreproPersonMapper {
" and PREPRO_PERSON.state = #{state}", " and PREPRO_PERSON.state = #{state}",
" </if> ", " </if> ",
" <if test='uploadDate != null '>", " <if test='uploadDate != null '>",
" and substr(files.CREATE_TIME,0,8) = #{uploadDate}", " and to_char(UPLOAD_DATE,'yyyyMMdd') = #{uploadDate}",
" </if> ", " </if> ",
"</where>" + "</where>" +
" </script>"}) " </script>"})
......
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