@@ -25,7 +25,7 @@ public interface PreproPersonMapper {
/*按条件查询制证数据*/
@Select({"<script> select JMSFZSLH,xm,XBDM,GMSFHM,CARD_TYPE,IS_VALID,SOURCE_FILE_NAME,NEW_FILE_NAME 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 left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID = PREPRO_PERSON.CARD_TYPE_ID "+
@Select({"<script> select * from (select a.*,rownum rn from(select JMSFZSLH,xm,XBDM,GMSFHM,CARD_TYPE,PREPRO_PERSON.CARD_TYPE_ID,IS_VALID,SOURCE_FILE_NAME,NEW_FILE_NAME 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 left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID = PREPRO_PERSON.CARD_TYPE_ID "+
"<where> "+
" 1=1"+
"<if test='uploadNo != null '>"+
...
...
@@ -54,6 +54,40 @@ public interface PreproPersonMapper {
" </if> </where>"+
") a ) where rn between #{minNum} and #{maxNum} </script>"})
@Select({"<script> select JMSFZSLH,xm,XBDM,GMSFHM,CARD_TYPE,PREPRO_PERSON.CARD_TYPE_ID,IS_VALID,SOURCE_FILE_NAME,NEW_FILE_NAME 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 left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID = PREPRO_PERSON.CARD_TYPE_ID "+
"<where> "+
" 1=1"+
"<if test='uploadNo != null '>"+
"and PREPRO_PERSON.JMSFZSLH = #{uploadNo}"+
"</if>"+
" <if test='IDCard != null '> "+
"and GMSFHM = #{IDCard} "+
"</if> "+
" <if test='oldFile != null '> "+
"and files.SOURCE_FILE_NAME =#{oldFile} "+
" </if> "+
" <if test='newFile != null '> "+
"and NEW_FILES.NEW_FILE_NAME = #{newFile}"+
" </if> "+
" <if test='SSXQDM != null '> "+
"and PREPRO_PERSON.SSXQDM =#{SSXQDM}"+
" </if>"+
" <if test='cardType != null '>"+
" and PREPRO_PERSON.CARD_TYPE_ID =#{cardType}"+
" </if> "+
" <if test='state != null '>"+
" and PREPRO_PERSON.state = #{state}"+
" </if> "+
" <if test='uploadDate != null '>"+
" and to_char(UPLOAD_DATE,'yyyyMMdd') = #{uploadDate}"+