bid

vue h render function & render select with options bug

丶灬走出姿态 提交于 2020-01-17 13:06:42
vue h render function & render select with options bug https://github.com/xgqfrms/vue/issues/41 bug vue h render function & render select how to use vue h render function to render select? https://vuejs.org/v2/guide/render-function.html let options = []; options = bids.map( (obj, i) => { let { name, bid, } = obj; return h("h-option", { props: { value: bid, // label: name, key: i, }, attrs: { "data-bid": bid, }, class: [ "audit-common-select", ], // style: { // color: "#298DFF !important", // textDecoration: "none", // cursor: "pointer", // marginRight: "5px", // }, on: { click: () => { // }, }

mybatis动态sql和分页

风格不统一 提交于 2019-12-01 17:22:56
mybatis 动态 sql foreach BookMapper.xml <select id="selectBooksIn" resultType="com.lingerqi.model.Book" parameterType="java.util.List"> select * from t_mvc_book where bid in <foreach collection="bookIds" item="bid" open="(" close=")" separator=","> #{bid} </foreach> </select>    List<Book> selectBooksIn(@Param("bookIds") List bookIds);    模糊查询 #{...} ${...} Concat 注意: #{...} 自带引号, ${...} 有 sql 注入的风险 Book.Mapper.xml: <select id="selectBooksLike1" resultType="com.javaxl.model.Book" parameterType="java.lang.String"> select * from t_mvc_book where bname like #{bname} </select> <select id=