21 lines
772 B
XML
21 lines
772 B
XML
<?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.central.order.mapper.TourismMapper">
|
||
|
|
|
||
|
|
<select id="findList" resultType="com.central.order.model.Tourism">
|
||
|
|
select * from tourisms t
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<resultMap id="TourismResultMap" type="com.central.order.model.Tourism">
|
||
|
|
</resultMap>
|
||
|
|
<select id="getTourismById" resultMap="TourismResultMap">
|
||
|
|
SELECT * FROM tourisms WHERE id = #{id}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<insert id="insertTourism">
|
||
|
|
INSERT INTO tourisms (tourism_no, tourism_name, tourism_address,tourism_phone)
|
||
|
|
VALUES (#{tourismNo}, #{tourismName}, #{tourismAddress},#{tourismPhone})
|
||
|
|
</insert>
|
||
|
|
</mapper>
|