Commit 142b2ac7 authored by dahai's avatar dahai

push

parent 8f824d17
...@@ -25,8 +25,8 @@ public interface PreproPersonMapper { ...@@ -25,8 +25,8 @@ public interface PreproPersonMapper {
/*按条件查询制证数据*/ /*按条件查询制证数据*/
@Select("select * from (select a.*,rownum rn from(select * from PREPRO_PERSON left join files on PREPRO_PERSON.FILE_ID = files.ID left join NEW_FILES on PREPRO_PERSON.FILE_ID = NEW_FILES.ID " + @Select({"<script> select * from (select a.*,rownum rn from(select * from PREPRO_PERSON left join files on PREPRO_PERSON.FILE_ID = files.ID left join NEW_FILES on PREPRO_PERSON.FILE_ID = NEW_FILES.ID " +
"where " + "<where> " +
" 1=1" + " 1=1" +
"<if test='uploadNo != null '>" + "<if test='uploadNo != null '>" +
"and PREPRO_PERSON.JMSFZSLH = #{uploadNo}" + "and PREPRO_PERSON.JMSFZSLH = #{uploadNo}" +
...@@ -37,7 +37,7 @@ public interface PreproPersonMapper { ...@@ -37,7 +37,7 @@ public interface PreproPersonMapper {
" <if test='oldFile != null '> "+ " <if test='oldFile != null '> "+
"and files.SOURCE_FILE_NAME =#{oldFile} "+ "and files.SOURCE_FILE_NAME =#{oldFile} "+
" </if> "+ " </if> "+
" <if test='newFile != null'> "+ " <if test='newFile != null '> "+
"and NEW_FILES.NEW_FILE_NAME = #{newFile}"+ "and NEW_FILES.NEW_FILE_NAME = #{newFile}"+
" </if> "+ " </if> "+
" <if test='SSXQDM != null '> "+ " <if test='SSXQDM != null '> "+
...@@ -46,13 +46,13 @@ public interface PreproPersonMapper { ...@@ -46,13 +46,13 @@ public interface PreproPersonMapper {
" <if test='cardType != null '>"+ " <if test='cardType != null '>"+
" and PREPRO_PERSON.CARD_TYPE_ID =#{cardType}"+ " and PREPRO_PERSON.CARD_TYPE_ID =#{cardType}"+
" </if> "+ " </if> "+
" <if test='state != null'>"+ " <if test='state != null '>"+
" and PREPRO_PERSON.state = #{state}"+ " and PREPRO_PERSON.state = #{state}"+
" </if> "+ " </if> "+
" <if test='uploadDate != null '>"+ " <if test='uploadDate != null '>"+
" and files.CREAT_TIME = #{uploadDate}"+ " and substr(files.CREATE_TIME,0,8) = #{uploadDate}"+
" </if> "+ " </if> </where>"+
") a ) where rn between #{minNum} and #{maxNum} ") ") 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);
/*按条件查询制证数据*/ /*按条件查询制证数据*/
@Select({"<script>" + @Select({"<script>" +
...@@ -68,7 +68,7 @@ public interface PreproPersonMapper { ...@@ -68,7 +68,7 @@ public interface PreproPersonMapper {
" <if test='oldFile != null '> ", " <if test='oldFile != null '> ",
"and files.SOURCE_FILE_NAME =#{oldFile} ", "and files.SOURCE_FILE_NAME =#{oldFile} ",
" </if> ", " </if> ",
" <if test='newFile != null'> ", " <if test='newFile != null '> ",
"and NEW_FILES.NEW_FILE_NAME = #{newFile}", "and NEW_FILES.NEW_FILE_NAME = #{newFile}",
" </if> ", " </if> ",
" <if test='SSXQDM != null '> ", " <if test='SSXQDM != null '> ",
...@@ -77,11 +77,11 @@ public interface PreproPersonMapper { ...@@ -77,11 +77,11 @@ public interface PreproPersonMapper {
" <if test='cardType != null '>", " <if test='cardType != null '>",
" and PREPRO_PERSON.CARD_TYPE_ID =#{cardType}", " and PREPRO_PERSON.CARD_TYPE_ID =#{cardType}",
" </if> ", " </if> ",
" <if test='state != null'>", " <if test='state != null '>",
" and PREPRO_PERSON.state = #{state}", " and PREPRO_PERSON.state = #{state}",
" </if> ", " </if> ",
" <if test='uploadDate != null '>", " <if test='uploadDate != null '>",
" and files.CREAT_TIME = #{uploadDate}", " and substr(files.CREATE_TIME,0,8) = #{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