Files
gofly-platform-services/zlt-business/order-center/src/main/resources/mapper/TourismMapper.xml
T

21 lines
772 B
XML
Raw Normal View History

<?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>