@@ -121,7 +121,7 @@ public interface MaterialManagementMapper {
@Select("<script>"+
"select * from (select name,save_date,CARD_BODY_TYPE,sum(count1) count1 ,sum(count2) count2,rownum rn\n"+
"from (select name,CARD_TYPE,CARD_BODY_TYPE,to_Char(SAVE_DATE,'yyyyMMdd') save_date, decode(card_type,2,0,total_count) count1 ,decode(card_type,1,0,total_count) count2 from CARD_BODY where (to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate}) and state =1 "+
"<if test='name != 0 '>"+
"<if test='name != null '>"+
" and name =#{name} "+
"</if>"+
"<if test='typeCode != 0 '>"+
...
...
@@ -130,15 +130,15 @@ public interface MaterialManagementMapper {
"<if test='cardBodyType != 0 '>"+
" and card_Body_Type =#{cardBodyType} "+
"</if>"+
") \n"+
" group by name, save_date,CARD_BODY_TYPE,rownum ORDER BY rownum) where rn BETWEEN #{start} and #{end}"+
"ORDER BY save_date) \n"+
" group by name, save_date,CARD_BODY_TYPE,rownum ORDER BY save_date,rownum) where rn BETWEEN #{start} and #{end}"+
"select * from (select name,save_date,CARD_BODY_TYPE,sum(count1) count1 ,sum(count2) count2,rownum rn\n"+
"from (select name,CARD_TYPE,CARD_BODY_TYPE,to_Char(SAVE_DATE,'yyyyMMdd') save_date, decode(card_type,2,0,total_count) count1 ,decode(card_type,1,0,total_count) count2 from CARD_BODY where (to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate}) and state =1 "+
"<if test='name != 0 '>"+
"<if test='name != null '>"+
" and name =#{name} "+
"</if>"+
"<if test='typeCode != 0 '>"+
...
...
@@ -147,57 +147,57 @@ public interface MaterialManagementMapper {
"<if test='cardBodyType != 0 '>"+
" and card_Body_Type =#{cardBodyType} "+
"</if>"+
") \n"+
" group by name, save_date,CARD_BODY_TYPE,rownum ORDER BY rownum) "+
"ORDER BY save_date) \n"+
" group by name, save_date,CARD_BODY_TYPE,rownum ORDER BY save_date,rownum) "+
"from (select name,CARD_TYPE,CARD_BODY_TYPE,to_Char(SAVE_DATE,'yyyyMMdd') save_date, decode(card_type,2,0,total_count) count1 ,decode(card_type,1,0,total_count) count2 from CARD_BODY)")
"from (select name,CARD_TYPE,CARD_BODY_TYPE,to_Char(SAVE_DATE,'yyyyMMdd') save_date, decode(card_type,2,0,total_count) count1 ,decode(card_type,1,0,total_count) count2 from CARD_BODY where state =1)")
"select * from (select name,save_date,sum(count1) count1 ,sum(count2) count2,rownum rn\n"+
"from (select name,CARD_TYPE,to_Char(SAVE_DATE,'yyyyMMdd') save_date, decode(card_type,2,0,total_count) count1 ,decode(card_type,1,0,total_count) count2 from PLASTIC_FILM where (to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate}) and state =1 "+
"<if test='name != 0 '>"+
"from (select name,PLASTIC_FILM_TYPE,to_Char(SAVE_DATE,'yyyyMMdd') save_date, decode(PLASTIC_FILM_TYPE,2,0,total_count) count1 ,decode(PLASTIC_FILM_TYPE,1,0,total_count) count2 from PLASTIC_FILM where (to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate}) and state =1 "+
"<if test='name != null '>"+
" and name =#{name} "+
"</if>"+
"<if test='typeCode != 0 '>"+
" and card_type =#{typeCode} "+
" and PLASTIC_FILM_TYPE =#{typeCode} "+
"</if>"+
") \n"+
" group by name, save_date,rownum ORDER BY rownum) where rn BETWEEN #{start} and #{end}"+
"ORDER BY save_date) \n"+
" group by name, save_date,rownum ORDER BY save_date,rownum) where rn BETWEEN #{start} and #{end}"+
"select * from (select name,save_date,sum(count1) count1 ,sum(count2) count2,rownum rn\n"+
"from (select name,CARD_TYPE,to_Char(SAVE_DATE,'yyyyMMdd') save_date, decode(card_type,2,0,total_count) count1 ,decode(card_type,1,0,total_count) count2 from PLASTIC_FILM where (to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate}) and state =1 "+
"<if test='name != 0 '>"+
"from (select name,PLASTIC_FILM_TYPE,to_Char(SAVE_DATE,'yyyyMMdd') save_date, decode(PLASTIC_FILM_TYPE,2,0,total_count) count1 ,decode(PLASTIC_FILM_TYPE,1,0,total_count) count2 from PLASTIC_FILM where (to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate}) and state =1 "+
"<if test='name != null '>"+
" and name =#{name} "+
"</if>"+
"<if test='typeCode != 0 '>"+
" and card_type =#{typeCode} "+
" and PLASTIC_FILM_TYPE =#{typeCode} "+
"</if>"+
") \n"+
" group by name, save_date,rownum ORDER BY rownum) where rn BETWEEN #{start} and #{end}"+
" ORDER BY save_date) \n"+
" group by name, save_date,rownum ORDER BY save_date,rownum)"+
"from (select name,CARD_TYPE,to_Char(SAVE_DATE,'yyyyMMdd') save_date, decode(card_type,2,0,total_count) count1 ,decode(card_type,1,0,total_count) count2 from PLASTIC_FILM)")
"from (select name,PLASTIC_FILM_TYPE,to_Char(SAVE_DATE,'yyyyMMdd') save_date, decode(PLASTIC_FILM_TYPE,2,0,total_count) count1 ,decode(PLASTIC_FILM_TYPE,1,0,total_count) count2 from PLASTIC_FILM where state =1)")