IConferenceDao.xml 899 Bytes
Newer Older
1 2 3 4 5 6 7
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="dao.IConferenceDao">
    <select id="selectAll" resultType="beans.Conference">
        select * from conference
    </select>
8 9 10
    <select id="selectById" resultType="beans.Conference">
        select * from conference where id=#{id}
    </select>
11 12 13 14 15 16 17 18 19
    <insert id="insertConference">
        insert into budgetmanagementsystem.conference(name, price, experts,people) values (#{name},#{price},#{experts},#{people})
    </insert>
    <update id="updateConference">
        update budgetmanagementsystem.conference set name=#{name},price=#{price},experts=#{experts},people=#{people} where id=#{id};
    </update>
    <delete id="deleteConference">
        delete  from budgetmanagementsystem.conference where id =#{id}
    </delete>
20
</mapper>