"(date,title,article,tags,md) " ,
"values(#{bv.date},#{bv.title}," ,
"#{bv.article},#{bv.tags},#{bv.md})"})
@SelectKey(before=false,keyProperty="bv.vid",resultType=Integer.class,
statementType= StatementType.STATEMENT,statement="SELECT LAST_INSERT_ID() AS id")
<BUG>int insertBlog(@Param("bv") BlogView blogView) throws Exception;
</BUG>
@Insert("insert ignore into view_tag (name,vid) values(#{tn},#{id})")
<BUG>int insertViewTag(@Param("tn") String tagName, @Param("id") int vid) throws Exception;
</BUG>
@Delete("delete from view_tag where vid = #{vid}")

"(date,title,article,tags,md) " ,
"values(#{bv.date},#{bv.title}," ,
"#{bv.article},#{bv.tags},#{bv.md})"})
@SelectKey(before=false,keyProperty="bv.vid",resultType=Integer.class,
statementType= StatementType.STATEMENT,statement="SELECT LAST_INSERT_ID() AS id")
int insertBlog(@Param("bv") BlogView blogView) throws RuntimeException;
@Insert("insert ignore into view_tag (name,vid) values(#{tn},#{id})")
int insertViewTag(@Param("tn") String tagName, @Param("id") int vid) throws RuntimeException;
