2026-03-10 16:40:19 +08:00

20 lines
834 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._3e.dao.SuggestionDao">
<select id="getSeqSuggestion" resultType="java.lang.Integer" >
SELECT nextval('seq_suggestionid') ;
</select>
<insert id="doSaveSuggestion" parameterType="com._3e.entity.Suggestion" >
insert into suggestion (suggestionId,uid,type,content,picture,cellphone,created)
values (#{suggestionId},#{uid},#{type},#{content},#{picture},#{cellphone},#{created})
</insert>
<select id="getAllSuggestionByUid" parameterType="long" resultType="com._3e.entity.Suggestion">
select suggestionId,uid,type,content,picture,cellphone,created from suggestion
where uid=#{studentid} order by created desc
</select>
</mapper>