sqlmap-invitation.xml 830 Bytes
<?xml version="1.0" encoding="UTF-8"?>
<sqlMap namespace="invitation">
        <insert id="add">
                INSERT INTO tbl_invitation (type, category, sub, name, contacter, phone, email, create_time) VALUES (:type, :category, :sub, :name, :contacter, :phone, :email, UNIX_TIMESTAMP()) 
        </insert>
        <select id="getByType">
                SELECT * FROM tbl_invitation WHERE type = :type ORDER BY create_time DESC
        </select>
        <select id="getApplyList">
                SELECT * FROM tbl_invitation WHERE show_in_apply = 1 #LIMIT#
        </select>
        <select id="getPassList">
                SELECT * FROM tbl_invitation WHERE show_in_pass = 1 #LIMIT#
        </select>
        <update id="update">
                UPDATE tbl_invitation SET #UPDATE# WHERE id = :id
        </update>
</sqlMap>