"select sum(TOTAL_COUNT) PLASTIC_FILM_TYPE1 from plastic_film where (to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate}) and state =1 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>"+
...
@@ -44,7 +44,7 @@ public interface MaterialManagementMapper {
...
@@ -44,7 +44,7 @@ public interface MaterialManagementMapper {
"select sum(TOTAL_COUNT) PLASTIC_FILM_TYPE1 from plastic_film where (to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate}) and state =1 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>"+
...
@@ -70,7 +70,7 @@ public interface MaterialManagementMapper {
...
@@ -70,7 +70,7 @@ public interface MaterialManagementMapper {
@Select("<script>"+
@Select("<script>"+
"select * from CARD_BODY where (to_char(SAVE_DATE,'yyyyMMdd') between #{beginDate} and #{endDate}) and state =1 "+
"select * from CARD_BODY where (to_char(SAVE_DATE,'yyyyMMdd') between #{beginDate} and #{endDate}) "+
"<if test='name != null '>"+
"<if test='name != null '>"+
" and name =#{name} "+
" and name =#{name} "+
"</if>"+
"</if>"+
...
@@ -84,7 +84,7 @@ public interface MaterialManagementMapper {
...
@@ -84,7 +84,7 @@ public interface MaterialManagementMapper {
"select sum(TOTAL_COUNT) cardType1 from CARD_BODY where (to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate}) and state =1 and CARD_TYPE=1"+
"select sum(TOTAL_COUNT) cardType1 from CARD_BODY where (to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate}) and CARD_TYPE=1"+
"<if test='name != null '>"+
"<if test='name != null '>"+
" and name =#{name} "+
" and name =#{name} "+
"</if>"+
"</if>"+
...
@@ -95,7 +95,7 @@ public interface MaterialManagementMapper {
...
@@ -95,7 +95,7 @@ public interface MaterialManagementMapper {
"select sum(TOTAL_COUNT) cardType2 from CARD_BODY where (to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate}) and state =1 and CARD_TYPE=2"+
"select sum(TOTAL_COUNT) cardType2 from CARD_BODY where (to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate}) and CARD_TYPE=2"+