@Update("update prepro_person p set IS_POST=9 where p.JMSFZSLH in ( select p.JMSFZSLH from prepro_person p left join files files on p.file_id=files.ID \n"+
@Update("update prepro_person p set IS_POST=9 where p.JMSFZSLH in ( select p.JMSFZSLH from prepro_person p left join files files on p.file_id=files.ID \n"+
"where JMSFZSLH in(select FIRST_WHITE from person_post where FILE_ID=#{fileId}) and files.CREAT_TIME=#{creatTime} )")
"where JMSFZSLH in(select FIRST_WHITE from person_post where FILE_ID=#{fileId}) and files.CREATE_TIME=#{creatTime} )")
" LEFT JOIN FILE_NAME_DIC ON FILE_NAME_DIC.FILE_ID=PERSON_POST.FILE_ID "+
" where 1=1 "+
" <if test='applicantName!=\"\"'> and PERSON_POST.APPLICANT_NAME = #{applicantName} </if>"+
" <if test='emailNo!=\"\" '> and PERSON_POST.WAYBILL_NUMBER =TO_NUMBER(#{emailNo}) </if>"+
" <if test='orderNumber!=\"\"'> and PERSON_POST.ORDER_NUMBER=#{orderNumber} </if>"+
" <if test='jmsfzslh!=\"\"'> and PERSON_POST.FIRST_WHITE=#{jmsfzslh} </if>"+
" <if test='idCard!=\"\"'> and PERSON_POST.ID_CARD=#{idCard} </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='district== 1 '> and PERSON_POST.FIRST_WHITE like '110018%' </if>"+
" <if test='district== 0 '> and SUBSTR(PERSON_POST.FIRST_WHITE,0,6) != '110018' </if>"+
" <if test='notNull== 1 '> and PERSON_POST.state1=1 </if>"+
" <if test='notNull== 0 '> and PERSON_POST.state1=0 </if>"+
" <if test='notNull== 3 '> and PERSON_POST.state1=3 </if>"+
" <if test='latticeMouthInformation!=\"\"'> and PERSON_POST.LATTICE_MOUTH_INFORMATION=#{latticeMouthInformation} </if>"+
" <if test='getToCounty!=\"\"'> and PERSON_POST.GET_TO_COUNTY in ( ${getToCounty} ) </if>"+
" <if test='GK== 0 '> and GK = 0 </if>"+
" <if test='GK== 1 '> and GK in (1,2,3,4) </if>"+
" <if test='GK== 5 '> and GK = 5</if>"+
" <if test='GK == 6'> AND PERSON_POST.GET_TO_PROVINCE IN ('天津市', '河北省') </if>"+
" <if test='startDate!=\"\"'> and subStr(FILE_NAME_DIC.UPLOAD_DATE,0,8) between #{startDate} and #{endDate} </if>"+
" <if test='printDate != null and printDate != \"\"'> AND PERSON_POST.print_Date BETWEEN TO_DATE(#{printDate}||'000000', 'yyyyMMddHH24MISS') AND TO_DATE(#{printDate}||'235959', 'yyyyMMddHH24MISS') </if>"+
@@ -41,25 +68,26 @@ public interface PersonPostMapper {
...
@@ -41,25 +68,26 @@ public interface PersonPostMapper {
" 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 "+
" 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>"+
" <if test='applicantName!=\"\"'> and PERSON_POST.APPLICANT_NAME = #{applicantName} </if>"+
" <when test='emailNo!=\"\"'> and PERSON_POST.WAYBILL_NUMBER = TO_NUMBER(${emailNo}) </when>"+
" <if test='emailNo!=\"\"'> and PERSON_POST.WAYBILL_NUMBER = TO_NUMBER(${emailNo}) </if>"+
" <when test='orderNumber!=\"\"'> and PERSON_POST.ORDER_NUMBER=${orderNumber} </when>"+
" <if test='orderNumber!=\"\"'> and PERSON_POST.ORDER_NUMBER=${orderNumber} </if>"+
" <when test='jmsfzslh!=\"\"'> and PERSON_POST.FIRST_WHITE=#{jmsfzslh} </when>"+
" <if test='jmsfzslh!=\"\"'> and PERSON_POST.FIRST_WHITE=#{jmsfzslh} </if>"+
" <when test='idCard!=\"\"'> and PERSON_POST.ID_CARD=#{idCard} </when>"+
" <if test='idCard!=\"\"'> and PERSON_POST.ID_CARD=#{idCard} </if>"+
" <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>"+
" <when test='district== 1 '> and PERSON_POST.FIRST_WHITE like '110018%' </when>"+
" <if test='district== 1 '> and PERSON_POST.FIRST_WHITE like '110018%' </if>"+
" <when test='district== 0 '> and SUBSTR(PERSON_POST.FIRST_WHITE,0,6) != '110018' </when>"+
" <if test='district== 0 '> and SUBSTR(PERSON_POST.FIRST_WHITE,0,6) != '110018' </if>"+
" <if test='notNull== 1 '> and PERSON_POST.state1=1 </if>"+
" <if test='notNull== 1 '> and PERSON_POST.state1=1 </if>"+
" <if test='notNull== 0 '> and PERSON_POST.state1=0 </if>"+
" <if test='notNull== 0 '> and PERSON_POST.state1=0 </if>"+
" <if test='notNull== 3 '> and PERSON_POST.state1=3 </if>"+
" <if test='notNull== 3 '> and PERSON_POST.state1=3 </if>"+
" <when test='latticeMouthInformation!=\"\"'> and PERSON_POST.LATTICE_MOUTH_INFORMATION=#{latticeMouthInformation} </when>"+
" <if test='latticeMouthInformation!=\"\"'> and PERSON_POST.LATTICE_MOUTH_INFORMATION=#{latticeMouthInformation} </if>"+
" <when test='getToCounty!=\"\"'> and PERSON_POST.GET_TO_COUNTY in ( ${getToCounty}) </when>"+
" <if test='getToCounty!=\"\"'> and PERSON_POST.GET_TO_COUNTY in ( ${getToCounty}) </if>"+
" <if test='GK== 0 '> and GK = 0 </if>"+
" <if test='GK== 0 '> and GK = 0 </if>"+
" <if test='GK== 1 '> and GK in (1,2,3,4) </if>"+
" <if test='GK== 1 '> and GK in (1,2,3,4) </if>"+
" <if test='GK== 5 '> and GK = 5</if>"+
" <if test='GK== 5 '> and GK = 5</if>"+
" <when test='startDate!=\"\"'> and subStr(FILE_NAME_DIC.UPLOAD_DATE,0,8) between ${startDate} and ${endDate} </when>"+
" <if test='GK == 6'> AND PERSON_POST.GET_TO_PROVINCE IN ('天津市', '河北省') </if>"+
" <when test='printDate!=\"\"'> and to_char(PERSON_POST.print_Date,'yyyyMMdd') = ${printDate} </when>"+
" <if test='startDate!=\"\"'> and subStr(FILE_NAME_DIC.UPLOAD_DATE,0,8) between ${startDate} and ${endDate} </if>"+
" <if test='printDate != null and printDate != \"\"'> AND PERSON_POST.print_Date BETWEEN TO_DATE(#{printDate}||'000000', 'yyyyMMddHH24MISS') AND TO_DATE(#{printDate}||'235959', 'yyyyMMddHH24MISS') </if>"+
"order by substr(PERSON_POST.first_white,-13) ) "+
"order by substr(PERSON_POST.first_white,-13) ) "+
"A"+
"A"+
") B "+
") B "+
...
@@ -68,7 +96,6 @@ public interface PersonPostMapper {
...
@@ -68,7 +96,6 @@ public interface PersonPostMapper {
@@ -141,22 +138,22 @@ public interface PersonPostMapper {
...
@@ -141,22 +138,22 @@ public interface PersonPostMapper {
" 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 "+
" WHERE 1=1"+
" WHERE 1=1"+
" <when test='sqrxm!=\"\"'> and PERSON_POST.APPLICANT_NAME = #{sqrxm} </when>"+
" <if test='sqrxm!=\"\"'> and PERSON_POST.APPLICANT_NAME = #{sqrxm} </if>"+
" <when test='ddh!=\"\"'> and PERSON_POST.ORDER_NUMBER=#{ddh} </when>"+
" <if test='ddh!=\"\"'> and PERSON_POST.ORDER_NUMBER=#{ddh} </if>"+
// " <when test='hasPrinted!=\"\"'> and PERSON_POST.STATE=#{hasPrinted} </when>" +
" <if test='hasPrinted== 0 '> and PERSON_POST.print_date is null </if>"+
" <when test='hasPrinted== 0 '> and PERSON_POST.print_date is null </when>"+
" <if test='hasPrinted== 1 '> and PERSON_POST.print_date is not null </if>"+
" <when test='hasPrinted== 1 '> and PERSON_POST.print_date is not null </when>"+
" <if test='district== 1 '> and PERSON_POST.FIRST_WHITE like '110018%' </if>"+
" <when test='district== 1 '> and PERSON_POST.FIRST_WHITE like '110018%' </when>"+
" <if test='district== 0 '> and SUBSTR(PERSON_POST.FIRST_WHITE,0,6) != '110018' </if>"+
" <when test='district== 0 '> and SUBSTR(PERSON_POST.FIRST_WHITE,0,6) != '110018' </when>"+
" <if test='gkxx!=\"\"'> and PERSON_POST.LATTICE_MOUTH_INFORMATION=#{gkxx} </if>"+
" <when test='gkxx!=\"\"'> and PERSON_POST.LATTICE_MOUTH_INFORMATION=#{gkxx} </when>"+
" <if test='emailNo!=\"\"'> and PERSON_POST.WAYBILL_NUMBER=TO_NUMBER(#{emailNo}) </if>"+
" <when test='emailNo!=\"\"'> and PERSON_POST.WAYBILL_NUMBER=TO_NUMBER(#{emailNo}) </when>"+
" <if test='str!=\"\"'> and PERSON_POST.GET_TO_COUNTY in ( ${str} ) </if>"+
" <when test='str!=\"\"'> and PERSON_POST.GET_TO_COUNTY in ( ${str} ) </when>"+
" <if test='GK== 0 '> and GK = 0 </if>"+
" <if test='GK== 0 '> and GK = 0 </if>"+
" <if test='GK== 1 '> and GK in (1,2,3,4) </if>"+
" <if test='GK== 1 '> and GK in (1,2,3,4) </if>"+
" <if test='GK== 5 '> and GK = 5</if>"+
" <if test='GK== 5 '> and GK = 5</if>"+
" <when test='startDate!=\"\"'> and subStr(FILE_NAME_DIC.UPLOAD_DATE,0,8) between #{startDate} and #{endDate} </when>"+
" <if test='GK == 6'> AND PERSON_POST.GET_TO_PROVINCE IN ('天津市', '河北省') </if>"+
" <when test='printDate!=\"\"'> and to_char(PERSON_POST.print_Date,'yyyyMMdd')=${printDate} </when>"+
" <if test='startDate!=\"\"'> and subStr(FILE_NAME_DIC.UPLOAD_DATE,0,8) between #{startDate} and #{endDate} </if>"+
" <when test='notNull!=\"\"'> and PERSON_POST.state1=${notNull} </when>"+
" <if test='printDate != null and printDate != \"\"'> AND PERSON_POST.print_Date BETWEEN TO_DATE(#{printDate}||'000000', 'yyyyMMddHH24MISS') AND TO_DATE(#{printDate}||'235959', 'yyyyMMddHH24MISS') </if>"+
" <if test='notNull!=\"\"'> and PERSON_POST.state1=${notNull} </if>"+