"select sum(TOTAL_COUNT) PLASTIC_FILM_TYPE1 from plastic_film where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} and PLASTIC_FILM_TYPE=1 "+
"select sum(TOTAL_COUNT) PLASTIC_FILM_TYPE1 from plastic_film where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} and PLASTIC_FILM_TYPE=1 "+
"<if test='name != null '>"+
"<if test='name != null '>"+
" and name =#{name} "+
" and name =#{name} "+
"</if>"+
"</if>"+
...
@@ -36,10 +36,10 @@ public interface MaterialManagementMapper {
...
@@ -36,10 +36,10 @@ public interface MaterialManagementMapper {
"select sum(TOTAL_COUNT) PLASTIC_FILM_TYPE1 from plastic_film where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} and PLASTIC_FILM_TYPE=2"+
"select sum(TOTAL_COUNT) PLASTIC_FILM_TYPE1 from plastic_film where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} and PLASTIC_FILM_TYPE=2"+
"<if test='name != null '>"+
"<if test='name != null '>"+
" and name =#{name} "+
" and name =#{name} "+
"</if>"+
"</if>"+
...
@@ -47,15 +47,15 @@ public interface MaterialManagementMapper {
...
@@ -47,15 +47,15 @@ public interface MaterialManagementMapper {
@@ -34,7 +34,7 @@ public interface PersonPostMapper {
...
@@ -34,7 +34,7 @@ public interface PersonPostMapper {
"SELECT * FROM "+
"SELECT * FROM "+
"( "+
"( "+
"SELECT A.*, ROWNUM RN "+
"SELECT A.*, ROWNUM RN "+
" from (SELECT PERSON_POST.*"+
" from (SELECT DISTINCT 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 "+
" left join PREPRO_PERSON on PERSON_POST.first_white = prepro_person.jmsfzslh "+
...
@@ -44,14 +44,12 @@ public interface PersonPostMapper {
...
@@ -44,14 +44,12 @@ public interface PersonPostMapper {
" <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== 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 PREPRO_PERSON.JMSFZSLH is not null </if>"+
" <if test='notNull== 1 '> and PREPRO_PERSON.JMSFZSLH is not null </if>"+
" <if test='notNull== 0 '> and PREPRO_PERSON.JMSFZSLH 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>"+
") "+
"order by PERSON_POST.id ) "+
"A"+
"A"+
")"+
")"+
"WHERE RN BETWEEN ${pageSize} AND ${firstIndex}"+
"WHERE RN BETWEEN ${pageSize} AND ${firstIndex}"+
...
@@ -60,7 +58,7 @@ public interface PersonPostMapper {
...
@@ -60,7 +58,7 @@ public interface PersonPostMapper {
@Select("select ID,FIRST_WHITE,APPLICANT_NAME,NOTE from person_post where ID=#{id}")
@Select("select ID,FIRST_WHITE,APPLICANT_NAME,NOTE from person_post where ID=#{id}")