未验证 提交 1fa9b1d8 编写于 作者: P Phodal Huang

test: add xml file

上级 dbc63536
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.phodal.pholedge.mapper.BookMapper">
<select id="doSave" parameterType="com.phodal.pholedge.book.model.Book">
INSERT INTO book (id, isbn, name, createdAt) VALUES (#{id}, #{isbn}, #{name}, #{createdAt}) ON DUPLICATE KEY UPDATE isbn=#{isbn}, name=#{name}
</select>
<select id="list" resultType="com.phodal.pholedge.book.model.BookRepresentaion">
select * from book order by id
</select>
<select id="byId" resultType="com.phodal.pholedge.book.model.Book">
select * from book where id = #{id}
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册