Commit b5c54470 authored by dahai's avatar dahai

修改添加卡体、膜 数据时备注为空的情况

parent 7e5bf6e6
...@@ -8,7 +8,17 @@ import java.util.List; ...@@ -8,7 +8,17 @@ import java.util.List;
@Mapper @Mapper
public interface MaterialManagementMapper { public interface MaterialManagementMapper {
@Insert("INSERT INTO PLASTIC_FILM (TOTAL_COUNT,PLASTIC_FILM_TYPE,NOTE,name,state) VALUES(#{totalCount},#{plasticFilmType},#{note},#{name},#{state})") @Insert("<script>" +
"INSERT INTO PLASTIC_FILM (TOTAL_COUNT,PLASTIC_FILM_TYPE," +
"<if test='note !=null>" +
"NOTE," +
"</if>" +
"name,state) VALUES(#{totalCount},#{plasticFilmType}," +
"<if test='note !=null>" +
"#{note}," +
"</if>" +
"#{name},#{state})" +
"</script>")
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>" +
...@@ -45,7 +55,17 @@ public interface MaterialManagementMapper { ...@@ -45,7 +55,17 @@ public interface MaterialManagementMapper {
public String selectFilmCount2(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("typeCode") String typeCode, @Param("name") String name); public String selectFilmCount2(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("typeCode") String typeCode, @Param("name") String name);
@Insert("INSERT INTO CARD_BODY (CARD_TYPE,TOTAL_COUNT,NOTE,name,CARD_BODY_TYPE,state)VALUES(#{cardType},#{totalCount},#{note},#{name},#{cardBodyType},#{state})") @Insert("<script>" +
"INSERT INTO CARD_BODY (CARD_TYPE,TOTAL_COUNT," +
"<if test='note !=null>" +
"NOTE," +
"</if>" +
"name,CARD_BODY_TYPE,state)VALUES(#{cardType},#{totalCount}," +
"<if test='note !=null>" +
"#{note}," +
"</if>" +
"#{name},#{cardBodyType},#{state})" +
"</script>")
public boolean insertCardBody(@Param("cardType") String cardType, @Param("totalCount") String totalCount, @Param("note") String note, @Param("name") String name, @Param("cardBodyType") long cardBodyType, @Param("state") long state); public boolean insertCardBody(@Param("cardType") String cardType, @Param("totalCount") String totalCount, @Param("note") String note, @Param("name") String name, @Param("cardBodyType") long cardBodyType, @Param("state") long state);
......
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