@@ -37,23 +37,24 @@ public interface PersonPostMapper {
...
@@ -37,23 +37,24 @@ public interface PersonPostMapper {
" from (SELECT PERSON_POST.*"+
" from (SELECT PERSON_POST.*"+
" FROM PERSON_POST "+
" FROM PERSON_POST "+
" LEFT JOIN FILE_NAME_DIC ON FILE_NAME_DIC.FILE_ID=PERSON_POST.FILE_ID "+
" LEFT JOIN FILE_NAME_DIC ON FILE_NAME_DIC.FILE_ID=PERSON_POST.FILE_ID "+
" left join PREPRO_PERSON on PERSON_POST.first_white = prepro_person.jmsfzslh "+
" WHERE 1=1"+
" WHERE 1=1"+
" <when test='applicantName!=\"\"'> and PERSON_POST.APPLICANT_NAME = #{applicantName} </when>"+
" <when test='applicantName!=\"\"'> and PERSON_POST.APPLICANT_NAME = ${applicantName} </when>"+
"<when test='emailNo!=\"\"'> and PERSON_POST.WAYBILL_NUMBER = TO_NUMBER(#{emailNo}) </when>"+
"<when test='emailNo!=\"\"'> and PERSON_POST.WAYBILL_NUMBER = TO_NUMBER(${emailNo}) </when>"+
" <when test='orderNumber!=\"\"'> and PERSON_POST.ORDER_NUMBER=#{orderNumber} </when>"+
" <when test='orderNumber!=\"\"'> and PERSON_POST.ORDER_NUMBER=${orderNumber} </when>"+
" <if test='state== 0 '> and PERSON_POST.print_date is null </if>"+
" <if test='state== 0 '> and PERSON_POST.print_date is null </if>"+
" <if test='state== 1 '> and PERSON_POST.print_date is not null </if>"+
" <if test='state== 1 '> and PERSON_POST.print_date is not null </if>"+
// " <if test='notNull== 1 '> and (PERSON_POST.ID_CARD is not null ) or (PERSON_POST.ACCEPT_THE_MATTER is not null ) or (PERSON_POST.BEGIN_USEFUL_LIFE is not null ) or (PERSON_POST.VALID_PERIOD_END is not null ) </if>" +
// " <if test='notNull== 1 '> and (PERSON_POST.ID_CARD is not null ) or (PERSON_POST.ACCEPT_THE_MATTER is not null ) or (PERSON_POST.BEGIN_USEFUL_LIFE is not null ) or (PERSON_POST.VALID_PERIOD_END is not null ) </if>" +
// " <if test='notNull== 0 '> and (PERSON_POST.ID_CARD is null) or (PERSON_POST.ACCEPT_THE_MATTER is null) or (PERSON_POST.BEGIN_USEFUL_LIFE is null) or (PERSON_POST.VALID_PERIOD_END is null) </if>" +
// " <if test='notNull== 0 '> and (PERSON_POST.ID_CARD is null) or (PERSON_POST.ACCEPT_THE_MATTER is null) or (PERSON_POST.BEGIN_USEFUL_LIFE is null) or (PERSON_POST.VALID_PERIOD_END is null) </if>" +
" <if test='notNull== 1 '> and (PERSON_POST.ID_CARD is not null ) </if>"+
" <if test='notNull== 1 '> and PREPRO_PERSON.JMSFZSLH is not null </if>"+
" <if test='notNull== 0 '> and (PERSON_POST.ID_CARD is null) </if>"+
" <if test='notNull== 0 '> and PREPRO_PERSON.JMSFZSLH is null </if>"+
" <when test='latticeMouthInformation!=\"\"'> and PERSON_POST.LATTICE_MOUTH_INFORMATION=#{latticeMouthInformation} </when>"+
" <when test='latticeMouthInformation!=\"\"'> and PERSON_POST.LATTICE_MOUTH_INFORMATION=${latticeMouthInformation} </when>"+
" <when test='getToCounty!=null'> and PERSON_POST.GET_TO_COUNTY in ( #{getToCounty} ) </when>"+
" <when test='getToCounty!=null'> and PERSON_POST.GET_TO_COUNTY in ( ${getToCounty} ) </when>"+
" <when test='uploadDate!=\"\"'> and subStr(FILE_NAME_DIC.UPLOAD_DATE,0,8)=#{uploadDate} </when>"+
" <when test='uploadDate!=\"\"'> and subStr(FILE_NAME_DIC.UPLOAD_DATE,0,8)=${uploadDate} </when>"+