Commit 73b42435 authored by dahai's avatar dahai

push

parent 65e03dbd
...@@ -12,7 +12,7 @@ public interface MaterialManagementMapper { ...@@ -12,7 +12,7 @@ public interface MaterialManagementMapper {
public boolean insertFilm(@Param("totalCount") String totalCount, @Param("plasticFilmType") String plasticFilmType, @Param("note") String note, @Param("name") String name, @Param("state") long state); public boolean insertFilm(@Param("totalCount") String totalCount, @Param("plasticFilmType") String plasticFilmType, @Param("note") String note, @Param("name") String name, @Param("state") long state);
@Select("<script>" + @Select("<script>" +
"select * from plastic_film where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate}" + "select * from plastic_film where ( to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} ) and state =1" +
"<if test='name != null '>" + "<if test='name != null '>" +
" and name =#{name} " + " and name =#{name} " +
"</if>" + "</if>" +
...@@ -23,7 +23,7 @@ public interface MaterialManagementMapper { ...@@ -23,7 +23,7 @@ public interface MaterialManagementMapper {
public List<PlasticFilmEntity> selectFilm(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("typeCode") String typeCode, @Param("name") String name); public List<PlasticFilmEntity> selectFilm(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("typeCode") String typeCode, @Param("name") String name);
@Select("<script>" + @Select("<script>" +
"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 state =1 and PLASTIC_FILM_TYPE=1 " +
"<if test='name != null '>" + "<if test='name != null '>" +
" and name =#{name} " + " and name =#{name} " +
"</if>" + "</if>" +
...@@ -34,7 +34,7 @@ public interface MaterialManagementMapper { ...@@ -34,7 +34,7 @@ public interface MaterialManagementMapper {
public String selectFilmCount1(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("typeCode") String typeCode, @Param("name") String name); public String selectFilmCount1(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("typeCode") String typeCode, @Param("name") String name);
@Select("<script>" + @Select("<script>" +
"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 state =1 and PLASTIC_FILM_TYPE=2" +
"<if test='name != null '>" + "<if test='name != null '>" +
" and name =#{name} " + " and name =#{name} " +
"</if>" + "</if>" +
...@@ -50,7 +50,7 @@ public interface MaterialManagementMapper { ...@@ -50,7 +50,7 @@ public interface MaterialManagementMapper {
@Select("<script>" + @Select("<script>" +
"select * from CARD_BODY where to_char(SAVE_DATE,'yyyyMMdd') between #{beginDate} and #{endDate}" + "select * from CARD_BODY where (to_char(SAVE_DATE,'yyyyMMdd') between #{beginDate} and #{endDate}) and state =1 " +
"<if test='name != null '>" + "<if test='name != null '>" +
" and name =#{name} " + " and name =#{name} " +
"</if>" + "</if>" +
...@@ -64,7 +64,7 @@ public interface MaterialManagementMapper { ...@@ -64,7 +64,7 @@ public interface MaterialManagementMapper {
public List<CardBodyEntity> selectCardBody(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("typeCode") String typeCode, @Param("name") String name, @Param("cardBodyType")String cardBodyType); public List<CardBodyEntity> selectCardBody(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("typeCode") String typeCode, @Param("name") String name, @Param("cardBodyType")String cardBodyType);
@Select("<script>" + @Select("<script>" +
"select sum(TOTAL_COUNT) cardType1 from CARD_BODY where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} and CARD_TYPE=1" + "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" +
"<if test='name != null '>" + "<if test='name != null '>" +
" and name =#{name} " + " and name =#{name} " +
"</if>" + "</if>" +
...@@ -75,7 +75,7 @@ public interface MaterialManagementMapper { ...@@ -75,7 +75,7 @@ public interface MaterialManagementMapper {
public String selectCardCount1(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("typeCode") String typeCode, @Param("name") String name); public String selectCardCount1(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("typeCode") String typeCode, @Param("name") String name);
@Select("<script>" + @Select("<script>" +
"select sum(TOTAL_COUNT) cardType2 from CARD_BODY where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} and CARD_TYPE=2" + "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" +
"<if test='name != null '>" + "<if test='name != null '>" +
" and name =#{name} " + " and name =#{name} " +
"</if>" + "</if>" +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment