You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
880 B
25 lines
880 B
<?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="mapperDAO.BrDAO">
|
|
<resultMap id="BrMap" type="domain.BrPO">
|
|
<id column="book_id" jdbcType="INTEGER" property="book_id" />
|
|
<result column="book_name" jdbcType="VARCHAR" property="book_name" />
|
|
<result column="s_id" jdbcType="VARCHAR" property="s_id" />
|
|
<result column="s_name" jdbcType="VARCHAR" property="s_name" />
|
|
<result column="book_num" jdbcType="INTEGER" property="book_num" />
|
|
</resultMap>
|
|
<select id="FindBys_id" resultMap="BrMap" parameterType="String">
|
|
SELECT
|
|
borrowrecord.book_id,
|
|
borrowrecord.book_name,
|
|
borrowrecord.s_id,
|
|
borrowrecord.s_name,
|
|
borrowrecord.book_num
|
|
FROM
|
|
borrowrecord
|
|
WHERE
|
|
borrowrecord.s_id=#{s_id}
|
|
</select>
|
|
|
|
|
|
</mapper> |