forked from p4fmevgyr/XYSH
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
656 B
22 lines
656 B
<?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.forum.dao.NoticeDao">
|
|
<select id="findAllNotice" resultType="notice">
|
|
select * from notice
|
|
</select>
|
|
<select id="countNotice" resultType="java.lang.Integer">
|
|
select count(*) from notice
|
|
</select>
|
|
|
|
<insert id="addNotices" parameterType="notice">
|
|
insert into notice(content) values(#{content})
|
|
</insert>
|
|
|
|
<delete id="deleteNotice" parameterType="int">
|
|
delete from notice where id=#{id}
|
|
</delete>
|
|
|
|
</mapper>
|